I noticed that if I write a script that calls this, and the buff bar is closed it will open the buff bar but it will lock the script up. Also if I close the bar at any time, I will have to restart the script. So it seems that, if it has to open the bar, it will bug out... However this could also just be my little sample script.
Is there a way to run a check for the bar before a script enters its loop, and if it doesn't detect it, then to run event macro 57, then go into the loop so as to avoid it from locking up?
The code I have been playing around with is this:
Repeat
Call ScanBuffBar DOWN
set %Divine _DivineFury_ in %BuffBarIconNames
gosub divineFury
Call ScanBuffBar DOWN
set %EOO _EnemyOfOne_ in %BuffBarIconNames
gosub enemyOfOne
wait 5
until #true = #false
sub divineFury
if %Divine
{
return
}
else
event macro 15 205
wait 30
return
sub enemyOfOne
if %EOO
{
return
}
else
event macro 15 206
wait 30
return