Advertisement
Guest User

precheese.ash

a guest
Jul 14th, 2015
289
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 6.52 KB | None | 0 0
  1. script "precheese.ash";
  2. import <cc_util.ash>
  3.  
  4. void handlePreAdventure()
  5. {
  6.     if(get_property("cc_bedroomHandler2") == "yes")
  7.     {
  8.         set_property("cc_bedroomHandler2", "no");
  9.         if(contains_text(visit_url("main.php"), "choice.php"))
  10.         {
  11.             return;
  12.         }
  13.     }
  14.  
  15.     if(get_property("cc_disableAdventureHandling") == "yes")
  16.     {
  17.         return;
  18.     }
  19.  
  20.     if((contains_text(get_property("cc_funPrefix"), "clingy")) || last_monster().random_modifiers["clingy"])
  21.     {
  22.         return;
  23.     }
  24.  
  25.     if(my_location() == $location[The Lower Chambers])
  26.     {
  27.         return;
  28.     }
  29.  
  30.  
  31.     if((get_property("_bittycar") == "") && (item_amount($item[Bittycar Meatcar]) > 0))
  32.     {
  33.         use(1, $item[bittycar meatcar]);
  34.     }
  35.  
  36.     if((have_effect($effect[Coated in Slime]) > 0) && (my_location() != $location[The Slime Tube]))
  37.     {
  38.         visit_url("clan_slimetube.php?action=chamois&pwd");
  39.     }
  40.  
  41.     if((my_location() == $location[The Broodling Grounds]) && (my_class() == $class[Seal Clubber]))
  42.     {
  43.         uneffect($effect[Spiky Shell]);
  44.         uneffect($effect[Scarysauce]);
  45.     }
  46.  
  47.  
  48.     if(my_path() == "Actually Ed the Undying")
  49.     {
  50.         if((my_location() == $location[The Penultimate Fantasy Airship]) ||
  51.             (my_location() == $location[Twin Peak]) ||
  52.             (my_location() == $location[The Poop Deck]) ||
  53.             (my_location() == $location[The Haunted Ballroom]) ||
  54.             (my_location() == $location[The Haunted Billiards Room]) ||
  55.             (my_location() == $location[The Haunted Gallery]) ||
  56.             (my_location() == $location[The Haunted Bathroom]) ||
  57.             (my_location() == $location[The Hidden Hospital]) ||
  58.             (my_location() == $location[Inside the Palindome]) ||
  59.             (my_location() == $location[The Dark Neck of the Woods]) ||
  60.             (my_location() == $location[The Dark Heart of the Woods]) ||
  61.             (my_location() == $location[The Dark Elbow of the Woods]) ||
  62.             (my_location() == $location[The Defiled Cranny]) ||
  63.             (my_location() == $location[The Defiled Alcove]) ||
  64.             (my_location() == $location[The Spooky Forest]) ||
  65.             (my_location() == $location[Inside the Palindome]) ||
  66.             (my_location() == $location[The Hidden Hospital]) ||
  67.             (my_location() == $location[The Obligatory Pirate\'s Cove]) ||
  68.             (my_location() == $location[Wartime Hippy Camp]) ||
  69.             (my_location() == $location[The Castle in the Clouds in the Sky (Basement)]) ||
  70.             (my_location() == $location[The Castle in the Clouds in the Sky (Top Floor)]) ||
  71.             (my_location() == $location[The Castle in the Clouds in the Sky (Ground Floor)])
  72.         )
  73.         {
  74.             if((have_effect($effect[Shelter of Shed]) == 0) && (my_mp() < 15))
  75.             {
  76.                 if(item_amount($item[Magical Mystery Juice]) > 0)
  77.                 {
  78.                     use(1, $item[Magical Mystery Juice]);
  79.                 }
  80.                 else if(item_amount($item[Phonics Down]) > 0)
  81.                 {
  82.                     use(1, $item[Phonics Down]);
  83.                 }
  84.                 else if(item_amount($item[Tiny House]) > 0)
  85.                 {
  86.                     use(1, $item[Tiny House]);
  87.                 }
  88.                 else if(item_amount($item[Holy Spring Water]) > 0)
  89.                 {
  90.                     use(1, $item[Holy Spring Water]);
  91.                 }
  92.             }
  93.             buffMaintain($effect[Shelter of Shed], 15, 1, 1);
  94.         }
  95.         return;
  96.     }
  97.  
  98.  
  99.     #+C Maintenance
  100.     if((my_location() == $location[The F\'c\'le]) ||
  101.         (my_location() == $location[Sonofa Beach]) ||
  102.         (my_location() == $location[The Black Forest])
  103.     )
  104.     {
  105.         uneffect($effect[The Sonata Of Sneakiness]);
  106.         buffMaintain($effect[Hippy Stench], 0, 1, 10);
  107.         buffMaintain($effect[Musk of the Moose], 15, 1, 2);
  108.         buffMaintain($effect[Carlweather\'s Cantata of Confrontation], 25, 1, 2);
  109.     }
  110.     #+C Maintenance
  111.     if(my_location() == $location[Barrrney\'s Barrr])
  112.     {
  113.         if(numPirateInsults() < 7)
  114.         {
  115.             uneffect($effect[The Sonata Of Sneakiness]);
  116.             buffMaintain($effect[Musk of the Moose], 15, 1, 2);
  117.             buffMaintain($effect[Carlweather\'s Cantata of Confrontation], 25, 1, 2);
  118.         }
  119.         else
  120.         {
  121.             uneffect($effect[Carlweather\'s Cantata Of Confrontation]);
  122.             buffMaintain($effect[Smooth Movements], 15, 1, 2);
  123.             buffMaintain($effect[The Sonata of Sneakiness], 25, 1, 2);
  124.         }
  125.     }
  126.  
  127.     #+NC Maintenance
  128.     if((my_location() == $location[The Penultimate Fantasy Airship]) ||
  129.         (my_location() == $location[Twin Peak]) ||
  130.         (my_location() == $location[A Maze of Sewer Tunnels]) ||
  131.         (my_location() == $location[The Poop Deck]) ||
  132.         (my_location() == $location[The Haunted Ballroom]) ||
  133.         (my_location() == $location[The Haunted Billiards Room]) ||
  134.         (my_location() == $location[The Haunted Gallery]) ||
  135.         (my_location() == $location[The Haunted Bathroom]) ||
  136.         (my_location() == $location[The Hidden Hospital]) ||
  137.         (my_location() == $location[Inside the Palindome]) ||
  138.         (my_location() == $location[The Dark Neck of the Woods]) ||
  139.         (my_location() == $location[The Dark Heart of the Woods]) ||
  140.         (my_location() == $location[The Dark Elbow of the Woods]) ||
  141.         (my_location() == $location[The Defiled Cranny]) ||
  142.         (my_location() == $location[The Defiled Alcove]) ||
  143.         (my_location() == $location[The Upper Chamber]) ||
  144.         (my_location() == $location[The Spooky Forest]) ||
  145.         (my_location() == $location[The Middle Chamber]) ||
  146.         (my_location() == $location[Inside the Palindome]) ||
  147.         (my_location() == $location[The Hidden Hospital]) ||
  148.         (my_location() == $location[The Obligatory Pirate\'s Cove]) ||
  149.         (my_location() == $location[Wartime Hippy Camp]) ||
  150.         (my_location() == $location[The Castle in the Clouds in the Sky (Basement)]) ||
  151.         (my_location() == $location[The Castle in the Clouds in the Sky (Top Floor)]) ||
  152.         (my_location() == $location[The Castle in the Clouds in the Sky (Ground Floor)])
  153.     )
  154.     {
  155.         buffMaintain($effect[Smooth Movements], 15, 1, 2);
  156.         buffMaintain($effect[The Sonata of Sneakiness], 25, 1, 2);
  157.     }
  158.  
  159.     if((monster_level_adjustment() > 120) && ((my_hp() * 10) < (my_maxhp() * 8)) && (my_mp() >= 20))
  160.     {
  161.         useCocoon();
  162.     }
  163.     if(my_mp()<80)
  164.     {
  165.         if(my_maxmp()>200)
  166.         {
  167.             if(item_amount($item[Magical Mystery Juice]) > 0 || (guild_store_available() && $classes[Pastamancer, Sauceror] contains my_class()))
  168.             {
  169.                 if(item_amount($item[Magical Mystery Juice]) > 5)
  170.                 {
  171.                     use(5, $item[Magical Mystery Juice]);
  172.                 }else{
  173.                     buy(5 - item_amount($item[Magical Mystery Juice]), $item[Magical Mystery Juice]);
  174.                     use(5, $item[Magical Mystery Juice]);
  175.                 }
  176.             }else{
  177.                 buy(5 - item_amount($item[Doc Galaktik's Invigorating Tonic]), $item[Doc Galaktik's Invigorating Tonic]);
  178.                 use(5, $item[Doc Galaktik's Invigorating Tonic]);
  179.             }
  180.  
  181.         }
  182.     }
  183.     if(my_location() == $location[Near an Abandoned Refrigerator])
  184.     {
  185.         use_familiar($familiar[Gelatinous Cubeling]);
  186.     }
  187.  
  188.     print("MP before entering adventure: "+to_string(my_mp())+" MP", "blue");
  189.     print("Pre Adventure done, beep.", "orange");
  190. }
  191.  
  192. void main(){
  193.     handlePreAdventure();
  194. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement