Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- script mpBurn
- notify the dictator;
- import DicsLibrary.ash
- import Librams.ash
- string MPMaximizerString = "mp, -mana cost, -buddybjorn, -crownofthrones, -equip hewn moon-rune spoon, switch tot, switch disembodied hand, switch left-hand man";
- boolean maximizedMP = false;
- int mpRestored;
- stat highestBaseStat() {
- stat highestStat = $stat[mysticality];
- foreach st in $stats[muscle,moxie]
- if ( my_basestat(st) > my_basestat(highestStat) )
- highestStat = st;
- return highestStat;
- }
- boolean GetSphygmayomanometer() {
- if (!get_property_bool("_mayoDeviceRented") && get_property_int("mayoLevel") >= 80 ) {
- if ( MayoClinicAvailable() )
- buy(1,$item[sphygmayomanometer]);
- }
- return retrieve_item(1,$item[sphygmayomanometer]);
- }
- void MPPrep() {
- if ( my_basestat(highestBaseStat()) - my_basestat($stat[mysticality]) > 100 && !(string_modifier("Equalize") == "High" || string_modifier("Equalize") == highestBaseStat().to_string()) ) {
- if ( highestBaseStat() == $stat[moxie] ) {
- MPMaximizerString = MPMaximizerString+", equip moxie magnet";
- equip($item[moxie magnet]);
- if ( !has_effect($effect[Ten out of Ten]) && (get_property_bool("daycareOpen") || get_property_bool("_daycareToday")) && !get_property_bool("_daycareSpa") )
- cli_execute("daycare moxie");
- }
- else if ( highestBaseStat() == $stat[muscle] && StockUp(1,$item[oil of stability],654,987)
- && to_float(my_basestat($stat[muscle])-my_basestat($stat[mysticality]))*(100.0+numeric_modifier("mysticality percent"))*(100.0+numeric_modifier("maximum mp percent"))/100/100 > 1000 )
- {
- use(1,$item[oil of stability]);
- }
- }
- if ( !has_effect($effect[Uncucumbered]) && (get_property_bool("daycareOpen") || get_property_bool("_daycareToday")) && !get_property_bool("_daycareSpa") )
- cli_execute("daycare mysticality");
- StockUp(1,$item[green mana],5432,7654);
- if ( !get_property_bool("telescopeLookedHigh") && !has_effect($effect[Starry-Eyed]) )
- cli_execute("telescope high;");
- if ( !get_property_bool("_lyleFavored") && !has_effect($effect[Favored by Lyle]) ) {
- cli_execute("monorail buff;");
- visit_url("main.php");
- }
- if ( !get_property_bool("_streamsCrossed") && !has_effect($effect[Total Protonic Reversal]) && available_amount($item[protonic accelerator pack])>0 )
- cli_execute("crossstreams;");
- if ( !get_property_bool("_ballpit") && !has_effect($effect[Having a Ball!]) && (get_clan_rumpus()["Awesome Ball Pit"] >= 10000 || switchClan(84165)) ) // AfHeck
- cli_execute("ballpit;");
- if ( !has_effect($effect[Stevedave's Shanty of Superiority]) && have_skill($skill[Stevedave's Shanty of Superiority]) && makeRoomSong() )
- use_skill(1,$skill[Stevedave's Shanty of Superiority]);
- if ( !has_effect($effect[Song of Bravado]) && have_skill($skill[Song of Bravado]) )
- use_skill(1,$skill[Song of Bravado]);
- if ( !has_effect($effect[Triple-Sized]) && available_amount($item[Powerful Glove])>0 && $skill[CHEAT CODE: Triple Size].dailylimit > 0 && equip($item[Powerful Glove]) )
- use_skill(1,$skill[CHEAT CODE: Triple Size]);
- if ( !has_effect($effect[[1457]Blood Sugar Sauce Magic]) && !has_effect($effect[[1458]Blood Sugar Sauce Magic]) && have_skill($skill[Blood Sugar Sauce Magic]) )
- use_skill(1,$skill[Blood Sugar Sauce Magic]);
- if ( !get_property_bool("_spacegateVaccine") && !has_effect($effect[Broad-Spectrum Vaccine]) && get_property_bool("spacegateVaccine2") && (get_property_bool("spacegateAlways") || get_property_bool("_spacegateToday")) )
- cli_execute("spacegate vaccine 2");
- GetSphygmayomanometer();
- }
- void MaybeMaximizeMP( int mpRestored ) {
- if ( !maximizedMP && (mpRestored < 0 || mpRestored > my_maxmp()-my_mp() || my_maxmp() < mp_cost($skill[Summon BRICKOs])) ) {
- MPPrep();
- maximize(MPMaximizerString,false);
- maximizedMP = true;
- }
- }
- void LicenseToChill() {
- if ( !get_property_bool("_licenseToChillUsed") && available_amount($item[License to Chill])>0 ) {
- MaybeMaximizeMP(-1);
- LibramBurn(true);
- use(1,$item[license to chill]);
- LibramBurn(false);
- }
- }
- void PYEC() {
- if ( !get_property_bool("expressCardUsed") && available_amount($item[Platinum Yendorian Express Card])>0 ) {
- MaybeMaximizeMP(-1);
- LibramBurn(true);
- use(1,$item[Platinum Yendorian Express Card]);
- LibramBurn(false);
- }
- }
- void MakeSausages() {
- if ( !get_property_bool("_Dic.sausagesCreated") ) {
- int createSausages = 0;
- createSausages = min(available_amount($item[magical sausage casing]),max(11,min(30,(available_amount($item[magical sausage casing])+get_property_int("_sausagesMade"))/5))-get_property_int("_sausagesMade"));
- if ( createSausages > 0 ) {
- create(createSausages,$item[magical sausage]);
- }
- set_property("_Dic.sausagesCreated","true");
- }
- }
- void EatSausages( int amount ) {
- if ( bossKilling ) {
- print("Bosskilling mode, skipping kramco sausage eating","blue");
- return;
- }
- amount = max(amount,0);
- amount = min(amount,23-get_property_int("_sausagesEaten"));
- tryNumberology();
- while ( amount > 0 ) {
- MaybeMaximizeMP(999);
- if ( eat($item[magical sausage]) )
- amount -= 1;
- LibramBurn();
- tryNumberology();
- }
- }
- void FratNuns() {
- while ( get_property("sidequestNunsCompleted")=="fratboy" && get_property_int("nunsVisits") < 3) {
- mpRestored = 1000;
- MaybeMaximizeMP(mpRestored);
- if ( mpRestored < my_maxmp()-my_mp() ) {
- cli_execute("nuns");
- LibramBurn();
- }
- else
- break;
- }
- }
- void ClanShower() {
- if ( !get_property_bool("_aprilShower") && switchClan(84165) ) { //AfHeck
- mpRestored = 1000;
- MaybeMaximizeMP(mpRestored);
- if ( mpRestored < my_maxmp()-my_mp() ) {
- cli_execute("shower hot");
- LibramBurn();
- }
- }
- }
- void FreeRests() {
- item previousPants;
- if ( get_property_int("timesRested") < total_free_rests() ) {
- try {
- int mpRestored = numeric_modifier(get_dwelling(),"Base Resting MP")*(100+numeric_modifier("Resting MP Percent"))/100;
- mpRestored += numeric_modifier("Bonus Resting MP");
- if ( equipped_amount($item[pantsgiving])==0 && available_amount($item[pantsgiving])>0 )
- mpRestored += numeric_modifier($item[pantsgiving],"Bonus Resting MP");
- print("mpRestored: "+mpRestored);
- if ( mpRestored > 125 ) {
- set_property("restUsingChateau","false");
- set_property("restUsingCampAwayTent","false");
- if ( equipped_item($slot[pants]) != $item[pantsgiving] && my_fullness()>0 ) {
- previousPants = equipped_item($slot[pants]);
- equip($slot[pants],$item[pantsgiving]);
- }
- }
- else
- mpRestored = 126;
- while ( get_property_int("timesRested") < total_free_rests() ) {
- MaybeMaximizeMP(mpRestored);
- if ( mpRestored < my_maxmp()-my_mp() ) {
- cli_execute("rest free");
- LibramBurn();
- }
- else
- break;
- }
- }
- finally {
- set_property("restUsingChateau","true");
- set_property("restUsingCampAwayTent","true");
- if ( previousPants != $item[none] && equipped_item($slot[pants]) == $item[pantsgiving] )
- equip($slot[pants],previousPants);
- }
- }
- }
- void NeverendingSoda() {
- if ( !get_property_bool("oscusSodaUsed") && item_amount($item[Oscus's neverending soda]) > 0 ) {
- mpRestored = 300;
- MaybeMaximizeMP(mpRestored);
- if ( mpRestored < my_maxmp()-my_mp() ) {
- use(1,$item[Oscus's neverending soda]);
- LibramBurn();
- }
- }
- }
- void EternalCarBattery() {
- if ( !get_property_bool("_eternalCarBatteryUsed") && item_amount($item[eternal car battery]) > 0 ) {
- mpRestored = 55;
- MaybeMaximizeMP(mpRestored);
- if ( mpRestored < my_maxmp()-my_mp() ) {
- use(1,$item[eternal car battery]);
- LibramBurn();
- }
- }
- }
- void mpBurn() {
- LibramBurn(false);
- LicenseToChill();
- PYEC();
- MakeSausages();
- EatSausages(available_amount($item[magical sausage])-23*11);
- FratNuns();
- ClanShower();
- FreeRests();
- NeverendingSoda();
- EternalCarBattery();
- }
- void main() {
- mpBurn();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement