Advertisement
ereinion

Expanders.ash

Nov 3rd, 2016
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. boolean can_use_familiars() {
  2.     switch (my_path()) {
  3.         case "Avatar of Boris":
  4.             if (item_amount($item[Clancy's lute]) > 0) {
  5.                 use(1, $item[Clancy's lute]);
  6.             }
  7.             equip($slot[weapon], $item[Trusty]);
  8.             return false;
  9.         case "Avatar of Sneaky Pete":
  10.             return false;
  11.         case "Avatar of Jarlsberg":
  12.             return false;
  13.         case "Zombie Slayer":
  14.             return false;
  15.         default:
  16.             return true;
  17.     }
  18. }
  19.  
  20. void select_familiar_and_familiar_eq() {
  21.     // If cheerleader steam is less than 100, the hound dog is just as good.
  22.     // Better, since it has greater choice of familiar equipment without depleting steam.
  23.     // Backup is BGF. Everyone has one of those, right?
  24.     // Could implement greater choice of familiars (and familiar equipment), but why bother :P
  25.     if (can_use_familiars()) {
  26.         if (have_familiar($familiar[Steam-Powered Cheerleader]) && to_int(get_property("_cheerleaderSteam")) > 100) {
  27.             use_familiar($familiar[Steam-Powered Cheerleader]);
  28.             equip($slot[familiar], $item[school spirit socket set]);
  29.         } else if (have_familiar($familiar[Jumpsuited Hound Dog])) {
  30.             use_familiar($familiar[Jumpsuited Hound Dog]);
  31.             if (item_amount($item[Mayflower bouquet]) >= 1 || have_equipped($item[Mayflower bouquet])) {
  32.                 equip($slot[familiar], $item[Mayflower bouquet]);
  33.             } else {
  34.                 equip($slot[familiar], $item[ittah bittah hookah]);
  35.             }
  36.         } else {
  37.             use_familiar($familiar[Baby Gravy Fairy]);
  38.             equip($slot[familiar], $item[ittah bittah hookah]);
  39.         }
  40.     }
  41. }
  42.  
  43. boolean use_map() {
  44.     // Choose which item to get from the choiceadventure (1 = distention pill, 2 = dog hair pill)
  45.     if (item_amount($item[distention pill]) <= item_amount($item[synthetic dog hair pill])) {
  46.         set_property("choiceAdventure536", "1");
  47.     } else {
  48.         set_property("choiceAdventure536", "2");
  49.     }
  50.     // Use the map, return false on failed use
  51.     if (use(1, $item[Map to Safety Shelter Grimace Prime])) {
  52.         return true;
  53.     } else {
  54.         return false;
  55.     }
  56. }
  57.  
  58. void expanders() {
  59.     // Use transponder (buy if necessary)
  60.     if (have_effect($effect[transpondent]) < 1) {
  61.         if (item_amount($item[transporter transponder]) < 1) {
  62.             buy(1, $item[transporter transponder], 15000);
  63.         }
  64.         use(1, $item[transporter transponder]);
  65.     }
  66.    
  67.     // Pick what familiar to use
  68.     select_familiar_and_familiar_eq();
  69.    
  70.     // Maximize item drop
  71.     maximize("item, -current, -tie, 0.01 mp regen, -familiar", false);
  72.    
  73.     // Adventure while being transpondent
  74.     while(have_effect($effect[transpondent]) > 0 && my_adventures() > 0) {
  75.         // Use maps, if you have them. Exit if use fails.
  76.         if (item_amount($item[Map to Safety Shelter Grimace Prime]) > 0) {
  77.             if (!use_map()) {
  78.                 print("Something went wrong!", "red");
  79.                 return;
  80.             }
  81.         // Adventure, if out of maps.
  82.         } else {
  83.             if (adventure(1, $location[domed city of grimacia])) {}
  84.         }
  85.     }
  86. }
  87.  
  88. void main() {
  89.     expanders();
  90. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement