yompa93
04-22-2016, 09:30 PM
So i made this script where you have a small lamp in your backpack, turn it on to turn targeting on, and off to turn it off. ( To lazy to right click and put it on :D )
pulling mobs with ek and the just turn on the lamp to start attacking monsters. Does require targeting being setup!
Module.New('TargetingOnOff', function(module)
local ItemToUse = "small lamp"
if Self.ItemCount(ItemToUse) == 0 then
if not Targeting.IsEnabled() then
Targeting.Start()
end
else
if Targeting.IsEnabled() then
Targeting.Stop()
end
module:Delay(500)
end
end)
Tried using it with a "Dash" script aswell:
Module.New('Dash', function(module)
local ItemToUse = "small lamp"
if Self.ItemCount(ItemToUse) == 0 then
if Self.LookDirection() == NORTH then --north
Self.Step(NORTH)
elseif Self.LookDirection() == EAST then --east
Self.Step(EAST)
elseif Self.LookDirection() == SOUTH then --south
Self.Step(SOUTH)
elseif Self.LookDirection() == WEST then
Self.Step(WEST)
end
module:Delay(50) --had to put a delay because it's really hard to turn off the lamp if not
end
end)
Just fun stuff, if you're as lazy as me :p
pulling mobs with ek and the just turn on the lamp to start attacking monsters. Does require targeting being setup!
Module.New('TargetingOnOff', function(module)
local ItemToUse = "small lamp"
if Self.ItemCount(ItemToUse) == 0 then
if not Targeting.IsEnabled() then
Targeting.Start()
end
else
if Targeting.IsEnabled() then
Targeting.Stop()
end
module:Delay(500)
end
end)
Tried using it with a "Dash" script aswell:
Module.New('Dash', function(module)
local ItemToUse = "small lamp"
if Self.ItemCount(ItemToUse) == 0 then
if Self.LookDirection() == NORTH then --north
Self.Step(NORTH)
elseif Self.LookDirection() == EAST then --east
Self.Step(EAST)
elseif Self.LookDirection() == SOUTH then --south
Self.Step(SOUTH)
elseif Self.LookDirection() == WEST then
Self.Step(WEST)
end
module:Delay(50) --had to put a delay because it's really hard to turn off the lamp if not
end
end)
Just fun stuff, if you're as lazy as me :p