View Full Version : USING mana potion when no monsters on screen.
wujo77
09-01-2016, 07:25 PM
Hey
I need script which use Mana Potion when mana declined 20% to 90% when NO MONSTERS ON SCREEN.
Thanks ;)
jorgeriva1
09-01-2016, 10:48 PM
Just to clarify, do you want it to stop the walker and wait until your mana is above 90%, then start the walker again? And would you want it to be healing your mana while you're attacking monsters too?
wujo77
09-01-2016, 11:18 PM
Yes exactly, sorry for my bad English.
Tirell
09-02-2016, 12:10 AM
local ManaRestore = true --- Do you want restore mana to x percent if no monsters on screen?
local RestoreManaToPercent = 90
local ManaName = 'Strong Mana Potion'
function ManaPercent()
return math.ceil(Self.Mana() / Self.MaxMana() * 100)
end
Module.New('ManaRestore', function(ManaUp)
if (ManaRestore) then
while (ManaPercent() < RestoreManaToPercent) and (#Self.GetTargets(8) == 0) and (Self.ItemCount(ManaName) > 0) and not Self.isInPz() do
delayWalker(1500)
Self.UseItemWithMe(ManaName)
wait(500, 700)
end
end
ManaUp:Delay(500)
end)
wujo77
09-02-2016, 04:55 PM
Perfect, thank You very much !!! :D
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.