I've currently been a bit... skittish, of including any nightcap drinking in my scripts for fear of not receiving the "required" buff in time. After thinking about it a bit, though, I thought something like this might work... can anyone suggest a more efficient way of doing this (other than ascending into the class that has the buff, heh, that'll come eventually).
After requesting buffs...
Will this continue to execute the while loop until I have the effect, then move on to drinking the mon tiki, as I think it will, or will it cause any problems?
After requesting buffs...
Code:
cli_execute("wait 120");
while(have_effect($effect[ode to booze]) < 1) {
cli_execute("effects refresh");
cli_execute("wait 120");
}
if(have_effect($effect[ode to booze]) > 1) {
use(1, $item[mon tiki]);
}
Will this continue to execute the while loop until I have the effect, then move on to drinking the mon tiki, as I think it will, or will it cause any problems?