Hey guys ive been messing with a script that trys to med when mana is low however im trying to use ens buff bar to see if my char is meditating but its not working properly. not sure what to do to fix the sub can someone give it a look?
Sub mana
if #mana < 30
{
medloop:
event macro 13 46
wait 11s
call ScanBuffBar
wait 10
if _Meditation_ in %BuffBarIconNames
{
gosub wait
}
if #mana < #maxmana
{
goto medloop
}
}
return
sub wait
Repeat
wait 1
until #mana = #maxmana
return
not sure what im doing wrong but it ignores the buff and keeps casting med over and over instead of repeating the wait.