ereinion
Member
I have this small script, which is supposed to run my god lobster fights for me:
I'm pretty sure it used to work, but lately it has aborted on the first fight like this:

As you can see, trying to submit choice 2 for the choice-adv again finishes the choice, and it only aborts on the first fight.
Can someone tell me where I am going wrong here?
Code:
boolean god_lobster_fights(int fights_to_run) {
familiar fam = my_familiar();
int i = 0;
if (use_familiar($familiar[god lobster])) {
while (to_int(get_property("_godLobsterFights")) < 3 && i < fights_to_run) {
if (length(visit_url("main.php?fightgodlobster=1")) > 0) {}
if (available_amount($item[god lobster's crown]) <= 0) {
run_choice(1);
} else {
run_choice(2);
}
i = i + 1;
}
use_familiar(fam);
}
return to_boolean(i != 0);
}
I'm pretty sure it used to work, but lately it has aborted on the first fight like this:

As you can see, trying to submit choice 2 for the choice-adv again finishes the choice, and it only aborts on the first fight.
Can someone tell me where I am going wrong here?
Last edited: