Kaguya
11-23-2015, 02:32 PM
Hi guys I have a problem with a script which is used for potting myself almost to full if no monsters on screen.
The majority of this script was that he turns of walker , put himself almost to full and then enable the walker again/
function ManaPercent()
return math.ceil((Self.Mana()/Self.MaxMana()*100))
end
Module.New("Mana Restore", function(module)
if (ManaPercent() < 90) and (#Self.GetTargets(1) == 0) and (Self.ItemCount(ManaID) > 238) and RestoreMana then
setWalkerEnabled(false)
while (ManaPercent() < 90) and (#Self.GetTargets(3) == 0) and (Self.ItemCount(ManaID) > 238) do
Self.UseItemWithMe(ManaID)
wait(500,700)
end
setWalkerEnabled(true)
end
module:Delay(500)
end,RestoreMana)
The problem is, it don't work anymore do you have any idea why ?
The majority of this script was that he turns of walker , put himself almost to full and then enable the walker again/
function ManaPercent()
return math.ceil((Self.Mana()/Self.MaxMana()*100))
end
Module.New("Mana Restore", function(module)
if (ManaPercent() < 90) and (#Self.GetTargets(1) == 0) and (Self.ItemCount(ManaID) > 238) and RestoreMana then
setWalkerEnabled(false)
while (ManaPercent() < 90) and (#Self.GetTargets(3) == 0) and (Self.ItemCount(ManaID) > 238) do
Self.UseItemWithMe(ManaID)
wait(500,700)
end
setWalkerEnabled(true)
end
module:Delay(500)
end,RestoreMana)
The problem is, it don't work anymore do you have any idea why ?