Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- script "Automatic 2-day Hardcore Community Service";
- //courtesy of yojimboS_LAW's 2-day HC guide
- //woulda liked a #define or const here but hey I'll take what I can get
- int HPTEST = 1;
- int MUSTEST = 2;
- int MYSTTEST = 3;
- int MOXTEST = 4;
- int FAMTEST = 5;
- int WPNTEST = 6;
- int SPELLTEST = 7;
- int COMTEST = 8;
- int ITEMTEST = 9;
- int HOTTEST = 10;
- int COILTEST = 11;
- boolean actuallyrun = false;
- ////Needs crimbo shrub logic for YR use
- ////make bitchin meatcar
- ////switch chateau to moxie for a rest or two if need to get to 35 for hot equip....or powerlevel before hot test?
- ////allow running before ascending to check prereqs then
- ////if have both 70s volcano and dinsey and got fish DNA before elemental, switch to barf mountain for elemental
- void setFamiliar() { //idk about this but something's better than nothing...I'd throw puck-man here but then I'd have to unlock the woods so meh
- if (my_familiar() == $familiar[none]) {
- if (have_familiar($familiar[Fist Turkey])) {
- use_familiar($familiar[Fist Turkey]);
- } else if (have_familiar($familiar[Golden Monkey])) {
- use_familiar($familiar[Golden Monkey]);
- } else if (have_familiar($familiar[Grim Brother])) {
- use_familiar($familiar[Grim Brother]);
- } else if (have_familiar($familiar[Unconscious Collective])) {
- use_familiar($familiar[Unconscious Collective]);
- } else if (have_familiar($familiar[Galloping Grill])) {
- use_familiar($familiar[Galloping Grill]);
- } else if (have_familiar($familiar[Crimbo Shrub])) {
- use_familiar($familiar[Crimbo Shrub]);
- } else if (have_familiar($familiar[Smiling Rat])) {
- use_familiar($familiar[Smiling Rat]);
- }
- }
- }
- void newSave() {
- int [string] statemap;
- statemap["questStage"] = 0;
- statemap["skippingIsland"] = 0;
- statemap["run"] = get_property("knownAscensions").to_int();
- map_to_file(statemap, "AutoHCCSvars.txt");
- }
- void saveProgress(int questStage) {
- int [string] statemap;
- file_to_map("AutoHCCSvars.txt", statemap);
- statemap["questStage"] = questStage;
- map_to_file(statemap, "AutoHCCSvars.txt");
- }
- void skipIsland() {
- int [string] statemap;
- file_to_map("AutoHCCSvars.txt", statemap);
- statemap["skippingIsland"] = 1;
- map_to_file(statemap, "AutoHCCSvars.txt");
- }
- boolean islandSkipped() {
- int [string] statemap;
- file_to_map("AutoHCCSvars.txt", statemap);
- if (statemap["skippingIsland"] == 1) {
- return true;
- } else {
- return false;
- }
- }
- int savedAscNum() {
- int [string] statemap;
- file_to_map("AutoHCCSvars.txt", statemap);
- return statemap["run"];
- }
- int questStage() {
- int [string] statemap;
- file_to_map("AutoHCCSvars.txt", statemap);
- return statemap["questStage"];
- }
- void unlockSkeletonStore() {
- visit_url("shop.php?whichshop=meatsmith&action=talk");
- visit_url("choice.php?pwd&whichchoice=1059&option=1&choiceform1=Sure%2C+I%27ll+go+check+it+out.");
- }
- boolean get_property_boolean(string property) {
- return get_property(property).to_boolean();
- }
- int get_property_int(string property) {
- return get_property(property).to_int();
- }
- void checkPrereq() {
- if (!have_skill($skill[The Ode to Booze])) {
- abort("You need Ode to Booze first.");
- } else if (!have_skill($skill[Summon Smithsness])) {
- abort("You need Summon Smithsness first.");
- } else if (!have_skill($skill[Advanced Saucecrafting])) {
- abort("You need Advanced Saucecrafting first.");
- } else if (!get_property_boolean("chateauAvailable")) {
- abort("You need access to Chateau Mantegna first.");
- } else if ($item[Clan VIP Lounge key].available_amount() == 0) {
- abort("You need access to your clan's VIP lounge first.");
- } else if ($item[Deck of Every Card].available_amount() == 0) {
- abort("You need the Deck of Every Card first.");
- } else if (my_class() != $class[sauceror]) {
- abort("You're supposed to be a sauceror.");
- } else if (!knoll_available()) {
- abort("You're supposed to have access to the (friendly) Degrassi Knoll. You know, muscle sign.");
- }
- }
- void sellJewels() {
- print("Selling jewels...");
- foreach stone in $items[hamethyst, baconstone, porquoise]
- autosell(item_amount(stone), stone);
- }
- int advCost(int whichtest) {
- buffer page = visit_url("council.php");
- string teststr = "name=option value="+ whichtest +">";
- if (contains_text(page, teststr)) {
- int chars = 140; //chars to look ahead
- string pagestr = substring(page, page.index_of(teststr)+length(teststr), page.index_of(teststr)+length(teststr)+chars);
- string advstr = substring(pagestr, pagestr.index_of("(")+1, pagestr.index_of("(")+3);
- advstr = replace_string(advstr, " ", ""); //removes whitespace, if the test is < 10 adv
- return to_int(advstr);
- } else {
- print("Didn't find specified test on the council page. Already done?");
- return 99999;
- }
- }
- int free_rests_left() {
- return total_free_rests() - get_property_int("timesRested");
- }
- boolean useIfHave(int howmany, item what) {
- if(what.available_amount() >= howmany) {
- use(howmany, what);
- return true;
- } else {
- return false;
- }
- }
- boolean free_rest() {
- if (free_rests_left() > 0) {
- visit_url("place.php?whichplace=chateau&action=chateau_restlabelfree");
- return true;
- } else {
- return false;
- }
- }
- void calderaMood() {
- cli_execute("mood CalderaMood");
- cli_execute("mood clear");
- if (have_skill($skill[Elemental Saucesphere])) {
- cli_execute("trigger lose_effect, Elemental Saucesphere, cast 1 Elemental Saucesphere");
- } else if (have_skill($skill[Astral Shell])) {
- cli_execute("trigger lose_effect, Astral Shell, cast 1 Astral Shell");
- } else if (have_skill($skill[Reptilian Fortitude])) {
- cli_execute("trigger lose_effect, Reptilian Fortitude, cast 1 Reptilian Fortitude");
- } else if (have_skill($skill[Springy Fusilli])) {
- cli_execute("trigger lose_effect, Springy Fusilli, cast 1 Springy Fusilli");
- } else if (have_skill($skill[The Power Ballad of the Arrowsmith])) {
- cli_execute("trigger lose_effect, The Power Ballad of the Arrowsmith, cast 1 The Power Ballad of the Arrowsmith");
- } else if (have_skill($skill[Suspicious Gaze])) {
- cli_execute("trigger lose_effect, Suspicious Gaze, cast 1 Suspicious Gaze");
- } else if (have_skill($skill[Cletus's Canticle of Celerity])) {
- cli_execute("trigger lose_effect, Cletus's Canticle of Celerity, cast 1 Cletus's Canticle of Celerity");
- } else if (have_skill($skill[Sauce Contemplation])) {
- cli_execute("trigger lose_effect, Sauce Contemplation, cast 1 Sauce Contemplation");
- } else if (have_skill($skill[Patience of the Tortoise])) {
- cli_execute("trigger lose_effect, Patience of the Tortoise, cast 1 Patience of the Tortoise");
- } else if (have_skill($skill[Moxie of the Mariachi])) {
- cli_execute("trigger lose_effect, Moxie of the Mariachi, cast 1 Moxie of the Mariachi");
- }
- cli_execute("mood execute");
- }
- void chateauCast(skill which) { //casts the skill as normal (if you have it), unless you don't have the MP, in which case it will use a free rest at the chateau first
- if (have_skill(which)) {
- if (my_mp() >= mp_cost(which)) {
- use_skill(which);
- } else if (free_rest()) {
- if (my_mp() >= mp_cost(which)) {
- use_skill(which);
- } else {
- abort("Failed to cast " + to_string(which) + " even after a Chateau rest...");
- }
- } else {
- restore_mp(mp_cost(which));
- print("Ran out of MP and free rests; had to restort to meat-MP instead", "red");
- if (my_mp() >= mp_cost(which)) {
- use_skill(which);
- } else {
- abort("Failed to cast " + to_string(which) + " even after restoring MP...");
- }
- }
- }
- }
- boolean doTest(int which) {
- if (my_adventures() >= advCost(which)) {
- visit_url("choice.php?whichchoice=1089&option="+which+"&pwd="+my_hash());
- return true;
- } else {
- abort("Failed to generate enough adventures to complete test " + which);
- return false;
- }
- }
- int hotdogStock(int which) { //returns how many of the item to 'unlock' a dog is currently stocked
- buffer page = visit_url("clan_viplounge.php?action=hotdogstand");
- string dogstr = substring(page, page.index_of(which.to_string()), page.index_of(which.to_string())+550);
- string stockstr = substring(dogstr, dogstr.index_of("in stock")-6, dogstr.index_of("in stock"));
- return substring(stockstr, stockstr.index_of("(")+1, stockstr.index_of(" ")).to_int();
- }
- boolean hotdogAvailable(int which) { //returns true if you don't have to restock to eat the specified hotdog
- buffer page = visit_url("clan_viplounge.php?action=hotdogstand");
- string dogstr = substring(page, page.index_of(which.to_string()), page.index_of(which.to_string())+10);
- if (contains_text(dogstr, "_food")) { //if _food is the first match, the hotdog is disabled.
- return false;
- } else {
- return true;
- }
- }
- void restockHotdog(int which) {
- int target;
- item restockitem;
- switch(which) {
- case -101: //sleeping dog
- target = 10;
- restockitem = $item[gauze hammock];
- break;
- case -100: //wet dog
- target = 25;
- restockitem = $item[sleaze wad];
- break;
- case -99: //junkyard dog
- target = 25;
- restockitem = $item[stench wad];
- break;
- default:
- abort("Unsupported hotdog");
- break;
- }
- int amtneeded = target - hotdogStock(which);
- if (amtneeded < 1) {
- abort("Got confused while trying to restock hotdog.");
- } else if (storage_amount(restockitem) < amtneeded) {
- buy_using_storage(amtneeded - storage_amount(restockitem), restockitem, -1);
- }
- visit_url("clan_viplounge.php?preaction=hotdogsupply&hagnks=1&whichdog="+which+"&quantity="+amtneeded);
- }
- void eatHotdog(int which) {
- if (!hotdogAvailable(which)) {
- restockHotdog(which);
- }
- visit_url("clan_viplounge.php?preaction=eathotdog&whichdog="+which);
- }
- void cast(skill which) { //just casts it if you have it.
- if (have_skill(which)) {
- use_skill(which);
- }
- }
- void summonDailyStuff() {
- use_skill(3, $skill[Summon Smithsness]);
- chateauCast($skill[Advanced Saucecrafting]);
- chateauCast($skill[Advanced Cocktailcrafting]);
- chateauCast($skill[Pastamastery]);
- chateauCast($skill[Grab a Cold One]);
- chateauCast($skill[Spaghetti Breakfast]);
- visit_url("campground.php?action=garden");
- visit_url("campground.php?action=workshed");
- }
- int advToSemirare() {
- for i from 0 to 200 { //this is ridiculous.
- if (get_counters("Fortune Cookie", i, i) != "") {
- return i; //if 0 then semirare is imminent
- }
- }
- return 99999;
- }
- string checkGarden() {
- buffer page = visit_url("campground.php");
- if (contains_text(page, "A Winter Garden")) {
- return "winter";
- } else if (contains_text(page, "A Beer Garden")) {
- return "beer";
- } else if (contains_text(page, "A Pumpkin Patch")) {
- return "pumpkin";
- } else if (contains_text(page, "A Peppermint Patch")) {
- return "peppermint";
- } else if (contains_text(page, "A Bone Garden")) {
- return "bone";
- } else {
- return "none";
- }
- }
- int g9val() { //useless in hindsight; we get g9 on day 1 and use it on day 2 so its values are irrelevant. maybe I'll move g9 farming to day 2 if you got the SR between shore trips
- buffer page = visit_url("desc_effect.php?whicheffect=af64d06351a3097af52def8ec6a83d9b");
- return substring(page, page.index_of("+")+1, page.index_of("%")).to_int();
- }
- boolean giantGrowth() {
- if(!have_skill($skill[Giant Growth]) || $item[Louder Than Bomb].available_amount() == 0 || $item[green mana].available_amount() == 0) {
- return false;
- } else {
- familiar curfam = my_familiar();
- use_familiar($familiar[none]);
- adventure(1, $location[The Dire Warren], "combat");
- use_familiar(curfam);
- if(have_effect($effect[Giant Growth]) > 0) {
- return true;
- } else {
- return false;
- }
- }
- }
- string combatYR() {
- if (have_skill($skill[Open a Big Yellow Present])) {
- return "skill Open a Big Yellow Present";
- } else if ($item[Golden Light].available_amount() > 0) {
- return "use Golden Light";
- } else {
- abort("No yellow ray available when trying to use one");
- return "I really shouldn't have to specify a return value after an abort";
- }
- }
- string combat(int round, string opp, string text) { //always uses your own custom combat script after first doing whatever you're supposed to
- if (opp.contains_text("pirate") && $item[DNA extraction syringe].available_amount() > 0) { //pirate DNA
- if(round == 1) {
- return "use DNA extraction syringe";
- } else {
- return get_ccs_action(round - 1);
- }
- } else if (opp == $monster[lavatory].to_string()) { //elemental DNA
- if ($item[Gene Tonic: Elemental].available_amount() == 0) {
- if(round == 1) {
- return "use DNA extraction syringe";
- } else {
- return get_ccs_action(round - 1);
- }
- } else {
- return get_ccs_action(round);
- }
- } else if (opp == $monster[lava lamprey].to_string()) { //fish DNA
- if (have_effect($effect[Human-Fish Hybrid]) == 0) {
- if(round == 1) {
- return "use DNA extraction syringe";
- } else {
- return get_ccs_action(round - 1);
- }
- } else {
- return get_ccs_action(round);
- }
- } else if (opp == $monster[dairy goat].to_string()) { //beast DNA and milk of magnesium
- if(round == 1 && $item[DNA extraction syringe].available_amount() > 0 && $item[Gene Tonic: Beast].available_amount() == 0) {
- return "use DNA extraction syringe";
- } else if ($item[Golden Light].available_amount() > 0) {
- return combatYR();
- } else {
- return get_ccs_action(round - 1);
- }
- } else if (opp == $monster[super-sized Cola Wars soldier].to_string() || opp == $monster[lab monkey].to_string() || opp == $monster[creepy little girl].to_string()) {
- return "run away"; ////no idea if this works, lol
- } else if (opp == $monster[government scientist].to_string()) {
- if (have_effect($effect[On the Trail]) == 0) {
- return "skill Transcendent Olfaction";
- } else if (have_effect($effect[On the Trail]) == 40) { //used it this combat
- return get_ccs_action(round - 1);
- } else {
- return get_ccs_action(round);
- }
- } else if (opp.contains_text("hippy") || opp.contains_text("Frat Boy") || opp == $monster[novelty tropical skeleton].to_string() || opp == $monster[factory worker (female)].to_string() || opp == $monster[factory overseer (female)].to_string()) {
- return combatYR();
- } else if (opp == $monster[fluffy bunny].to_string()) {
- if (round == 1) {
- return "skill Giant Growth";
- } else {
- return "use Louder Than Bomb";
- }
- } else { //no special case, just use your CCS
- return get_ccs_action(round);
- }
- }
- boolean getSRifCan() { //returns true if got it
- if (advToSemirare() == 0) {
- if (checkGarden() == "winter") {
- adventure(1, $location[The Limerick Dungeon], "combat");
- } else {
- adventure(1, $location[The Outskirts of Cobb's Knob], "combat");
- use(1, $item[Knob Goblin lunchbox]);
- }
- return true;
- } else {
- return false;
- }
- }
- boolean pulverize(item which) {
- if (!have_skill($skill[Pulverize]) || which.available_amount() == 0) {
- return false;
- } else {
- cli_execute("pulverize " + which);
- return true;
- }
- }
- void getG9Serum() { //like 0-7 turns prolly
- if(questStage() >= 8) {
- return;
- }
- if (get_property_boolean("spookyAirportAlways") && have_skill($skill[Transcendent Olfaction])) {
- if (my_mp() < mp_cost($skill[Transcendent Olfaction])) {
- if (!free_rest()) {
- restore_mp(mp_cost($skill[Transcendent Olfaction]));
- print("Had to restort to meat-MP instead of chateau rest", "red");
- }
- }
- while($item[experimental serum G-9].available_amount() < 2) {
- if (!getSRifCan()) {
- adventure(1, $location[The Secret Government Laboratory], "combat");
- }
- }
- }
- saveProgress(8);
- }
- boolean hasScalingZone() {
- if (get_property_boolean("hotAirportAlways") || get_property_boolean("spookyAirportAlways") || get_property_boolean("sleazyAirportAlways") || get_property_boolean("sleazyAirportAlways") || $item[GameInformPowerDailyPro walkthru].available_amount() > 0 || $item[GameInformPowerDailyPro magazine].available_amount() > 0) {
- return true;
- } else {
- return false;
- }
- }
- void eatHotFood() {
- use(1, $item[milk of magnesium]);
- eat(1, $item[sausage without a cause]);
- if (hotdogAvailable(-99)) { //junkyard dog
- visit_url("clan_viplounge.php?preaction=eathotdog&whichdog=-99");
- } else if (hotdogAvailable(-100)) { //wet dog
- visit_url("clan_viplounge.php?preaction=eathotdog&whichdog=-100");
- } else {
- if (hotdogStock(-99) >= hotdogStock(-100)) {
- eatHotdog(-99);
- } else {
- eatHotdog(-100);
- }
- }
- if ($item[ice harvest].available_amount() > 0) {
- eat(1, $item[ice harvest]);
- }
- if ($item[snow crab].available_amount() > 0) {
- eat(1, $item[snow crab]);
- } else if ($item[snow berries].available_amount() >= 2) {
- create(1, $item[snow crab]);
- eat(1, $item[snow crab]);
- }
- if (my_fullness() < 14) {
- if ($item[limp broccoli].available_amount() > 0) {
- eat(1, $item[limp broccoli]);
- } else if ($item[gooey lava globs].available_amount() > 0) {
- eat(1, $item[gooey lava globs]);
- }
- }
- while (my_fullness() < 15) {
- if ($item[Knob pasty].available_amount() > 0) {
- eat(1, $item[Knob pasty]);
- } else if ($item[tasty tart].available_amount() > 0) {
- eat(1, $item[tasty tart]);
- } else {
- print("Resorting to eating a fortune cookie for remaining fullness.", "red");
- buy(1, $item[fortune cookie]);
- eat(1, $item[fortune cookie]);
- }
- }
- }
- void hotTest() {
- if(questStage() == 21) {
- pulverize($item[dirty rigging rope]);
- pulverize($item[sewage-clogged pistol]);
- pulverize($item[dirty hobo gloves]);
- if ($item[lava-proof pants].available_amount() > 0) {
- equip($item[lava-proof pants]);
- }
- if ($item[perfume-soaked bandana].available_amount() > 0) {
- equip($slot[acc1], $item[perfume-soaked bandana]);
- }
- if ($item[heat-resistant necktie].available_amount() > 0) {
- equip($slot[acc2], $item[heat-resistant necktie]);
- }
- if ($item[heat-resistant gloves].available_amount() > 0) {
- equip($slot[acc3], $item[heat-resistant gloves]);
- }
- if ($item[stench powder].available_amount() > 0 && $item[scrumptious reagent].available_amount() > 0) {
- create(1, $item[lotion of stench]);
- use(1, $item[lotion of stench]);
- }
- if ($item[sleaze powder].available_amount() > 0 && $item[scrumptious reagent].available_amount() > 0) { //not that I have any idea what I could pulverize for this.
- create(1, $item[lotion of sleaziness]);
- use(1, $item[lotion of sleaziness]);
- }
- useIfHave(1, $item[scroll of Protection from Bad Stuff]);
- useIfHave(1, $item[Gene Tonic: Elemental]);
- if (have_familiar($familiar[Exotic Parrot])) {
- use_familiar($familiar[Exotic Parrot]);
- chateauCast($skill[Leash of Linguini]);
- chateauCast($skill[Empathy of the Newt]);
- }
- saveProgress(22);
- }
- if(questStage() == 22) {
- eatHotFood();
- chateauCast($skill[Elemental Saucesphere]);
- chateauCast($skill[Astral Shell]);
- if (!hasScalingZone()) {
- if (have_effect($effect[Ode to Booze]) < 2) {
- chateauCast($skill[The Ode to Booze]);
- }
- visit_url("clan_viplounge.php?preaction=speakeasydrink&drink=7&pwd="+my_hash()); //ish kabibble
- }
- saveProgress(23);
- }
- if(questStage() >= 24) {
- return;
- }
- doTest(HOTTEST);
- saveProgress(24);
- }
- void weaponTest() {
- if(questStage() == 8) {
- //chataeau rest while buffing dmg
- chateauCast($skill[The Ode to Booze]);
- visit_url("clan_viplounge.php?preaction=speakeasydrink&drink=6&pwd="+my_hash()); //sockadollager
- chateauCast($skill[Rage of the Reindeer]);
- chateauCast($skill[Jackasses' Symphony of Destruction]);
- chateauCast($skill[Tenacity of the Snapper]);
- chateauCast($skill[Song of the North]);
- while (my_level() < 8 && free_rest()) {} //expends free rests until level 8 or running out
- if (my_level() < 8) {
- print("Failed to reach level 8 with chateau rests...oh well", "red");
- } else if (free_rests_left() > 0) {
- print("Reached level 8 with "+ free_rests_left() +" free rests left", "green");
- } else {
- print("Reaced level 8, but ran out of free rests", "blue");
- }
- saveProgress(9);
- }
- if(questStage() == 9) {
- //consume astrals
- if ($item[astral energy drink].available_amount() > 0) {
- chew(1, $item[astral energy drink]);
- } else if ($item[astral pilsner].available_amount() > 0) {
- while (my_inebriety() < 14 && my_adventures() < advCost(WPNTEST)) {
- if (have_effect($effect[Ode to Booze]) == 0) {
- chateauCast($skill[The Ode to Booze]);
- }
- drink(1, $item[astral pilsner]);
- }
- }
- saveProgress(10);
- }
- if(questStage() >= 11) {
- return;
- }
- doTest(WPNTEST);
- saveProgress(11);
- }
- void itemTest() {
- if(questStage() == 11) {
- //eat food
- use(1, $item[milk of magnesium]);
- eatHotdog(-101); //sleeping dog
- eat(1, $item[weird gazelle steak]);
- eat(1, $item[This Charming Flan]);
- if ($item[snow crab].available_amount() > 0) {
- eat(1, $item[snow crab]);
- } else if ($item[Knob pasty].available_amount() > 0) {
- eat(1, $item[Knob pasty]);
- } else {
- print("Resorting to eating a fortune cookie for last point of fullness.", "red");
- buy(1, $item[fortune cookie]);
- eat(1, $item[fortune cookie]);
- }
- saveProgress(12);
- }
- if(questStage() == 12) {
- //buff item drop
- useIfHave(1, $item[Gene Tonic: Pirate]);
- useIfHave(1, $item[tin cup]);
- useIfHave($item[pulled yellow taffy].available_amount(), $item[pulled yellow taffy]);
- if ($item[Agitated Turkey].available_amount() > 0 && my_inebriety() < 14) {
- if (have_effect($effect[Ode to Booze]) == 0) {
- chateauCast($skill[The Ode to Booze]);
- }
- use(1, $item[Agitated Turkey]);
- }
- chateauCast($skill[Fat Leon's Phat Loot Lyric]);
- chateauCast($skill[Singer's Faithful Ocelot]);
- saveProgress(13);
- }
- if(questStage() >= 14) {
- return;
- }
- doTest(ITEMTEST);
- saveProgress(14);
- }
- void allStatBuffs() {
- if (have_effect($effect[Song of Bravado]) == 0) {
- chateauCast($skill[Song of Bravado]);
- }
- if (have_effect($effect[Tomato Power]) == 0) {
- useIfHave(1, $item[tomato juice of powerful power]);
- }
- if (have_effect($effect[Experimental Effect G-9]) == 0) {
- useIfHave(1, $item[experimental serum G-9]);
- }
- if (have_effect($effect[Stevedave's Shanty of Superiority]) == 0) {
- chateauCast($skill[Stevedave's Shanty of Superiority]);
- }
- if (have_effect($effect[Expert Oiliness]) == 0) {
- useIfHave(1, $item[oil of expertise]);
- }
- if (have_effect($effect[Smithsness Presence]) == 0) {
- useIfHave(1, $item[handful of Smithereens]);
- }
- if (get_property_int("_speakeasyDrinksDrunk") < 3 && have_effect($effect[On the Trolley]) == 0) {
- if (have_effect($effect[Ode to Booze]) < 2) {
- chateauCast($skill[The Ode to Booze]);
- }
- visit_url("clan_viplounge.php?preaction=speakeasydrink&drink=5&pwd="+my_hash()); //bee's knees
- }
- }
- void hpTest() {
- if(questStage() == 26) {
- cli_execute("cheat strength");
- use(1, $item[oil of expertise]);
- useIfHave(1, $item[scroll of Puddingskin]);
- useIfHave(1, $item[philter of phorce]);
- if (have_effect($effect[Tomato Power]) == 0) {
- useIfHave(1, $item[tomato juice of powerful power]);
- }
- if (have_effect($effect[Experimental Effect G-9]) == 0) {
- useIfHave(1, $item[experimental serum G-9]);
- }
- buy(2, $item[Ben-Gal™ Balm]);
- use(1, $item[Ben-Gal™ Balm]);
- chateauCast($skill[Song of Starch]);
- chateauCast($skill[Stevedave's Shanty of Superiority]);
- chateauCast($skill[Reptilian Fortitude]);
- chateauCast($skill[The Power Ballad of the Arrowsmith]);
- chateauCast($skill[Sauce Contemplation]);
- chateauCast($skill[Patience of the Tortoise]);
- chateauCast($skill[Moxie of the Mariachi]);
- chateauCast($skill[Rage of the Reindeer]);
- saveProgress(27);
- }
- if(questStage() == 27) {
- maximize("hp", false);
- if(doTest(HPTEST)) {
- chew(1, $item[blood-drive sticker]);
- }
- saveProgress(28);
- }
- }
- void spellTest() { //buffing for this test is actually handled at the end of day 2 so there's not much here.
- if(questStage() >= 19) {
- return;
- }
- maximize("spell damage", false);
- doTest(SPELLTEST);
- saveProgress(19);
- }
- void coilTest() {
- if(questStage() >= 4) {
- return;
- }
- if (my_adventures() >= 60) {
- doTest(COILTEST);
- use(1, $item[a ten-percent bonus]);
- } else {
- abort("Failed to generate enough adventures to coil wire.");
- }
- saveProgress(4);
- }
- void muscleTest() {
- if(questStage() == 28) {
- if (have_effect($effect[Power Ballad of the Arrowsmith]) == 0) {
- chateauCast($skill[The Power Ballad of the Arrowsmith]);
- }
- if (have_effect($effect[Rage of the Reindeer]) == 0) {
- chateauCast($skill[Rage of the Reindeer]);
- }
- chateauCast($skill[Seal Clubbing Frenzy]);
- chateauCast($skill[Patience of the Tortoise]);
- useIfHave(1, $item[jar of "Creole Lady" marrrmalade]);
- useIfHave(1, $item[dollop of barbecue sauce]);
- if (have_effect($effect[Phorcefullness]) == 0) {
- useIfHave(1, $item[philter of phorce]);
- }
- allStatBuffs();
- giantGrowth();
- saveProgress(29);
- }
- if(questStage() == 29) {
- maximize("muscle", false);
- doTest(MUSTEST);
- saveProgress(30);
- }
- }
- void mystTest() {
- if(questStage() == 30) {
- chateauCast($skill[The Magical Mojomuscular Melody]);
- chateauCast($skill[Sauce Contemplation]);
- chateauCast($skill[Manicotti Meditation]);
- useIfHave(1, $item[ointment of the occult]);
- allStatBuffs();
- giantGrowth();
- useIfHave(1, $item[bag of grain]);
- saveProgress(31);
- }
- if(questStage() == 31) {
- maximize("myst", false);
- doTest(MOXTEST);
- saveProgress(32);
- }
- }
- void moxieTest() {
- if(questStage() == 32) {
- chateauCast($skill[The Moxious Madrigal]);
- chateauCast($skill[Disco Fever]);
- chateauCast($skill[Moxie of the Mariachi]);
- chateauCast($skill[Disco Aerobics]);
- useIfHave(1, $item[dollop of barbecue sauce]);
- useIfHave(1, $item[pressurized potion of pulchritude]);
- useIfHave(1, $item[serum of sarcasm]);
- allStatBuffs();
- giantGrowth();
- useIfHave(1, $item[pocket maze]);
- saveProgress(33);
- }
- if(questStage() == 33) {
- maximize("moxie", false);
- doTest(MOXTEST);
- saveProgress(34);
- }
- }
- void famTest() {
- if(questStage() == 34) {
- chateauCast($skill[Empathy of the Newt]);
- chateauCast($skill[Leash of Linguini]);
- if($item[vintage smart drink].available_amount() > 0) {
- chateauCast($skill[The Ode to Booze]);
- chateauCast($skill[The Ode to Booze]);
- use(1, $item[vintage smart drink]);
- }
- saveProgress(35);
- }
- if(questStage() == 35) {
- maximize("familiar weight", false);
- doTest(FAMTEST);
- saveProgress(36);
- }
- }
- void noncombatTest() {
- if(questStage() == 37) {
- chateauCast($skill[The Sonata of Sneakiness]);
- chateauCast($skill[Smooth Movement]);
- if ($item[snow berries].available_amount() > 0) {
- create(1, $item[snow cleats]);
- use(1, $item[snow cleats]);
- }
- useIfHave(1, $item[deodorant]);
- useIfHave(1, $item[shady shades]);
- useIfHave(1, $item[squeaky toy rose]);
- saveProgress(38);
- }
- if(questStage() == 38) {
- maximize("-combat -tie", false);
- doTest(COMTEST);
- saveProgress(39);
- }
- }
- void powerlevel() {
- if(questStage() == 24 || questStage() == 25) {
- if (!hasScalingZone()) {
- print("No scaling zone found...skipping powerleveling.", "red");
- saveProgress(26);
- } else {
- //powerlevel
- if(questStage() == 24) {
- useIfHave(1, $item[ointment of the occult]);
- useIfHave(1, $item[experimental serum G-9]);
- if ($item[hot ashes].available_amount() > 1) {
- create(1, $item[ash soda]);
- use(1, $item[ash soda]);
- }
- chateauCast($skill[The Ode to Booze]);
- visit_url("clan_viplounge.php?preaction=speakeasydrink&drink=5&pwd="+my_hash()); //bee's knees
- chateauCast($skill[Ur-Kel's Aria of Annoyance]);
- chateauCast($skill[Ur-Kel's Aria of Annoyance]);
- chateauCast($skill[Pride of the Puffin]);
- chateauCast($skill[Drescher's Annoying Noise]);
- chateauCast($skill[Leash of Linguini]);
- chateauCast($skill[Empathy of the Newt]);
- chateauCast($skill[Empathy of the Newt]);
- chateauCast($skill[Wry Smile]);
- chateauCast($skill[Aloysius' Antiphon of Aptitude]);
- chateauCast($skill[Aloysius' Antiphon of Aptitude]);
- while (free_rests_left() > 1) {
- free_rest();
- }
- if (have_familiar($familiar[Hovering Sombrero])) {
- use_familiar($familiar[Hovering Sombrero]);
- } else if (have_familiar($familiar[Golden Monkey])) {
- use_familiar($familiar[Golden Monkey]);
- } else if (have_familiar($familiar[Grim Brother])) {
- use_familiar($familiar[Grim Brother]);
- } else if (have_familiar($familiar[Unconscious Collective])) {
- use_familiar($familiar[Unconscious Collective]);
- } else if (have_familiar($familiar[Galloping Grill])) {
- use_familiar($familiar[Galloping Grill]);
- } else if (have_familiar($familiar[Smiling Rat])) {
- use_familiar($familiar[Smiling Rat]);
- }
- maximize("myst", false);
- saveProgress(25);
- }
- if(questStage() == 25) {
- location farmzone;
- if (get_property_boolean("stenchAirportAlways")) {
- farmzone = $location[Uncle Gator's Country Fun-Time Liquid Waste Sluice];
- calderaMood(); //same deal here
- } else if (get_property_boolean("spookyAirportAlways")) {
- farmzone = $location[The Deep Dark Jungle];
- if ($item[Coinspiracy].available_amount() > 0) {
- buy($coinmaster[The Canteen], 1, $item[Jungle Juice]);
- drink(1, $item[Jungle Juice]);
- }
- } else if (get_property_boolean("sleazyAirportAlways")) {
- farmzone = $location[Sloppy Seconds Diner];
- } else if (get_property_boolean("hotAirportAlways")) {
- farmzone = $location[The SMOOCH Army HQ];
- } else {
- farmzone = $location[Video Game Level 1];
- }
- int turnsfarmed = 0;
- while (my_level() < 9 && turnsfarmed < 10) {
- adventure(1, farmzone, "combat");
- if (have_effect($effect[beaten up]) > 0) {
- abort("Getting beaten up when trying to powerlevel. Consider changing custom combat script?");
- }
- restore_hp(my_maxhp());
- turnsfarmed += 1;
- }
- saveProgress(26);
- }
- }
- }
- }
- void getTurtleTotem() {
- while($item[turtle totem].available_amount() < 1) {
- buy(1, $item[chewing gum on a string]);
- use(1, $item[chewing gum on a string]);
- }
- }
- void getMilk() {
- if(questStage() >= 3) {
- return;
- }
- if (get_property("chateauMonster") == "dairy goat") { //I don't know how to pipe this through my combat function so I just handled it manually here
- visit_url("place.php?whichplace=chateau&action=chateau_painting");
- if ($item[DNA extraction syringe].available_amount() > 0 && $item[Gene Tonic: Beast].available_amount() == 0) {
- if (have_skill($skill[Ambidextrous Funkslinging])) {
- visit_url("fight.php?action=useitem&whichitem=7383&whichitem2=7013&useitem=Use+Item%28s%29"); //7383 = syringe, 7013 = golden light
- } else {
- visit_url("fight.php?action=useitem&whichitem=7383&whichitem2=0&useitem=Use+Item%28s%29");
- visit_url("fight.php?action=useitem&whichitem=7013&whichitem2=0&useitem=Use+Item%28s%29");
- }
- } else {
- visit_url("fight.php?action=useitem&whichitem=7013&whichitem2=0&useitem=Use+Item%28s%29");
- }
- }
- saveProgress(3);
- }
- void getPirateDNA() {
- if(questStage() >= 5) {
- return;
- }
- if (get_property_boolean("stenchAirportAlways") && $item[DNA extraction syringe].available_amount() > 0) {
- adventure(1, $location[Pirates of the Garbage Barges], "combat");
- visit_url("campground.php?action=dnapotion");
- }
- saveProgress(5);
- }
- void getCalderaDNA() {
- if(questStage() >= 6) {
- return;
- }
- if (get_property_boolean("hotAirportAlways") && $item[DNA extraction syringe].available_amount() > 0) {
- calderaMood();
- while($item[Gene Tonic: Elemental].available_amount() == 0 || have_effect($effect[Human-Fish Hybrid]) == 0) {
- restore_hp(my_maxhp());
- adventure(1, $location[The Bubblin' Caldera], "combat");
- if (have_effect($effect[Beaten Up]) > 0) {
- print("You got whupped...", "red");
- visit_url("clan_viplounge.php?action=hottub");
- }
- buffer page = visit_url("campground.php?action=workshed");
- if (contains_text(page, "Human-Elemental Hybrid") && $item[Gene Tonic: Elemental].available_amount() == 0) {
- visit_url("campground.php?action=dnapotion");
- } else if (contains_text(page, "Human-Fish Hybrid") && have_effect($effect[Human-Fish Hybrid]) != 2147483547) {
- visit_url("campground.php?action=dnainject");
- }
- }
- cli_execute("mood clear");
- }
- saveProgress(6);
- }
- void getDeodorant() {
- if(questStage() >= 37) {
- return;
- }
- if(!islandSkipped() && $item[Golden Light].available_amount() > 0) {
- chateauCast($skill[Musk of the Moose]);
- chateauCast($skill[Carlweather's Cantata of Confrontation]);
- useIfHave(1, $item[reodorant]);
- while($item[deodorant].available_amount() > 0) {
- adventure(1, $location[Orcish Frat House], "combat");
- }
- if(have_effect($effect[Carlweather's Cantata of Confrontation]) > 0) {
- cli_execute("uneffect " + $effect[Carlweather's Cantata of Confrontation].to_string());
- }
- }
- saveProgress(37);
- }
- void maybeUnlockIsland() { //either unlocks island or decides to just do skeleton store instead later
- if(questStage() >= 7) {
- return;
- }
- getSRifCan();
- if ((advToSemirare() % 3 == 0 && advToSemirare() < 10) || (get_property_boolean("spookyAirportAlways") && advToSemirare() > 9)) { //if the SR is perfectly between shore trips OR it'll come up during G9 farming
- while ($item[Shore Inc. Ship Trip Scrip].available_amount() < 3) {
- visit_url("choice.php?"+my_hash()+"&whichchoice=793&option=2&choiceform2=Tropical+Paradise+Island+Getaway");
- getSRifCan();
- }
- } else { //1, 2, 4, 5, 7, or 8 adv to semirare; skeleton store instead...loses cherry/olive but saves initial turns so whatever
- skipIsland();
- }
- saveProgress(7);
- }
- void getPotionIngredients() {
- if(questStage() >= 15) {
- return;
- }
- if (islandSkipped()) {
- while ($item[cherry].available_amount() == 0) {
- adventure(1, $location[The Skeleton Store], "combat");
- }
- } else {
- while ($item[filthy knitted dread sack].available_amount() == 0 || $item[filthy corduroys].available_amount() == 0) {
- adventure(1, $location[The Hippy Camp], "combat");
- }
- item prevhat = equipped_item($slot[hat]);
- item prevpants = equipped_item($slot[pants]);
- equip($item[filthy knitted dread sack]);
- equip($item[filthy corduroys]);
- while ($item[cherry].available_amount() == 0) {
- if ($item[disassembled clover].available_amount() > 0) {
- use(1, $item[disassembled clover]);
- adventure(1, $location[The Hippy Camp], "combat");
- use(1, $item[fruit basket]);
- } else {
- abort("Failed to get cherry from fruit baskets before running out of clovers.");
- }
- }
- equip(prevhat);
- if (prevpants != $item[none]) {
- equip(prevpants);
- }
- }
- saveProgress(15);
- }
- void getHotResistGear() {
- if(questStage() >= 20) {
- return;
- }
- if ($item[Saucepanic].available_amount() > 0) {
- equip($slot[weapon], $item[Saucepanic]);
- }
- if ($item[Staff of the Headmaster's Victuals].available_amount() > 0) {
- pulverize($item[Staff of the Headmaster's Victuals]);
- }
- if (get_property_boolean("hotAirportAlways")) {
- if ($item[handful of Smithereens].available_amount() > 0 && $item[Golden Light].available_amount() < 1) {
- create(1, $item[Golden Light]);
- }
- while($item[lava-proof pants].available_amount() == 0) {
- adventure(1, $location[LavaCo™ Lamp Factory], "combat");
- }
- }
- saveProgress(20);
- }
- void makePotionsDay1() {
- if(questStage() >= 16) {
- return;
- }
- create(1, $item[oil of expertise]);
- int crafts = 2;
- if ($item[grapefruit].available_amount() > 0) {
- create(1, $item[ointment of the occult]);
- crafts += 1; //++ doesn't work? aw c'mon
- }
- if ($item[lemon].available_amount() > 0 && $item[scrumptious reagent].available_amount() > 0) { //you've run out of reagants by now without way of sauce
- create(1, $item[philter of phorce]);
- crafts += 1;
- }
- if ($item[tomato].available_amount() > 0 && $item[scrumptious reagent].available_amount() > 0) { //not available in skeleton store
- create(1, $item[tomato juice of powerful power]);
- crafts += 1;
- }
- if ($item[olive].available_amount() > 0 && $item[scrumptious reagent].available_amount() > 0 && crafts < 5) { //also not in skeleton store; if you had everything so far you've also run out of free crafts
- create(1, $item[serum of sarcasm]);
- }
- saveProgress(16);
- }
- void makePotionsDay2() {
- if(questStage() >= 21) {
- return;
- }
- if ($item[olive].available_amount() > 0 && $item[serum of sarcasm].available_amount() == 0) {
- create(1, $item[serum of sarcasm]);
- }
- if ($item[lemon].available_amount() > 0 && $item[philter of phorce].available_amount() < 2) {
- create(1, $item[philter of phorce]);
- }
- if ($item[tomato].available_amount() > 0 && $item[tomato juice of powerful power].available_amount() < 4) {
- create(1, $item[tomato juice of powerful power]);
- }
- saveProgress(21);
- }
- void endDay1() { //final actions of day 1; spell test buffing goes here
- if(questStage() >= 17) {
- return;
- }
- cast($skill[Simmer]);
- chateauCast($skill[The Ode to Booze]);
- chateauCast($skill[The Ode to Booze]);
- chateauCast($skill[Jackasses' Symphony of Destruction]);
- chateauCast($skill[Song of Sauce]);
- while (free_rest()) {} //expends all free rests
- drink(1, $item[emergency margarita]);
- saveProgress(17);
- }
- void day1setup() {
- if(questStage() >= 1) {
- return;
- }
- setFamiliar();
- visit_url("tutorial.php?action=toot"); //get letter
- if ($item[Letter from King Ralph XI].available_amount() > 0) {
- use(1, $item[Letter from King Ralph XI]); //get sack of jewels
- use(1, $item[pork elf goodies sack]); //get jewels
- } else if ($item[pork elf goodies sack].available_amount() > 0) {
- use(1, $item[pork elf goodies sack]); //get jewels
- }
- sellJewels();
- if ($item[astral six-pack].available_amount() == 1) {
- use(1, $item[astral six-pack]);
- }
- unlockSkeletonStore();
- cli_execute("cheat mickey");
- autosell(1, $item[1952 Mickey Mantle card]);
- cli_execute("cheat giant growth");
- cli_execute("cheat empress");
- summonDailyStuff();
- create(1, $item[Hairpiece on Fire]);
- equip($item[Hairpiece on Fire]);
- create(1, $item[Saucepanic]);
- equip($item[Saucepanic]);
- create(1, $item[A Light That Never Goes Out]);
- equip($item[A Light That Never Goes Out]);
- use(3, $item[Flaskfull of Hollow]);
- create(2, $item[Golden Light]);
- create(1, $item[This Charming Flan]);
- buy (1, $item[frilly skirt]);
- if (equipped_item($slot[pants]) == $item[none]) {
- if (my_basestat($stat[moxie]) > 1) {
- equip($item[frilly skirt]);
- } else {
- equip($item[old sweatpants]);
- }
- }
- cli_execute("breakfast");
- if (have_skill($skill[Empathy of the Newt]) || have_skill($skill[Astral Shell])) {
- getTurtleTotem();
- }
- if ($item[detuned radio].available_amount() == 0) {
- buy(1, $item[detuned radio]);
- change_mcd(11);
- }
- if($item[GameInformPowerDailyPro magazine].available_amount() > 0) {
- use(1, $item[GameInformPowerDailyPro magazine]);
- visit_url("place.php?whichplace=faqdungeon");
- visit_url("adventure.php?snarfblat=319");
- if ($item[dungeoneering kit].available_amount() > 0) {
- use(1, $item[dungeoneering kit]);
- } else {
- print("Failed to get dungeoneering kit for some reason", "red");
- }
- }
- saveProgress(1);
- }
- void day2setup() {
- if(questStage() >= 18) {
- return;
- }
- summonDailyStuff();
- cli_execute("breakfast");
- cli_execute("cheat forest");
- cli_execute("cheat giant growth");
- use(1, $item[Flaskfull of Hollow]);
- create(3, $item[Louder Than Bomb]);
- create(1, $item[Saucepanic]);
- if (!have_skill($skill[Double-Fisted Skull Smashing])) {
- pulverize($item[Saucepanic]);
- }
- create(1, $item[Vicar's Tutu]);
- equip($item[Vicar's Tutu]);
- create(1, $item[Staff of the Headmaster's Victuals]);
- if (!have_skill($skill[Spirit of Rigatoni])) {
- pulverize($item[Staff of the Headmaster's Victuals]);
- }
- saveProgress(18);
- }
- void initialDrinks() { //drinking after day 1 setup but before coiling wire
- if(questStage() >= 2) {
- return;
- }
- chateauCast($skill[The Ode to Booze]);
- if (checkGarden() == "winter") {
- create(1, $item[Ice Island Long Tea]);
- drink(1, $item[Ice Island Long Tea]);
- create(1, $item[snow crab]);
- } else if (checkGarden() == "beer") {
- create(3, $item[Can of Drooling Monk]);
- drink(3, $item[Can of Drooling Monk]);
- create(1, $item[tin cup]);
- }
- visit_url("clan_viplounge.php?preaction=speakeasydrink&drink=4&pwd="+my_hash()); //lucky lindy
- saveProgress(2);
- }
- void doRun() { //main function
- if (my_daycount() == 1 && actuallyrun) {
- print("Running HCCS Day 1...");
- if(get_property("knownAscensions").to_int() != savedAscNum()) {
- newSave();
- }
- day1setup();
- initialDrinks();
- getMilk(); //of magnesium
- coilTest();
- getPirateDNA();
- getCalderaDNA(); //elemental DNA tonic and fish hybrid
- maybeUnlockIsland();
- getG9Serum();
- weaponTest();
- itemTest();
- getPotionIngredients();
- makePotionsDay1();
- endDay1();
- print("Day 1 complete!!", "green");
- } else if (my_daycount() == 2 && actuallyrun) {
- print("Running HCCS Day 2...");
- day2setup();
- spellTest();
- getHotResistGear();
- makePotionsDay2();
- hotTest();
- powerlevel();
- hpTest();
- muscleTest();
- mystTest();
- moxieTest();
- famTest();
- getDeodorant();
- noncombatTest();
- print("Run complete!!!", "green");
- newSave();
- } else if (!actuallyrun) {
- print("The \"actuallyrun\" variable is set to false. Turn it on.", "red");
- } else {
- print("You're too slow!");
- }
- }
- checkPrereq();
- doRun();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement