I have a piece of code that does not seem to work.
A bit before this, I purchase a buff, run 10 adventures, and do maximize. The idea is that since this character cannot cast ode to booze, I buy it, wait a bit, then drink. But this does not work. I have even gone to a multi and cast ode to booze on this character during the while and the while loops forever.
It seems like the while does not check for a status change in the effect.
I know, ascend and perm the skill. But until then?
Is there another function I can use within the while to update then have_effect status? Do I need to use a For, Next loop with a limit to avoid the endless loop? Is this a problem with the while, my code, or just how I am trying to use it?
Thanks in advance.
Code:
while (have_effect($effect[ode to booze]) == 0)
{
print("Waiting for ode to kick in");
cli_execute("Wait 5"); // can track to see how long this takes
}
It seems like the while does not check for a status change in the effect.

I know, ascend and perm the skill. But until then?
Is there another function I can use within the while to update then have_effect status? Do I need to use a For, Next loop with a limit to avoid the endless loop? Is this a problem with the while, my code, or just how I am trying to use it?
Thanks in advance.