Advertisement
Guest User

cc_equipment.ash

a guest
Jul 14th, 2015
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 17.48 KB | None | 0 0
  1. script "cc_ascend/cc_equipment.ash";
  2. import <cc_util.ash>
  3. void equipBaseline();
  4. void equipBaselineWeapon();
  5. void equipBaselinePants();
  6. void equipBaselineBack();
  7. void equipBaselineShirt();
  8. void equipBaselineHat();
  9. void equipBaselineAcc1();
  10. void equipBaselineAcc2();
  11. void equipBaselineAcc3();
  12. void equipBaselineHat(boolean wantNC);
  13. void equipRollover();
  14. void handleOffHand();
  15. boolean handleBjornify(familiar fam);
  16. void makeStartingSmiths();
  17. boolean possessEquipment(item equipment);
  18.  
  19.  
  20.  
  21. void makeStartingSmiths()
  22. {
  23.     if(!have_skill($skill[Summon Smithsness]))
  24.     {
  25.         return;
  26.     }
  27.  
  28.     if(item_amount($item[Lump of Brituminous Coal]) == 0)
  29.     {
  30.         if(my_mp() < 6)
  31.         {
  32.             print("You don't have enough MP for initialization, it might be ok but probably not.", "red");
  33.         }
  34.         use_skill(3, $skill[summon smithsness]);
  35.     }
  36.  
  37.     if(knoll_available())
  38.     {
  39.         buyUpTo(1, $item[maiden wig]);
  40.     }
  41.  
  42.     switch(my_class())
  43.     {
  44.     case $class[Seal Clubber]:
  45.         if(!possessEquipment($item[Meat Tenderizer is Murder]))
  46.         {
  47.             craft("smith", 1, $item[lump of Brituminous coal], $item[seal-clubbing club]);
  48.         }
  49.         break;
  50.     case $class[Turtle Tamer]:
  51.         if(!possessEquipment($item[Work is a Four Letter Sword]))
  52.         {
  53.             buyUpTo(1, $item[Sword Hilt]);
  54.             craft("smith", 1, $item[lump of Brituminous coal], $item[sword hilt]);
  55.         }
  56.         if(!possessEquipment($item[Ouija Board\, Ouija Board]))
  57.         {
  58.             craft("smith", 1, $item[lump of Brituminous coal], $item[turtle totem]);
  59.         }
  60.         break;
  61.     case $class[Sauceror]:
  62.         if(!possessEquipment($item[Saucepanic]))
  63.         {
  64.             craft("smith", 1, $item[lump of Brituminous coal], $item[Saucepan]);
  65.         }
  66.         break;
  67.     case $class[Pastamancer]:
  68.         if(!possessEquipment($item[Hand That Rocks the Ladle]))
  69.         {
  70.             craft("smith", 1, $item[lump of Brituminous coal], $item[Pasta Spoon]);
  71.         }
  72.         break;
  73.     case $class[Disco Bandit]:
  74.         if(!possessEquipment($item[Frankly Mr. Shank]))
  75.         {
  76.             craft("smith", 1, $item[lump of Brituminous coal], $item[Disco Ball]);
  77.         }
  78.         break;
  79.     case $class[Accordion Thief]:
  80.         if(!possessEquipment($item[Shakespeare\'s Sister\'s Accordion]))
  81.         {
  82.             craft("smith", 1, $item[lump of Brituminous coal], $item[Stolen Accordion]);
  83.         }
  84.         break;
  85.     }
  86.  
  87.     if(knoll_available() && !possessEquipment($item[Hairpiece on Fire]) && (item_amount($item[lump of Brituminous Coal]) > 0))
  88.     {
  89.         craft("smith", 1, $item[lump of Brituminous coal], $item[maiden wig]);
  90.     }
  91.     buffMaintain($effect[Merry Smithsness], 0, 1, 10);
  92. }
  93.  
  94.  
  95.  
  96. boolean possessEquipment(item equipment)
  97. {
  98.     if(item_amount(equipment) > 0)
  99.     {
  100.         return true;
  101.     }
  102. //  if(closet_amount(equipment) > 0)
  103. //  {
  104. //      return true;
  105. //  }
  106.     if(equipped_item($slot[hat]) == equipment)
  107.     {
  108.         return true;
  109.     }
  110.     if(equipped_item($slot[back]) == equipment)
  111.     {
  112.         return true;
  113.     }
  114.     if(equipped_item($slot[shirt]) == equipment)
  115.     {
  116.         return true;
  117.     }
  118.     if(equipped_item($slot[weapon]) == equipment)
  119.     {
  120.         return true;
  121.     }
  122.     if(equipped_item($slot[off-hand]) == equipment)
  123.     {
  124.         return true;
  125.     }
  126.     if(equipped_item($slot[pants]) == equipment)
  127.     {
  128.         return true;
  129.     }
  130.     if(equipped_item($slot[acc1]) == equipment)
  131.     {
  132.         return true;
  133.     }
  134.     if(equipped_item($slot[acc2]) == equipment)
  135.     {
  136.         return true;
  137.     }
  138.     if(equipped_item($slot[acc3]) == equipment)
  139.     {
  140.         return true;
  141.     }
  142.     if(equipped_item($slot[familiar]) == equipment)
  143.     {
  144.         return true;
  145.     }
  146.     return false;
  147. }
  148.  
  149.  
  150. boolean handleBjornify(familiar fam)
  151. {
  152.     if(in_hardcore())
  153.     {
  154.         return false;
  155.     }
  156.     if((equipped_item($slot[back]) != $item[buddy bjorn]) || (my_bjorned_familiar() == fam))
  157.     {
  158.         return false;
  159.     }
  160.  
  161.     if(have_familiar(fam))
  162.     {
  163.         bjornify_familiar(fam);
  164.     }
  165.     else
  166.     {
  167.         if(have_familiar($familiar[El Vibrato Megadrone]))
  168.         {
  169.             bjornify_familiar($familiar[El Vibrato Megadrone]);
  170.         }
  171.         else
  172.         {
  173.             if((my_familiar() != $familiar[Grimstone Golem]) && have_familiar($familiar[Grimstone Golem]))
  174.             {
  175.                 bjornify_familiar($familiar[Grimstone Golem]);
  176.             }
  177.             else if(have_familiar($familiar[Fist Turkey]))
  178.             {
  179.                 bjornify_familiar($familiar[Fist Turkey]);
  180.             }
  181.             else
  182.             {
  183.                 return false;
  184.             }
  185.         }
  186.     }
  187.     return true;
  188. }
  189.  
  190.  
  191. void handleOffHand()
  192. {
  193.     item toEquip = $item[none];
  194.     boolean[item] poss;
  195.  
  196.     if((my_path() == "Heavy Rains") && (item_amount($item[Thor\'s Pliers]) == 1))
  197.     {
  198.         equip($slot[off-hand], $item[Thor\'s Pliers]);
  199.         return;
  200.     }
  201.  
  202.     if(weapon_hands(equipped_item($slot[weapon])) > 1)
  203.     {
  204.         return;
  205.     }
  206.     #if weapon_type(equipped_item($slot[weapon]) == $stat[Moxie]) we can dual-wield other ranged weapons.
  207.     if(my_class() != $class[Turtle Tamer])
  208.     {
  209.         if((have_skill($skill[Double-Fisted Skull Smashing])) && (weapon_type(equipped_item($slot[weapon])) != $stat[Moxie]))
  210.         {
  211.             poss = $items[Turtle Totem, Knob Goblin Scimitar, Sabre Teeth, Pitchfork, Cardboard Wakizashi, Oversized Pizza Cutter, Spiked Femur, Wicker Shield, Operation Patriot Shield, Fake Washboard];
  212.         }
  213.         else
  214.         {
  215.             poss = $items[Hot Plate, Disturbing Fanfic, Coffin Lid, Heavy-Duty Clipboard, Wicker Shield, Whatsian Ionic Pliers, Little Black Book, Astral Shield, Astral Statuette, Operation Patriot Shield, Fake Washboard];
  216.         }
  217.     }
  218.     if(my_class() == $class[Turtle Tamer])
  219.     {
  220.         poss = $items[Wicker Shield, Operation Patriot Shield, Fake Washboard];
  221.     }
  222.  
  223.     if(my_class() == $class[Pastamancer])
  224.     {
  225.         if((have_skill($skill[Double-Fisted Skull Smashing])) && (weapon_type(equipped_item($slot[weapon])) != $stat[Moxie]))
  226.         {
  227.             poss = $items[Turtle Totem, Knob Goblin Scimitar, Sabre Teeth, Pitchfork, Cardboard Wakizashi, Oversized Pizza Cutter, Spiked Femur, Wicker Shield, Operation Patriot Shield, Jarlsberg\'s Pan];
  228.         }
  229.         else
  230.         {
  231.             poss = $items[Hot Plate, Disturbing Fanfic, Coffin Lid, Heavy-Duty Clipboard, Wicker Shield, sticky hand whip, Whatsian Ionic Pliers, Little Black Book, Astral Shield, Astral Statuette, Operation Patriot Shield, Jarlsberg\'s Pan];
  232.         }
  233.     }
  234.  
  235.     if(my_class() == $class[Sauceror])
  236.     {
  237.             poss = $items[Hot Plate, Disturbing Fanfic, Coffin Lid, Heavy-Duty Clipboard, Wicker Shield, Whatsian Ionic Pliers, Little Black Book, Astral Shield, Astral Statuette, Operation Patriot Shield, Jarlsberg\'s Pan, A Light that Never Goes Out];
  238.     }
  239.  
  240.  
  241.     if(my_class() == $class[Disco Bandit])
  242.     {
  243.         if((have_skill($skill[Double-Fisted Skull Smashing])) && (weapon_type(equipped_item($slot[weapon])) != $stat[Moxie]))
  244.         {
  245.             poss = $items[Turtle Totem, Knob Goblin Scimitar, Sabre Teeth, Pitchfork, Cardboard Wakizashi, Oversized Pizza Cutter, Spiked Femur, Wicker Shield, Operation Patriot Shield];
  246.         }
  247.         else
  248.         {
  249.             poss = $items[Hot Plate, Disturbing Fanfic, Coffin Lid, Heavy-Duty Clipboard, Wicker Shield, Whatsian Ionic Pliers, Little Black Book, Astral Shield, Astral Statuette, Operation Patriot Shield, Fake Washboard];
  250.         }
  251.     }
  252.  
  253.     foreach thing in poss
  254.     {
  255.         if(possessEquipment(thing) && can_equip(thing))
  256.         {
  257.             toEquip = thing;
  258.         }
  259.     }
  260.  
  261.     if(contains_text(holiday(), "Oyster Egg Day"))
  262.     {
  263.         poss = $items[Hot Plate, Disturbing Fanfic, Coffin Lid];
  264.         if((toEquip == $item[none]) || (poss contains toEquip))
  265.         {
  266.             if(!possessEquipment($item[Oyster Basket]) && (my_meat() >= 300))
  267.             {
  268.                 buy(1, $item[Oyster Basket]);
  269.             }
  270.             if(possessEquipment($item[Oyster Basket]))
  271.             {
  272.                 toEquip = $item[Oyster Basket];
  273.             }
  274.         }
  275.     }
  276.  
  277.     if((toEquip != $item[none]) && (toEquip != equipped_item($slot[off-hand])))
  278.     {
  279.         equip($slot[Off-hand], toEquip);
  280.     }
  281.  
  282. }
  283.  
  284. void equipBaselineHat()
  285. {
  286.     equipBaselineHat(true);
  287. }
  288.  
  289. void equipBaselinePants()
  290. {
  291.     item toEquip = $item[none];
  292.  
  293.     boolean[item] poss = $items[Old Sweatpants, Knob Goblin Pants, Filthy Corduroys, Leotarrrd, Swashbuckling Pants, Troll Britches, Distressed Denim Pants, Astral Shorts, Vicar\'s Tutu, Pantsgiving];
  294.     foreach thing in poss
  295.     {
  296.         if(possessEquipment(thing) && can_equip(thing))
  297.         {
  298.             toEquip = thing;
  299.         }
  300.     }
  301.  
  302.     if((toEquip != $item[none]) && (toEquip != equipped_item($slot[pants])))
  303.     {
  304.         equip(toEquip);
  305.     }
  306. }
  307.  
  308. void equipBaselineShirt()
  309. {
  310.     item toEquip = $item[none];
  311.  
  312.     boolean[item] poss = $items[Astral Shirt, Stephen\'s Lab Coat, Sneaky Pete\'s Leather Jacket, Sneaky Pete\'s Leather Jacket (Collar Popped)];
  313.     foreach thing in poss
  314.     {
  315.         if(possessEquipment(thing) && can_equip(thing))
  316.         {
  317.             toEquip = thing;
  318.         }
  319.     }
  320.  
  321.     if((toEquip != $item[none]) && (toEquip != equipped_item($slot[shirt])))
  322.     {
  323.         equip(toEquip);
  324.     }
  325. }
  326.  
  327. void equipBaselineBack()
  328. {
  329.     item toEquip = $item[none];
  330.  
  331.     boolean[item] poss;
  332.  
  333.     if(my_class() == $class[Ed])
  334.     {
  335.         poss = $items[Giant Gym Membership Card, Misty Cloak, Misty Cape, Misty Robe];
  336.     }
  337.     else
  338.     {
  339.         poss = $items[Giant Gym Membership Card, Misty Cloak, Misty Cape, Misty Robe, makeshift cape, Buddy Bjorn, Camp Scout Backpack];
  340.     }
  341.     foreach thing in poss
  342.     {
  343.         if(possessEquipment(thing) && can_equip(thing))
  344.         {
  345.             toEquip = thing;
  346.         }
  347.     }
  348.  
  349.     if((toEquip != $item[none]) && (toEquip != equipped_item($slot[back])))
  350.     {
  351.         equip(toEquip);
  352.     }
  353. }
  354.  
  355. void equipBaselineHat(boolean wantNC)
  356. {
  357.     item toEquip = $item[none];
  358.  
  359.     boolean[item] poss = $items[Hollandaise Helmet, Viking Helmet, Chef\'s Hat, Crown of the Goblin King, Safarrri Hat, Mohawk Wig, Hairpiece On Fire, Fuzzy Earmuffs, Reinforced Beaded Headband, Giant Yellow Hat, 8185];
  360.     foreach thing in poss
  361.     {
  362.         if(possessEquipment(thing) && can_equip(thing))
  363.         {
  364.             toEquip = thing;
  365.         }
  366.  
  367.         if(my_class() == $class[Ed])
  368.         {
  369.             if(possessEquipment(thing) && (thing == $item[8185]))
  370.             {
  371.                 toEquip = thing;
  372.                 visit_url("inv_equip.php?pwd=&which=2&action=equip&whichitem=8185");
  373.                 return;
  374.             }
  375.         }
  376.     }
  377.  
  378.     if(wantNC)
  379.     {
  380.         if(possessEquipment($item[Xiblaxian Stealth Cowl]))
  381.         {
  382.             toEquip = $item[Xiblaxian Stealth Cowl];
  383.         }
  384.     }
  385.  
  386.     if((toEquip != $item[none]) && (toEquip != equipped_item($slot[hat])))
  387.     {
  388.         equip(toEquip);
  389.     }
  390. }
  391.  
  392. void equipBaselineWeapon()
  393. {
  394.     item toEquip = $item[none];
  395.     boolean[item] poss;
  396.  
  397.     switch(my_class())
  398.     {
  399.     case $class[Seal Clubber]:
  400.         poss = $items[Meat Tenderizer Is Murder];
  401.         break;
  402.     case $class[Turtle Tamer]:
  403.         poss = $items[Work Is A Four Letter Sword];
  404.         break;
  405.     case $class[Sauceror]:
  406.         poss = $items[Saucepanic];
  407.         break;
  408.     case $class[Pastamancer]:
  409.         poss = $items[Hand That Rocks The Ladle];
  410.         break;
  411.     case $class[Disco Bandit]:
  412.         poss = $items[Frankly Mr. Shank];
  413.         break;
  414.     case $class[Accordion Thief]:
  415.         poss = $items[Shakespeare\'s Sister\'s Accordion];
  416.         break;
  417.     case $class[Ed]:
  418. #       poss = $items[Titanium Assault Umbrella, Staff of Ed];
  419.         poss = $items[Spiked Femur, Grassy Cutlass, Oversized Pizza Cutter, Titanium Assault Umbrella, Ocarina of Space, 7961, sewage-clogged pistol];
  420.         break;
  421.     default:
  422.         abort("You don't have a valid class for this equipper, must be an avatar path or something.");
  423.         break;
  424.     }
  425.  
  426.     foreach thing in poss
  427.     {
  428.         if(possessEquipment(thing) && can_equip(thing))
  429.         {
  430.             toEquip = thing;
  431.         }
  432.     }
  433.     if((toEquip != $item[none]) && (toEquip != equipped_item($slot[weapon])))
  434.     {
  435.         equip($slot[weapon], toEquip);
  436.     }
  437.  
  438.     handleOffHand();
  439. }
  440.  
  441.  
  442. void equipBaseline()
  443. {
  444.     print('handling equipment baseline','blue');
  445.     equipBaselineHat();
  446.     equipBaselineShirt();
  447.     equipBaselineWeapon();
  448.     equipBaselinePants();
  449.     equipBaselineBack();
  450.     equipBaselineAcc1();
  451.     equipBaselineAcc2();
  452.     equipBaselineAcc3();
  453.     if(my_familiar() != $familiar[none])
  454.     {
  455.         if((my_path() == "Heavy Rains") && (item_amount($item[miniature life preserver]) > 0))
  456.         {
  457.             equip($item[miniature life preserver]);
  458.         }
  459.         if((my_path() != "Heavy Rains") && (item_amount($item[Snow Suit]) > 0))
  460.         {
  461.             equip($item[Snow Suit]);
  462.         }
  463.     }
  464.  
  465.     if(my_daycount() == 1)
  466.     {
  467.         if(have_familiar($familiar[grimstone golem]))
  468.         {
  469.             if(get_property("_grimFairyTaleDropsCrown").to_int() >= 1)
  470.             {
  471.                 handleBjornify($familiar[el vibrato megadrone]);
  472.             }
  473.         }
  474.         else
  475.         {
  476.             handleBjornify($familiar[el vibrato megadrone]);
  477.         }
  478.     }
  479.     if(my_daycount() == 2)
  480.     {
  481.         handleBjornify($familiar[el vibrato megadrone]);
  482.     }
  483.  
  484.     if(get_property("cc_diceMode").to_boolean())
  485.     {
  486.         if(item_amount($item[Dice Ring]) > 0)
  487.         {
  488.             equip($slot[acc1], $item[Dice Ring]);
  489.         }
  490.         if(item_amount($item[Dice Belt Buckle]) > 0)
  491.         {
  492.             equip($slot[acc2], $item[Dice Belt Buckle]);
  493.         }
  494.         if(item_amount($item[Dice Sunglasses]) > 0)
  495.         {
  496.             equip($slot[acc3], $item[Dice Sunglasses]);
  497.         }
  498.         if(item_amount($item[Dice-Print Do-Rag]) > 0)
  499.         {
  500.             equip($slot[hat], $item[Dice-Print Do-Rag]);
  501.         }
  502.         if(item_amount($item[Dice-Shaped Backpack]) > 0)
  503.         {
  504.             equip($slot[back], $item[Dice-Shaped Backpack]);
  505.         }
  506.         if(item_amount($item[Dice-Print Pajama Pants]) > 0)
  507.         {
  508.             equip($slot[pants], $item[Dice-Print Pajama Pants]);
  509.         }
  510.         if(item_amount($item[Kill Screen]) > 0)
  511.         {
  512.             equip($slot[familiar], $item[Kill Screen]);
  513.         }
  514.     }
  515.  
  516. }
  517.  
  518. void equipBaselineAcc1()
  519. {
  520.     item toEquip = $item[none];
  521.     boolean[item] poss = $items[Astral Mask, Astral Belt, Astral Ring, Astral Bracer, Over-The-Shoulder Folder Holder, Hand in Glove];
  522.     foreach thing in poss
  523.     {
  524.         if(possessEquipment(thing) && can_equip(thing))
  525.         {
  526.             toEquip = thing;
  527.         }
  528.     }
  529.     if((toEquip != $item[none]) && (toEquip != equipped_item($slot[acc1])))
  530.     {
  531.         equip($slot[acc1], toEquip);
  532.     }
  533. }
  534.  
  535. void equipBaselineAcc2()
  536. {
  537.     item toEquip = $item[none];
  538.     boolean[item] poss;
  539.     if((my_level() >= 13) && (get_property("flyeredML").to_int() >= 10000))
  540.     {
  541.         poss = $items[Glowing Red Eye, Bonerdagon Necklace, Jangly Bracelet, Pirate Fledges, Iron Beta of Industry, World\'s Best Adventurer Sash];
  542.     }
  543.     else
  544.     {
  545.         poss = $items[Jolly Roger Charrrm Bracelet, Glowing Red Eye, Jangly Bracelet, ghost of a necklace, Pirate Fledges, Compression Stocking, Iron Beta of Industry, perfume-soaked bandana, World\'s Best Adventurer Sash, Gumshoes, Caveman Dan\'s Favorite Rock];
  546.     }
  547.     foreach thing in poss
  548.     {
  549.         if(possessEquipment(thing) && can_equip(thing))
  550.         {
  551.             toEquip = thing;
  552.         }
  553.     }
  554.     if((toEquip != $item[none]) && (toEquip != equipped_item($slot[acc2])))
  555.     {
  556.         equip($slot[acc2], toEquip);
  557.     }
  558. }
  559.  
  560. void equipBaselineAcc3()
  561. {
  562.     item toEquip = $item[none];
  563.     boolean[item] poss = $items[Glowing Red Eye, Xiblaxian Holo-Wrist-Puter, Badge Of Authority, Numberwang];
  564.     foreach thing in poss
  565.     {
  566.         if(possessEquipment(thing) && can_equip(thing))
  567.         {
  568.             toEquip = thing;
  569.         }
  570.     }
  571.     if((toEquip != $item[none]) && (toEquip != equipped_item($slot[acc3])))
  572.     {
  573.         equip($slot[acc3], toEquip);
  574.     }
  575. }
  576.  
  577.  
  578. void equipRollover()
  579. {
  580.     item toEquip = $item[none];
  581.     boolean[item] poss = $items[Hairpiece on Fire];
  582.     foreach thing in poss
  583.     {
  584.         if(possessEquipment(thing) && can_equip(thing))
  585.         {
  586.             toEquip = thing;
  587.         }
  588.     }
  589.     if((toEquip != $item[none]) && (toEquip != equipped_item($slot[hat])))
  590.     {
  591.         equip($slot[hat], toEquip);
  592.     }
  593.  
  594.  
  595.     toEquip = $item[none];
  596.     poss = $items[Time Bandit Time Towel, Auxiliary Backbone];
  597.     foreach thing in poss
  598.     {
  599.         if(possessEquipment(thing) && can_equip(thing))
  600.         {
  601.             toEquip = thing;
  602.         }
  603.     }
  604.     if((toEquip != $item[none]) && (toEquip != equipped_item($slot[back])))
  605.     {
  606.         equip($slot[back], toEquip);
  607.     }
  608.  
  609.  
  610.     toEquip = $item[none];
  611.     poss = $items[Sneaky Pete\'s Leather Jacket, Sneaky Pete\'s Leather Jacket (Collar Popped)];
  612.     foreach thing in poss
  613.     {
  614.         if(possessEquipment(thing) && can_equip(thing))
  615.         {
  616.             toEquip = thing;
  617.         }
  618.     }
  619.     if((toEquip != $item[none]) && (toEquip != equipped_item($slot[shirt])))
  620.     {
  621.         equip($slot[shirt], toEquip);
  622.     }
  623.  
  624.     toEquip = $item[none];
  625.     poss = $items[Chrome Sword, Sword Behind Inappropriate Prepositions, Time Sword, The Nuge\'s Favorite Crossbow];
  626.     foreach thing in poss
  627.     {
  628.         if(possessEquipment(thing) && can_equip(thing))
  629.         {
  630.             toEquip = thing;
  631.         }
  632.     }
  633.     if((toEquip != $item[none]) && (toEquip != equipped_item($slot[weapon])))
  634.     {
  635.         equip($slot[weapon], toEquip);
  636.     }
  637.  
  638.     toEquip = $item[none];
  639.     poss = $items[Silver Cow Creamer];
  640.     foreach thing in poss
  641.     {
  642.         if(possessEquipment(thing) && can_equip(thing))
  643.         {
  644.             toEquip = thing;
  645.         }
  646.     }
  647.     if((toEquip != $item[none]) && (toEquip != equipped_item($slot[off-hand])))
  648.     {
  649.         equip($slot[off-hand], toEquip);
  650.     }
  651.  
  652.     toEquip = $item[none];
  653.     poss = $items[Vicar\'s Tutu, Ninjammies, Pantaloons of Hatred, Ratskin Pajama Pants];
  654.     foreach thing in poss
  655.     {
  656.         if(possessEquipment(thing) && can_equip(thing))
  657.         {
  658.             toEquip = thing;
  659.         }
  660.     }
  661.     if((toEquip != $item[none]) && (toEquip != equipped_item($slot[pants])))
  662.     {
  663.         equip($slot[pants], toEquip);
  664.     }
  665.     equip($slot[acc1], $item[none]);
  666.     equip($slot[acc2], $item[none]);
  667.     equip($slot[acc3], $item[none]);
  668.  
  669.     toEquip = $item[none];
  670.     poss = $items[Numberwang];
  671.     foreach thing in poss
  672.     {
  673.         if(possessEquipment(thing) && can_equip(thing))
  674.         {
  675.             toEquip = thing;
  676.         }
  677.     }
  678.     if((toEquip != $item[none]) && (toEquip != equipped_item($slot[acc1])))
  679.     {
  680.         equip($slot[acc1], toEquip);
  681.     }
  682.  
  683.     toEquip = $item[none];
  684.     poss = $items[Dead Guy\'s Watch, Sasq&trade; Watch];
  685.     foreach thing in poss
  686.     {
  687.         if(possessEquipment(thing) && can_equip(thing))
  688.         {
  689.             toEquip = thing;
  690.         }
  691.     }
  692.     if((toEquip != $item[none]) && (toEquip != equipped_item($slot[acc2])))
  693.     {
  694.         equip($slot[acc2], toEquip);
  695.     }
  696.  
  697.     toEquip = $item[none];
  698.     poss = $items[Gold Wedding Ring, Fudgecycle, Treads of Loathing];
  699.     foreach thing in poss
  700.     {
  701.         if(possessEquipment(thing) && can_equip(thing))
  702.         {
  703.             toEquip = thing;
  704.         }
  705.     }
  706.     if((toEquip != $item[none]) && (toEquip != equipped_item($slot[acc3])))
  707.     {
  708.         equip($slot[acc3], toEquip);
  709.     }
  710.  
  711.     if(my_familiar() != $familiar[none])
  712.     {
  713.         toEquip = $item[none];
  714.         poss = $items[Solid Shifting Time Weirdness];
  715.         foreach thing in poss
  716.         {
  717.             if(possessEquipment(thing) && can_equip(thing))
  718.             {
  719.                 toEquip = thing;
  720.             }
  721.         }
  722.         if((toEquip != $item[none]) && (toEquip != equipped_item($slot[familiar])))
  723.         {
  724.             equip($slot[familiar], toEquip);
  725.         }
  726.     }
  727. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement