jimmeofdoom
New member
once-per-ascension freebie goofballs should be collected before ascending (along with all the other reminders about buying skills, breaking zap wands, etc)
void goofballs() {
if(visit_url("tavern.php?place=susguy&pwd").contains_text("First bottle's free, man")) {
print("I know they're bad for me, but... \"Hey! Free Goofballs!\"", "olive");
visit_url("tavern.php?action=buygoofballs&pwd");
}
}
boolean get_monkey() {
item monkey = $item[balloon monkey];
if(item_amount(monkey) > 0) return true;
if(storage_amount(monkey) > 0) return take_storage(1, monkey);
if(closet_amount(monkey) > 0) return take_closet(1, monkey);
return false;
}
void balloon_monkey() {
if(get_property("lastEasterEggBalloon").to_int() < my_ascensions() && get_monkey())
visit_url("lair2.php?preaction=key&whichkey=436&pwd");
}
void gunpowder() {
if(available_amount($item[barrel of gunpowder]) > 4) {
retrieve_item(available_amount($item[barrel of gunpowder]), $item[barrel of gunpowder]);
visit_url("postwarisland.php?place=lighthouse&action=pyro&pwd");
}
}
// Convert all Loathing Legion whatevers into their base form
void LoathingLegionKnife() {
foreach other in get_related($item[Loathing Legion knife], "fold")
while(available_amount(other) > 0 && other != $item[Loathing Legion knife])
cli_execute("fold Loathing Legion knife");
}
void main() {
if(get_property("kingLiberated").to_boolean()) {
goofballs();
balloon_monkey();
gunpowder();
LoathingLegionKnife();
print("Prepared for Ascension.");
} else abort("WTF!? Why is a preAscensionScript runnin'?");
}
I'll take a stab at this if someone doesn't get to it earlier, the next time I'm ready to ascend.
None of mafia's reminders require a server hit.