Banana Lord
Member
A specific script, while 'waiting' doesn't seem to be affected by typing abort into the gCLI, it continues after the allotted period of time regardless. Bug or feature?
NB: It fails to abort for both of the two waiting periods (beginning and end).
NB: It fails to abort for both of the two waiting periods (beginning and end).
PHP:
print("Farming will commence in 30 seconds", "olive");
wait(30);
cli_execute("/Farming login");
// Farm the Castle!
if(my_fullness() >= to_int(get_property("full_limit")) && my_inebriety() == to_int(get_property("drunk_limit")) && my_spleen_use() == to_int(get_property("spleen_limit")))
{
cli_execute("adventure * giant's castle");
print("Finished farming", "green");
}
else abort("Not ready to farm");
if(my_inebriety() <= inebriety_limit() && my_adventures() > 0) abort("Still enough adventures to farm");
// Run Logout.ash
if(my_fullness() >= to_int(get_property("full_limit")) && my_inebriety() >= to_int(get_property("drunk_limit")) && my_spleen_use() >= to_int(get_property("spleen_limit")))
cli_execute("/logout.ash");
else
if(my_inebriety() > 19) cli_execute("/logout.ash");
else abort("You've got some fullstats to fill");
// Quit Mafia
print_html("<font size=7><b><font color=red>Mafia will quit in 3 minutes if you do not abort</b></font>");
wait(180);
cli_execute("quit");