void gyrocopter() {
if(get_property("_warbearGyrocopterUsed") == "false" && can_interact() && price($item[warbear gyrocopter]) * .3 < price($item[broken warbear gyrocopter]) + price($item[warbear gyro])) {
int max_price = 225000;
if(item_amount($item[warbear gyrocopter]) > 0 || (price($item[warbear gyrocopter]) <= max_price && buy(1, $item[warbear gyrocopter], min(max_price, my_meat() * .75 )) > 0)) {
print("Sending myself a Gyro!", "blue");
#visit_url("curse.php?action=use&pwd&whichitem=7038&targetplayer="+my_name()+"&curse=0");
cli_execute("throw warbear gyrocopter at " + my_name());
cli_execute("refresh inventory");
put_shop(mall_price($item[warbear gyro]), 0, $item[warbear gyro]);
}
}
}
// These are normally controlled by "once a day items" preference: useCrimboToysHardcore & useCrimboToysSoftcore
void useToys() {
gyrocopter();
boolean get(item toy) {
return item_amount(toy) > 0
|| (closet_amount(toy) > 0 && take_closet(1, toy))
|| (can_interact() && storage_amount(toy) > 0 && take_storage(1, toy))
|| (available_amount(toy) > 0 && retrieve_item(1, toy)) // Stupid free pulls (pony keg and microwave) don't follow the same runes as other storage items.
|| (can_interact() && historical_price(toy) > 0 && my_meat() > 1002003 && historical_price(toy) < to_int(get_property("autoBuyPriceLimit")) && retrieve_item(1, toy));
}
boolean playwith(item toy, string prop) {
if(get(toy) && (get_property(prop) == "" || get_property(prop) == "false"))
return use(1, toy);
return false;
}
while(get($item[cheap toaster]) && get_property("_toastSummons").to_int() < 3)
use(1, $item[cheap toaster]);
foreach car in $items[BittyCar MeatCar, BittyCar SoulCar, BittyCar HotCar]
if(playwith(car, "_bittycar")) break;
playwith($item[handmade hobby horse], "_hobbyHorseUsed");
playwith($item[ball-in-a-cup], "_ballInACupUsed");
playwith($item[set of jacks], "_setOfJacksUsed");
playwith($item[Chester's bag of candy], "_bagOfCandyUsed");
playwith($item[Emblem of Ak'gyxoth], "_akgyxothUsed");
playwith($item[Idol of Ak'gyxoth], "_akgyxothUsed");
playwith($item[burrowgrub hive], "burrowgrubHiveUsed");
playwith($item[glass gnoll eye], "_gnollEyeUsed");
playwith($item[KoL Con Six Pack], "_kolConSixPackUsed");
playwith($item[Trivial Avocations board game], "_trivialAvocationsGame");
playwith($item[creepy voodoo doll], "_creepyVoodooDollUsed");
playwith($item[Taco Dan's Taco Stand Flier], "_tacoFlierUsed");
playwith($item[cursed microwave], "_cursedMicrowaveUsed");
playwith($item[cursed pony keg], "_cursedKegUsed");
playwith($item[warbear soda machine], "_warbearSodaMachineUsed");
playwith($item[warbear breakfast machine], "_warbearBreakfastMachineUsed");
playwith($item[festive warbear bank], "_warbearBankUsed");
playwith($item[Chroner trigger], "_chronerTriggerUsed");
playwith($item[Chroner cross], "_chronerCrossUsed");
playwith($item[picky tweezers], "_pickyTweezersUsed");
playwith($item[The Cocktail Shaker], "_cocktailShakerUsed");
playwith($item[infinite BACON machine], "_baconMachineUsed");
}