Advertisement
Guest User

postcheese.ash

a guest
Jul 14th, 2015
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 27.72 KB | None | 0 0
  1. script "postcheese.ash";
  2. import <cc_util.ash>
  3.  
  4. boolean ocrs_postHelper();
  5.  
  6. boolean ocrs_postHelper()
  7. {
  8.     if(my_path() != "One Crazy Random Summer")
  9.     {
  10.         return false;
  11.     }
  12.     string prefix = get_property("cc_funPrefix");
  13.     set_property("cc_useCleesh", false);
  14.     return true;
  15. }
  16.  
  17.  
  18. void handlePostAdventure()
  19. {
  20.     print('Post-Adventure script started','green');
  21.     if(get_property("cc_bedroomHandler1") == "yes")
  22.     {
  23.         set_property("cc_bedroomHandler1", "no");
  24.         if(contains_text(visit_url("main.php"), "choice.php"))
  25.         {
  26.             return;
  27.         }
  28.     }
  29.  
  30.     if(get_property("cc_disableAdventureHandling") == "yes")
  31.     {
  32.         return;
  33.     }
  34.  
  35.     if((my_location() == $location[The Lower Chambers]) && (item_amount($item[2334]) == 0))
  36.     {
  37.         return;
  38.     }
  39.  
  40.     ocrs_postHelper();
  41.     if((contains_text(get_property("cc_funPrefix"), "clingy")) || last_monster().random_modifiers["clingy"])
  42.     {
  43.         return;
  44.     }
  45.  
  46.  
  47.     if(my_path() == "Actually Ed the Undying")
  48.     {
  49.         int maxBuff = min(10, 675 - my_turncount());
  50.         if(my_level() < 13)
  51.         {
  52.             buffMaintain($effect[Prayer of Seshat], 5, 1, maxBuff);
  53.         }
  54.         if(my_location() == $location[The Secret Government Laboratory])
  55.         {
  56.             buffMaintain($effect[Wisdom of Thoth], 5, 1, maxBuff);
  57.             buffMaintain($effect[Power of Heka], 10, 1, maxBuff);
  58.         }
  59.         else
  60.         {
  61.             buffMaintain($effect[Wisdom of Thoth], 150, 1, maxBuff);
  62.             buffMaintain($effect[Power of Heka], 100, 1, maxBuff);
  63.         }
  64.  
  65.         buffMaintain($effect[Hide of Sobek], 200, 1, maxBuff);
  66.         if(my_location() == $location[Hippy Camp])
  67.         {
  68.             buffMaintain($effect[Hide of Sobek], 20, 1, maxBuff);
  69.         }
  70.  
  71.         if(my_location() != $location[The Secret Government Laboratory])
  72.         {
  73.             buffMaintain($effect[Bounty of Renenutet], 20, 1, maxBuff);
  74.         }
  75.  
  76.         if((my_servant() == $servant[Priest]) && ($servant[Priest].experience < 196))
  77.         {
  78.             buffMaintain($effect[Purr of the Feline], 10, 1, maxBuff);
  79.         }
  80.         if(my_servant() == $servant[Cat])
  81.         {
  82.             buffMaintain($effect[Purr of the Feline], 10, 1, maxBuff);
  83.         }
  84.         if((my_servant() == $servant[Belly-Dancer]) && ($servant[Belly-Dancer].experience < 196))
  85.         {
  86.             buffMaintain($effect[Purr of the Feline], 10, 1, maxBuff);
  87.         }
  88.  
  89.  
  90.         while(my_mp() > 100)
  91.         {
  92.             int start = my_mp();
  93.             int maxBuff = 750 - my_turncount();
  94.             buffMaintain($effect[Prayer of Seshat], 5, 1, maxBuff);
  95.             buffMaintain($effect[Wisdom of Thoth], 5, 1, maxBuff);
  96.             #buffMaintain($effect[Power of Heka], 10, 1, maxBuff);
  97.             #buffMaintain($effect[Purr of the Feline], 10, 1, maxBuff);
  98.             buffMaintain($effect[Hide of Sobek], 10, 1, maxBuff);
  99.             buffMaintain($effect[Bounty of Renenutet], 20, 1, maxBuff);
  100.             if(start == my_mp())
  101.             {
  102.                 break;
  103.             }
  104.         }
  105.  
  106.         if((my_level() < 13) && (my_level() > 3))
  107.         {
  108.             buffMaintain($effect[Blessing of Serqet], 15, 1, 1);
  109.         }
  110.  
  111.         #+NC Maintenance
  112.         if((my_location() == $location[The Penultimate Fantasy Airship]) ||
  113.             (my_location() == $location[Twin Peak]) ||
  114.             (my_location() == $location[The Poop Deck]) ||
  115.             (my_location() == $location[The Haunted Ballroom]) ||
  116.             (my_location() == $location[The Haunted Billiards Room]) ||
  117.             (my_location() == $location[The Haunted Gallery]) ||
  118.             (my_location() == $location[The Haunted Bathroom]) ||
  119.             (my_location() == $location[The Hidden Hospital]) ||
  120.             (my_location() == $location[Inside the Palindome]) ||
  121.             (my_location() == $location[The Dark Neck of the Woods]) ||
  122.             (my_location() == $location[The Dark Heart of the Woods]) ||
  123.             (my_location() == $location[The Dark Elbow of the Woods]) ||
  124.             (my_location() == $location[The Defiled Cranny]) ||
  125.             (my_location() == $location[The Defiled Alcove]) ||
  126.             (my_location() == $location[The Spooky Forest]) ||
  127.             (my_location() == $location[Inside the Palindome]) ||
  128.             (my_location() == $location[The Hidden Hospital]) ||
  129.             (my_location() == $location[The Obligatory Pirate\'s Cove]) ||
  130.             (my_location() == $location[Wartime Hippy Camp]) ||
  131.             (my_location() == $location[The Castle in the Clouds in the Sky (Basement)]) ||
  132.             (my_location() == $location[The Castle in the Clouds in the Sky (Top Floor)]) ||
  133.             (my_location() == $location[The Castle in the Clouds in the Sky (Ground Floor)])
  134.         )
  135.         {
  136.             if((have_effect($effect[Shelter of Shed]) == 0) && (my_mp() < 15))
  137.             {
  138.                 print("We are having an MP problem damn it.... I wish I knew what data to output here to help with it.", "red");
  139.                 print("You probably want to abort and use some MP restorer. Sorry dude... otherwise, you can suck up the delays :)", "red");
  140.                 wait(10);
  141.                 if(item_amount($item[Magical Mystery Juice]) > 0)
  142.                 {
  143.                     use(1, $item[Magical Mystery Juice]);
  144.                 }
  145.                 else if(item_amount($item[Phonics Down]) > 0)
  146.                 {
  147.                     use(1, $item[Phonics Down]);
  148.                 }
  149.                 else if(item_amount($item[Tiny House]) > 0)
  150.                 {
  151.                     use(1, $item[Tiny House]);
  152.                 }
  153.                 else if(item_amount($item[Holy Spring Water]) > 0)
  154.                 {
  155.                     use(1, $item[Holy Spring Water]);
  156.                 }
  157.             }
  158.             buffMaintain($effect[Shelter of Shed], 15, 1, 1);
  159.         }
  160.  
  161.         return;
  162.     }
  163.  
  164.     skill libram = preferredLibram();
  165.  
  166.     buffMaintain($effect[Merry Smithsness], 0, 1, 10);
  167.  
  168.     if((have_effect($effect[Cunctatitis]) > 0) && (my_mp() >= 12) && have_skill($skill[Disco Nap]))
  169.     {
  170.         use_skill(1, $skill[Disco Nap]);
  171.     }
  172.  
  173.     #Deal with Poison, (should do all of them actually)
  174.     if((have_effect($effect[Really Quite Poisoned]) > 0) || (have_effect($effect[A Little Bit Poisoned]) > 0) || (have_effect($effect[Majorly Poisoned]) > 0))
  175.     {
  176.         if((my_mp() > 12) && have_skill($skill[Disco Nap]))
  177.         {
  178.             use_skill(1, $skill[Disco Nap]);
  179.         }
  180.         else
  181.         {
  182.             buy(1, $item[anti-anti-antidote]);
  183. #           visit_url("shop.php?pwd=&whichshop=doc&action=buyitem&quantity=1&whichrow=694", true);
  184.             use(1, $item[anti-anti-antidote]);
  185.         }
  186.     }
  187.  
  188.     if(have_effect($effect[temporary amnesia]) > 0)
  189.     {
  190.         if(!uneffect($effect[Temporary Amnesia]))
  191.         {
  192.             abort("Could not remove temporary amnesia and now I suckzor.");
  193.         }
  194.     }
  195.  
  196.     if(monster_level_adjustment() > 140)
  197.     {
  198.         buffMaintain($effect[Butt-Rock Hair], 0, 1, 1);
  199.         buffMaintain($effect[Go Get \'Em\, Tiger!], 0, 1, 1);
  200.     }
  201.  
  202.     if(my_class() == $class[Turtle Tamer])
  203.     {
  204.         buffMaintain($effect[Eau de Tortue], 0, 1, 1);
  205.     }
  206.  
  207.     if(my_class() == $class[Sauceror])
  208.     {
  209.         //if((my_level() >= 6) && (have_effect($effect[Blood Sugar Sauce Magic]) == 0))
  210.         //{
  211.         //  use_skill(1, $skill[Blood Sugar Sauce Magic]);
  212.         //}
  213.  
  214.         if((my_level() <= 8) && (my_soulsauce() >= 92))
  215.         {
  216.             use_skill(1, $skill[Soul Rotation]);
  217.         }
  218.         int missing = (my_maxmp() - my_mp()) / 15;
  219.         int casts = my_soulsauce() / 5;
  220.         if(casts < 0)
  221.         {
  222.             casts = 0;
  223.         }
  224.         int regen = casts;
  225.         if(casts > missing)
  226.         {
  227.             regen = missing;
  228.         }
  229.         if(regen > 0)
  230.         {
  231.             use_skill(regen, $skill[Soul Food]);
  232.         }
  233.     }
  234.  
  235.     if((monster_level_adjustment() > 120) && ((my_hp() * 10) < (my_maxhp() * 8)) && (my_mp() >= 20))
  236.     {
  237.         useCocoon();
  238.     }
  239.  
  240.     if((my_maxhp() > 200) && (my_hp() < 80) && (my_mp() > 25))
  241.     {
  242.         useCocoon();
  243.     }
  244.  
  245.     #+C Maintenance
  246.     if((my_location() == $location[The F\'c\'le]) ||
  247.         (my_location() == $location[Sonofa Beach]) ||
  248.         (my_location() == $location[The Black Forest])
  249.     )
  250.     {
  251.         uneffect($effect[The Sonata of Sneakiness]);
  252.         buffMaintain($effect[Hippy Stench], 0, 1, 10);
  253.         buffMaintain($effect[Musk of the Moose], 15, 1, 2);
  254.         buffMaintain($effect[Carlweather\'s Cantata of Confrontation], 25, 1, 2);
  255.     }
  256.     #+C Maintenance
  257.     if(my_location() == $location[Barrrney\'s Barrr])
  258.     {
  259.         if(numPirateInsults() < 7)
  260.         {
  261.             uneffect($effect[The Sonata Of Sneakiness]);
  262.             buffMaintain($effect[Musk of the Moose], 15, 1, 2);
  263.             buffMaintain($effect[Carlweather\'s Cantata of Confrontation], 25, 1, 2);
  264.         }
  265.         else
  266.         {
  267.             uneffect($effect[Carlweather\'s Cantata Of Confrontation]);
  268.             buffMaintain($effect[Smooth Movements], 15, 1, 2);
  269.             buffMaintain($effect[The Sonata of Sneakiness], 25, 1, 2);
  270.         }
  271.     }
  272.  
  273.     if(have_skill($skill[thunderheart]) && (my_thunder() >= 90) && ((my_turncount() - get_property("cc_lastthunderturn").to_int()) >= 9))
  274.     {
  275.         use_skill(1, $skill[thunderheart]);
  276.     }
  277.  
  278.  
  279.     #+NC Maintenance
  280.     if((my_location() == $location[The Penultimate Fantasy Airship]) ||
  281.         (my_location() == $location[Twin Peak]) ||
  282.         (my_location() == $location[A Maze of Sewer Tunnels]) ||
  283.         (my_location() == $location[The Poop Deck]) ||
  284.         (my_location() == $location[The Haunted Ballroom]) ||
  285.         (my_location() == $location[The Haunted Billiards Room]) ||
  286.         (my_location() == $location[The Haunted Gallery]) ||
  287.         (my_location() == $location[The Haunted Bathroom]) ||
  288.         (my_location() == $location[The Hidden Hospital]) ||
  289.         (my_location() == $location[Inside the Palindome]) ||
  290.         (my_location() == $location[The Dark Neck of the Woods]) ||
  291.         (my_location() == $location[The Dark Heart of the Woods]) ||
  292.         (my_location() == $location[The Dark Elbow of the Woods]) ||
  293.         (my_location() == $location[The Defiled Cranny]) ||
  294.         (my_location() == $location[The Defiled Alcove]) ||
  295.         (my_location() == $location[The Upper Chamber]) ||
  296.         (my_location() == $location[The Spooky Forest]) ||
  297.         (my_location() == $location[The Middle Chamber]) ||
  298.         (my_location() == $location[Inside the Palindome]) ||
  299.         (my_location() == $location[The Hidden Hospital]) ||
  300.         (my_location() == $location[The Obligatory Pirate\'s Cove]) ||
  301.         (my_location() == $location[Wartime Hippy Camp]) ||
  302.         (my_location() == $location[The Castle in the Clouds in the Sky (Basement)]) ||
  303.         (my_location() == $location[The Castle in the Clouds in the Sky (Top Floor)]) ||
  304.         (my_location() == $location[The Castle in the Clouds in the Sky (Ground Floor)])
  305.     )
  306.     {
  307.         buffMaintain($effect[Smooth Movements], 15, 1, 2);
  308.         buffMaintain($effect[The Sonata of Sneakiness], 25, 1, 2);
  309.     }
  310.  
  311.  
  312.     if(have_skill($skill[Summon Smithsness]) && (my_mp() > 20))
  313.     {
  314.         use_skill(1, $skill[Summon Smithsness]);
  315.     }
  316.  
  317.     if(my_maxmp() < 50)
  318.     {
  319.         buffMaintain($effect[Power Ballad of the Arrowsmith], 7, 1, 5);
  320.         buffMaintain(whatStatSmile(), 15, 1, 10);
  321.         buffMaintain($effect[Fat Leon\'s Phat Loot Lyric], 20, 1, 10);
  322.         buffMaintain($effect[Leash of Linguini], 20, 1, 10);
  323.         buffMaintain($effect[Empathy], 25, 1, 10);
  324.  
  325.         if((libram != $skill[none]) && ((my_mp() - mp_cost(libram)) > 200))
  326.         {
  327.             use_skill(1, libram);
  328.         }
  329.  
  330.         if(my_mp() > 40)
  331.         {
  332.             if(have_skill($skill[Summon Geeky Gifts]))
  333.             {
  334.                 use_skill(1, $skill[Summon Geeky Gifts]);
  335.             }
  336.             if(have_skill($skill[Summon Confiscated Things]))
  337.             {
  338.                 use_skill(1, $skill[Summon Confiscated Things]);
  339.             }
  340.         }
  341.  
  342.         buffMaintain($effect[Singer\'s Faithful Ocelot], 35, 1, 10);
  343.         buffMaintain($effect[Rage of the Reindeer], 30, 1, 10);
  344.         buffMaintain($effect[Astral Shell], 35, 1, 10);
  345.         buffMaintain($effect[Elemental Saucesphere], 30, 1, 10);
  346.  
  347.         if(my_location() != $location[The Broodling Grounds])
  348.         {
  349.             buffMaintain($effect[Spiky Shell], 20, 1, 10);
  350.             buffMaintain($effect[Scarysauce], 25, 1, 10);
  351.         }
  352.         buffMaintain($effect[Ghostly Shell], 25, 1, 10);
  353.         buffMaintain($effect[Walberg\'s Dim Bulb], 35, 1, 10);
  354.         //buffMaintain($effect[Springy Fusilli], 40, 1, 10);
  355.         buffMaintain($effect[Blubbered Up], 30, 1, 10);
  356.         //buffMaintain($effect[Tenacity of the Snapper], 30, 1, 10);
  357.         buffMaintain($effect[Reptilian Fortitude], 30, 1, 10);
  358.         buffMaintain($effect[Disco Fever], 40, 1, 10);
  359.         buffMaintain($effect[Seal Clubbing Frenzy], 10, 3, 4);
  360.         buffMaintain($effect[Patience of the Tortoise], 10, 3, 4);
  361.         buffMaintain($effect[Mariachi Mood], 25, 1, 4);
  362.         buffMaintain($effect[Saucemastery], 25, 1, 4);
  363.         buffMaintain($effect[Disco State of Mind], 25, 1, 4);
  364.         buffMaintain($effect[Pasta Oneness], 25, 1, 4);
  365.  
  366.     }
  367.     else if(my_maxmp() < 80)
  368.     {
  369.         buffMaintain($effect[Power Ballad of the Arrowsmith], 7, 1, 5);
  370.         buffMaintain(whatStatSmile(), 20, 1, 10);
  371.         buffMaintain($effect[Fat Leon\'s Phat Loot Lyric], 30, 1, 10);
  372.         buffMaintain($effect[Leash of Linguini], 30, 1, 10);
  373.         buffMaintain($effect[Empathy], 35, 1, 10);
  374.  
  375.  
  376.         if((libram != $skill[none]) && ((my_mp() - mp_cost(libram)) > 25))
  377.         {
  378.             use_skill(1, libram);
  379.         }
  380.  
  381.         if(my_mp() > 50)
  382.         {
  383.             if(have_skill($skill[Summon Geeky Gifts]))
  384.             {
  385.                 use_skill(1, $skill[Summon Geeky Gifts]);
  386.             }
  387.             if(have_skill($skill[Summon Confiscated Things]))
  388.             {
  389.                 use_skill(1, $skill[Summon Confiscated Things]);
  390.             }
  391.         }
  392.  
  393. #       buffMaintain($effect[Prayer of Seshat], 5, 1, 10);
  394.  
  395.         buffMaintain($effect[Singer\'s Faithful Ocelot], 40, 1, 10);
  396.         buffMaintain($effect[Rage of the Reindeer], 40, 1, 10);
  397.         buffMaintain($effect[Astral Shell], 50, 1, 10);
  398.         buffMaintain($effect[Elemental Saucesphere], 40, 1, 10);
  399.         if(my_location() != $location[The Broodling Grounds])
  400.         {
  401.             buffMaintain($effect[Spiky Shell], 40, 1, 10);
  402.             buffMaintain($effect[Scarysauce], 40, 1, 10);
  403.             buffMaintain($effect[Jalape&ntilde;o Saucesphere], 50, 1, 10);
  404.         }
  405.         buffMaintain($effect[Ghostly Shell], 45, 1, 10);
  406.         buffMaintain($effect[Disdain of the War Snapper], 60, 1, 10);
  407.         buffMaintain($effect[Walberg\'s Dim Bulb], 50, 1, 10);
  408.         buffMaintain($effect[Springy Fusilli], 60, 1, 10);
  409.         buffMaintain($effect[Flimsy Shield of the Pastalord], 70, 1, 10);
  410.         buffMaintain($effect[Blubbered Up], 60, 1, 10);
  411.         buffMaintain($effect[Tenacity of the Snapper], 50, 1, 10);
  412.         buffMaintain($effect[Reptilian Fortitude], 50, 1, 10);
  413.         buffMaintain($effect[Disco Fever], 60, 1, 10);
  414.         buffMaintain($effect[Seal Clubbing Frenzy], 25, 3, 4);
  415.         buffMaintain($effect[Patience of the Tortoise], 25, 3, 4);
  416.         buffMaintain($effect[Mariachi Mood], 50, 3, 4);
  417.         buffMaintain($effect[Saucemastery], 50, 3, 4);
  418.         buffMaintain($effect[Disco State of Mind], 50, 3, 4);
  419.         buffMaintain($effect[Pasta Oneness], 50, 3, 4);
  420.     }
  421.     else if(my_maxmp() < 170)
  422.     {
  423.         buffMaintain($effect[Fat Leon\'s Phat Loot Lyric], 50, 1, 10);
  424.         buffMaintain(whatStatSmile(), 40, 1, 10);
  425.  
  426.         buffMaintain($effect[Empathy], 50, 1, 10);
  427.         buffMaintain($effect[Leash of Linguini], 35, 1, 10);
  428.         if(my_mp() > 80)
  429.         {
  430.             if(have_skill($skill[Pastamastery]))
  431.             {
  432.                 use_skill(1, $skill[Pastamastery]);
  433.             }
  434.             if(have_skill($skill[Advanced Saucecrafting]))
  435.             {
  436.                 use_skill(1, $skill[Advanced Saucecrafting]);
  437.             }
  438.             if(have_skill($skill[Advanced Cocktailcrafting]))
  439.             {
  440.                 use_skill(1, $skill[Advanced Cocktailcrafting]);
  441.             }
  442.             if(have_skill($skill[Summon Geeky Gifts]))
  443.             {
  444.                 use_skill(1, $skill[Summon Geeky Gifts]);
  445.             }
  446.             if(have_skill($skill[Summon Confiscated Things]))
  447.             {
  448.                 use_skill(1, $skill[Summon Confiscated Things]);
  449.             }
  450.         }
  451.  
  452.         if((my_mp() > 95) && (have_skill($skill[Grab a Cold One])))
  453.         {
  454.             use_skill($skill[Grab a Cold One]);
  455.         }
  456.         if((my_mp() > 95) && (have_skill($skill[Spaghetti Breakfast])))
  457.         {
  458.             use_skill($skill[Spaghetti Breakfast]);
  459.         }
  460.  
  461.         if((libram != $skill[none]) && ((my_mp() - mp_cost(libram)) > 40))
  462.         {
  463.             use_skill(1, libram);
  464.         }
  465.  
  466. #       buffMaintain($effect[Prayer of Seshat], 5, 1, 10);
  467.  
  468.         buffMaintain($effect[Singer\'s Faithful Ocelot], 80, 1, 10);
  469.         buffMaintain($effect[Rage of the Reindeer], 150, 1, 10);
  470.         buffMaintain($effect[Astral Shell], 150, 1, 10);
  471.         buffMaintain($effect[Elemental Saucesphere], 150, 1, 10);
  472.         if(my_location() != $location[The Broodling Grounds])
  473.         {
  474.             buffMaintain($effect[Spiky Shell], 80, 1, 10);
  475.             buffMaintain($effect[Scarysauce], 80, 1, 10);
  476.             buffMaintain($effect[Jalape&ntilde;o Saucesphere], 60, 1, 10);
  477.         }
  478.         buffMaintain($effect[Ghostly Shell], 150, 1, 10);
  479.         buffMaintain($effect[Disdain of the War Snapper], 200, 1, 10);
  480.         buffMaintain($effect[Walberg\'s Dim Bulb], 150, 1, 10);
  481.         buffMaintain($effect[Flimsy Shield of the Pastalord], 150, 1, 10);
  482.         buffMaintain($effect[Blubbered Up], 150, 1, 10);
  483.         buffMaintain($effect[Tenacity of the Snapper], 150, 1, 10);
  484.         buffMaintain($effect[Reptilian Fortitude], 150, 1, 10);
  485.         buffMaintain($effect[Disco Fever], 150, 1, 10);
  486.         buffMaintain($effect[Springy Fusilli], 150, 1, 10);
  487.         buffMaintain($effect[Rotten Memories], 150, 1, 10);
  488.         buffMaintain($effect[Seal Clubbing Frenzy], 150, 5, 4);
  489.         buffMaintain($effect[Patience of the Tortoise], 150, 5, 4);
  490.         if((libram != $skill[none]) && ((my_mp() - mp_cost(libram)) > 150))
  491.         {
  492.             use_skill(1, libram);
  493.         }
  494.  
  495.         if(my_mp() > 150)
  496.         {
  497.             if((my_mp() > 95) && (my_maxhp() > my_hp()))
  498.             {
  499.                 useCocoon();
  500.             }
  501.             //buffMaintain($effect[Takin\' It Greasy], 50, 1, 5);
  502.             //buffMaintain($effect[Intimidating Mien], 50, 1, 5);
  503.             //buffMaintain($effect[Takin\' It Greasy], 50, 1, 25);
  504.             //buffMaintain($effect[Intimidating Mien], 50, 1, 25);
  505.             //buffMaintain($effect[Takin\' It Greasy], 50, 1, 45);
  506.             //buffMaintain($effect[Intimidating Mien], 50, 1, 45);
  507.         }
  508.     }
  509.     else
  510.     {
  511.         boolean didOutfit = false;
  512.         if((my_basestat($stat[mysticality]) >= 200) && (my_buffedstat($stat[mysticality]) >= 200) && (get_property("kingLiberated") != "false") && (item_amount($item[Wand of Oscus]) > 0) && (item_amount($item[Oscus\'s Dumpster Waders]) > 0) && (item_amount($item[Oscus\'s Pelt]) > 0))
  513.         {
  514.             cli_execute("outfit save Backup");
  515.             #Using the cli command may not upgrade our stats if our max mp drops
  516.             #Not sure if the ASH command actually handles it properly, we'll see.
  517.             #cli_execute("outfit Vile Vagrant Vestments");
  518.             #outfit does not... damn it.
  519.             outfit("Vile Vagrant Vestments");
  520.             didOutfit = true;
  521.         }
  522.  
  523.         boolean doML = true;
  524.         if(((get_property("flyeredML").to_int() > 9999) || get_property("cc_hippyInstead").to_boolean()) && (my_level() >= 13))
  525.         {
  526.             doML = false;
  527.             #change_mcd(0);
  528.         }
  529.         if((my_mp() > 150) && (my_maxhp() > 300) && (my_hp() < 140))
  530.         {
  531.             useCocoon();
  532.         }
  533.         if((my_mp() > 100) && (my_maxhp() > 500) && (my_hp() < 250))
  534.         {
  535.             useCocoon();
  536.         }
  537.         if((my_mp() > 75) && (my_maxhp() > 500) && (my_hp() < 200))
  538.         {
  539.             useCocoon();
  540.         }
  541.         if((my_mp() > 75) && (my_maxhp() > 700) && (my_hp() < 300))
  542.         {
  543.             useCocoon();
  544.         }
  545.         if((my_mp() > 75) && ((my_maxhp()/my_hp()) > 3))
  546.         {
  547.             useCocoon();
  548.         }
  549.  
  550.         buffMaintain($effect[Fat Leon\'s Phat Loot Lyric], 50, 1, 10);
  551.  
  552.         buffMaintain(whatStatSmile(), 40, 1, 10);
  553. #       buffMaintain($effect[Disco Leer], 40, 1, 10);
  554.  
  555.         buffMaintain($effect[Empathy], 50, 1, 10);
  556.         buffMaintain($effect[Leash of Linguini], 35, 1, 10);
  557.  
  558.         if(my_mp() > 80)
  559.         {
  560.             if(have_skill($skill[Pastamastery]))
  561.             {
  562.                 use_skill(1, $skill[Pastamastery]);
  563.             }
  564.             if(have_skill($skill[Advanced Saucecrafting]))
  565.             {
  566.                 use_skill(1, $skill[Advanced Saucecrafting]);
  567.             }
  568.             if(have_skill($skill[Advanced Cocktailcrafting]))
  569.             {
  570.                 use_skill(1, $skill[Advanced Cocktailcrafting]);
  571.             }
  572.             if(have_skill($skill[Summon Geeky Gifts]))
  573.             {
  574.                 use_skill(1, $skill[Summon Geeky Gifts]);
  575.             }
  576.             if(have_skill($skill[Summon Confiscated Things]))
  577.             {
  578.                 use_skill(1, $skill[Summon Confiscated Things]);
  579.             }
  580.         }
  581.         if((my_mp() > 85) && have_skill($skill[Grab a Cold One]))
  582.         {
  583.             use_skill($skill[Grab a Cold One]);
  584.         }
  585.         if((my_mp() > 85) && have_skill($skill[Spaghetti Breakfast]))
  586.         {
  587.             use_skill($skill[Spaghetti Breakfast]);
  588.         }
  589.  
  590.         if((libram != $skill[none]) && ((my_mp() - mp_cost(libram)) > 200))
  591.         {
  592.             print("Mymp: " + my_mp() + " of " + my_maxmp() + " and cost: " + mp_cost(libram), "blue");
  593.             use_skill(1, libram);
  594.         }
  595.  
  596. #       buffMaintain($effect[Prayer of Seshat], 5, 1, 10);
  597.  
  598.         buffMaintain($effect[Singer\'s Faithful Ocelot], 80, 1, 10);
  599.         if(doML)
  600.         {
  601.             buffMaintain($effect[Ur-Kel\'s Aria of Annoyance], 150, 1, 10);
  602.             buffMaintain($effect[Drescher\'s Annoying Noise], 150, 1, 10);
  603.             buffMaintain($effect[Pride of the Puffin], 150, 1, 10);
  604.         }
  605.         buffMaintain($effect[Rage of the Reindeer], 150, 1, 10);
  606.         buffMaintain($effect[Astral Shell], 150, 1, 10);
  607.         buffMaintain($effect[Elemental Saucesphere], 150, 1, 10);
  608.         if(my_location() != $location[The Broodling Grounds])
  609.         {
  610.             buffMaintain($effect[Spiky Shell], 150, 1, 10);
  611.             buffMaintain($effect[Scarysauce], 150, 1, 10);
  612.             buffMaintain($effect[Jalape&ntilde;o Saucesphere], 150, 1, 10);
  613.         }
  614.         buffMaintain($effect[Ruthlessly Efficient], 80, 1, 5);
  615.         buffMaintain($effect[Ghostly Shell], 150, 1, 10);
  616.         buffMaintain($effect[Disdain of the War Snapper], 150, 1, 10);
  617.         buffMaintain($effect[Walberg\'s Dim Bulb], 150, 1, 10);
  618.         buffMaintain($effect[Springy Fusilli], 150, 1, 10);
  619.         buffMaintain($effect[Flimsy Shield of the Pastalord], 150, 1, 10);
  620.         buffMaintain($effect[Blubbered Up], 150, 1, 10);
  621.         if(my_level() < 12)
  622.         {
  623.             buffMaintain($effect[Aloysius\' Antiphon of Aptitude], 150, 1, 10);
  624.         }
  625.         buffMaintain($effect[Tenacity of the Snapper], 150, 1, 10);
  626.         buffMaintain($effect[Reptilian Fortitude], 150, 1, 10);
  627.         buffMaintain($effect[Antibiotic Saucesphere], 150, 1, 10);
  628.         buffMaintain($effect[Disco Fever], 150, 1, 10);
  629.         buffMaintain($effect[Seal Clubbing Frenzy], 150, 5, 4);
  630.         buffMaintain($effect[Patience of the Tortoise], 150, 5, 4);
  631.         buffMaintain($effect[Mariachi Mood], 150, 5, 4);
  632.         buffMaintain($effect[Saucemastery], 150, 5, 4);
  633.         buffMaintain($effect[Disco State of Mind], 150, 5, 4);
  634.         buffMaintain($effect[Pasta Oneness], 150, 5, 4);
  635.         if(familiar_weight(my_familiar()) < 20)
  636.         {
  637.             buffMaintain($effect[Curiosity of Br\'er Tarrypin], 150, 1, 2);
  638.         }
  639.         buffMaintain($effect[Jingle Jangle Jingle], 150, 1, 2);
  640.         buffMaintain($effect[A Few Extra Pounds], 150, 1, 2);
  641.         buffMaintain($effect[Boon of the War Snapper], 150, 1, 5);
  642.         buffMaintain($effect[Boon of She-Who-Was], 150, 1, 5);
  643.         buffMaintain($effect[Boon of the Storm Tortoise], 150, 1, 5);
  644.  
  645.         buffMaintain($effect[Mathematically Precise], 150, 1, 5);
  646.         buffMaintain($effect[Rotten Memories], 150, 1, 10);
  647.  
  648.         if((have_skill($skill[Summon Holiday Fun!])) && (my_mp() > 11))
  649.         {
  650.             use_skill(1, $skill[Summon Holiday Fun!]);
  651.         }
  652.         if((have_skill($skill[Summon Kokomo Resort Pass])) && (my_mp() > 1))
  653.         {
  654.             use_skill(1, $skill[Summon Kokomo Resort Pass]);
  655.         }
  656.         if((have_skill($skill[Summon Carrot])) && (my_mp() > 11))
  657.         {
  658.             use_skill(1, $skill[Summon Carrot]);
  659.         }
  660.         if((have_skill($skill[Summon Confiscated Things])) && (my_mp() > 5))
  661.         {
  662.             use_skill(3, $skill[Summon Confiscated Things]);
  663.         }
  664.         if((have_skill($skill[Request Sandwich])) && (my_mp() > 5))
  665.         {
  666.             use_skill(1, $skill[Request Sandwich]);
  667.         }
  668.         if((have_skill($skill[Summon Hilarious Objects])) && (my_mp() > 5))
  669.         {
  670.             use_skill(1, $skill[Summon Hilarious Objects]);
  671.         }
  672.         if((have_skill($skill[Summon Tasteful Items])) && (my_mp() > 5))
  673.         {
  674.             use_skill(3, $skill[Summon Tasteful Items]);
  675.         }
  676.         if((have_skill($skill[Summon Alice\'s Army Cards])) && (my_mp() > 5))
  677.         {
  678.             use_skill(3, $skill[Summon Alice\'s Army Cards]);
  679.         }
  680.         if((have_skill($skill[Summon Crimbo Candy])) && (my_mp() > 5))
  681.         {
  682.             use_skill(3, $skill[Summon Crimbo Candy]);
  683.         }
  684.         if((have_skill($skill[Lunch Break])) && (my_mp() > 10))
  685.         {
  686.             use_skill(3, $skill[Lunch Break]);
  687.         }
  688.  
  689.  
  690.         if(get_property("kingLiberated").to_boolean())
  691.         {
  692.             if((have_skill($skill[Summon Rad Libs])) && (my_mp() > 6))
  693.             {
  694.                 use_skill(3, $skill[Summon Rad Libs]);
  695.             }
  696.             if((have_skill($skill[Summon Geeky Gifts])) && (my_mp() > 5))
  697.             {
  698.                 use_skill(3, $skill[Summon Geeky Gifts]);
  699.             }
  700.             if((have_skill($skill[Summon Stickers])) && (my_mp() > 6))
  701.             {
  702.                 use_skill(3, $skill[Summon Stickers]);
  703.             }
  704.             if((have_skill($skill[Summon Sugar Sheets])) && (my_mp() > 6))
  705.             {
  706.                 use_skill(3, $skill[Summon Sugar Sheets]);
  707.             }
  708.             if(have_skill($skill[Rainbow Gravitation]))
  709.             {
  710.                 use_skill(3, $skill[Rainbow Gravitation]);
  711.             }
  712.         }
  713.  
  714.         if((libram != $skill[none]) && ((my_mp() - mp_cost(libram)) > 80))
  715.         {
  716.             use_skill(1, libram);
  717.         }
  718.  
  719.         if(my_mp() > 80)
  720.         {
  721.             if((my_mp() > 95) && (my_maxhp() > my_hp()))
  722.             {
  723.                 useCocoon();
  724.             }
  725.             //buffMaintain($effect[Takin\' It Greasy], 50, 1, 5);
  726.             //buffMaintain($effect[Intimidating Mien], 50, 1, 5);
  727.             //buffMaintain($effect[Takin\' It Greasy], 50, 1, 25);
  728.             //buffMaintain($effect[Intimidating Mien], 50, 1, 25);
  729.             //buffMaintain($effect[Takin\' It Greasy], 50, 1, 45);
  730.             //buffMaintain($effect[Intimidating Mien], 50, 1, 45);
  731.         }
  732.         if(my_mp() > 150)
  733.         {
  734.             int casts = (my_mp() - 150) / 30;
  735.             if(casts == 0)
  736.             {
  737.                 casts = 1;
  738.             }
  739.              /*
  740.             if(have_skill($skill[Grease Up]))
  741.             {
  742.                 use_skill(casts, $skill[Grease Up]);
  743.             }
  744.             if(have_skill($skill[Intimidating Mien]))
  745.             {
  746.                 use_skill(casts, $skill[Intimidating Mien]);
  747.             }
  748.              */
  749.            
  750.         }
  751.         if(didOutfit)
  752.         {
  753.             cli_execute("outfit Backup");
  754.         }
  755.     }
  756.  
  757.     if((get_property("cc_cubeItems") == "") && (item_amount($item[ring of detect boring doors]) == 1) && (item_amount($item[eleven-foot pole]) == 1) && (item_amount($item[pick-o-matic lockpicks]) == 1))
  758.     {
  759.         set_property("cc_cubeItems", "done");
  760.     }
  761.  
  762.     if((get_property("cc_cubeItems") == "done") && (my_familiar() == $familiar[Gelatinous cubeling]) && !get_property("cc_100familiar").to_boolean())
  763.     {
  764.         if(have_familiar($familiar[Fist Turkey]))
  765.         {
  766.             use_familiar($familiar[Fist Turkey]);
  767.         }
  768.         else
  769.         {
  770.             use_familiar($familiar[piano cat]);
  771.         }
  772.     }
  773.  
  774.     if((my_daycount() == 1) && (my_familiar() == $familiar[Fist Turkey]) && (get_property("_turkeyBooze").to_int() >= 5)  && !get_property("cc_100familiar").to_boolean())
  775.     {
  776.         if(have_familiar($familiar[Angry Jung Man]))
  777.         {
  778.             use_familiar($familiar[Angry Jung Man]);
  779.         }
  780.         else
  781.         {
  782.             use_familiar($familiar[piano cat]);
  783.         }
  784.     }
  785.  
  786.  
  787.     if((my_daycount() == 1) && (my_bjorned_familiar() != $familiar[grim brother]) && (get_property("_grimFairyTaleDropsCrown").to_int() == 0) && (have_familiar($familiar[grim brother])) && (equipped_item($slot[back]) == $item[Buddy Bjorn]))
  788.     {
  789.         bjornify_familiar($familiar[grim brother]);
  790.     }
  791.     if((my_bjorned_familiar() == $familiar[grimstone golem]) && (get_property("_grimstoneMaskDropsCrown") == 1) && have_familiar($familiar[El Vibrato Megadrone]))
  792.     {
  793.         bjornify_familiar($familiar[el vibrato megadrone]);
  794.     }
  795.     if((my_bjorned_familiar() == $familiar[grim brother]) && (get_property("_grimFairyTaleDropsCrown").to_int() >= 1))
  796.     {
  797.         bjornify_familiar($familiar[el vibrato megadrone]);
  798.     }
  799.  
  800.     if(my_path() == "Heavy Rains")
  801.     {
  802.         print("Post adventure done: Thunder: " + my_thunder() + " Rain: " + my_rain() + " Lightning: " + my_lightning(), "green");
  803.     }
  804.  
  805.     if((my_location() == $location[Barrrney\'s Barrr]) || (my_location() == $location[The Obligatory Pirate\'s Cove]))
  806.     {
  807.         print("Have " + numPirateInsults() + " insults.", "green");
  808.     }
  809.  
  810.     if(my_location() == $location[The Broodling Grounds])
  811.     {
  812.         print("Have " + item_amount($item[Hellseal Brain]) + " brain(s).", "green");
  813.         print("Have " + item_amount($item[Hellseal Hide]) + " hide(s).", "green");
  814.         print("Have " + item_amount($item[Hellseal Sinew]) + " sinew(s).", "green");
  815.     }
  816.  
  817.     if((my_location() == $location[The Hidden Bowling Alley]) && get_property("kingLiberated").to_boolean())
  818.     {
  819.         if(item_amount($item[Bowling Ball]) > 0)
  820.         {
  821.             put_closet(item_amount($item[Bowling Ball]), $item[Bowling Ball]);
  822.         }
  823.     }
  824.  
  825.     # We only do this in aftercore because we don't want a spiralling death loop in-run.
  826.     if((get_property("kingLiberated") != "false") && (have_effect($effect[beaten up]) > 0) && (my_mp() >= 11) && have_skill($skill[Tongue of the Walrus]))
  827.     {
  828.         print("Owwie, was beaten up but trying to recover", "red");
  829.         use_skill(1, $skill[Tongue of the Walrus]);
  830.     }
  831.  
  832.     #Should we create a separate function to track these? How many are we going to track?
  833.     if(last_monster() == $monster[writing desk])
  834.     {
  835.         print("Fought " + get_property("writingDesksDefeated") + " writing desks.", "blue");
  836.     }
  837.     if((last_monster() == $monster[Gaudy Pirate]) && (have_effect($effect[Beaten Up]) == 0))
  838.     {
  839.         set_property("cc_gaudypiratecount", "" + (get_property("cc_gaudypiratecount").to_int() + 1));
  840.         print("Fought " + get_property("cc_gaudypiratecount") + " gaudy pirates.", "blue");
  841.     }
  842.     if((last_monster() == $monster[Modern Zmobie]) && (have_effect($effect[Beaten Up]) == 0))
  843.     {
  844.         set_property("cc_modernzmobiecount", "" + (get_property("cc_modernzmobiecount").to_int() + 1));
  845.         print("Fought " + get_property("cc_modernzmobiecount") + " modern zmobies.", "blue");
  846.     }
  847.  
  848.     print("Post Adventure done, beep.", "purple");
  849. }
  850.  
  851. void main(){
  852.     handlePostAdventure();
  853. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement