kolpastebin

Halloweeeeeeeeeeen.ash

Aug 28th, 2015
227
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.66 KB | None | 0 0
  1. //This script is in the public domain.
  2. //Also, it's missing a bunch of outfits.
  3.  
  4. void listAppend(item [int] list, item entry)
  5. {
  6. int position = list.count();
  7. while (list contains position)
  8. position += 1;
  9. list[position] = entry;
  10. }
  11.  
  12. item [int] missing_outfit_components(string outfit_name)
  13. {
  14. item [int] outfit_pieces = outfit_pieces(outfit_name);
  15. item [int] missing_components;
  16. foreach key in outfit_pieces
  17. {
  18. item it = outfit_pieces[key];
  19. if (it.available_amount() == 0)
  20. missing_components.listAppend(it);
  21. }
  22. return missing_components;
  23. }
  24.  
  25. //have_outfit() will tell you if you have an outfit, but only if you pass stat checks. This does not stat check:
  26. boolean have_outfit_components(string outfit_name)
  27. {
  28. return (outfit_name.missing_outfit_components().count() == 0);
  29. }
  30.  
  31. record item_drop
  32. {
  33. item i;
  34. int price;
  35. string outfit;
  36. };
  37.  
  38. item_drop item_drop_make(item i, int price, string outfit)
  39. {
  40. item_drop result;
  41. result.i = i;
  42. result.price = price;
  43. result.outfit = outfit;
  44. return result;
  45. }
  46. void main()
  47. {
  48. string [string] outfits_and_their_items;
  49.  
  50.  
  51. outfits_and_their_items["8-Bit Finery"] = "pixellated candy heart";
  52. outfits_and_their_items["Animelf Apparel"] = "blind-packed capsule toy";
  53. outfits_and_their_items["Antique Arms And Armor"] = "Bit O' Ectoplasm";
  54. outfits_and_their_items["Arboreal Raiment"] = "sugar-coated pine cone";
  55. outfits_and_their_items["Arrrbor Day Apparrrrrel"] = "Everlasting Deckswabber";
  56. outfits_and_their_items["Bits o' Honey"] = "honey stick";
  57. outfits_and_their_items["Blasphemous Bedizenment"] = "Pain Dip";
  58. outfits_and_their_items["Bounty-Hunting Rig"] = "chocolate filthy lucre";
  59. outfits_and_their_items["Bow Tux"] = "candy cane";
  60. outfits_and_their_items["BRICKOfig Outfit"] = "BRICKO brick";
  61. outfits_and_their_items["Bugbear Costume"] = "cog, sprocket, and spring";
  62. outfits_and_their_items["Cloaca-Cola Uniform"] = "Dyspepsi grenade";
  63. outfits_and_their_items["Clockwork Apparatus"] = "Sugar Cog";
  64. outfits_and_their_items["Clothing of Loathing"] = "fudge-shaped hole in space-time";
  65. outfits_and_their_items["Cool Irons"] = "ironic mint";
  66. outfits_and_their_items["Crappy Mer-kin Disguise"] = "Mer-kin rocksalt";
  67. outfits_and_their_items["Crimbo Duds"] = "fruitcake";
  68. outfits_and_their_items["Crimborg Assault Armor"] = "nanite-infested candy cane";
  69. outfits_and_their_items["Cursed Zombie Pirate Costume"] = "piece of after eight";
  70. outfits_and_their_items["Dark Bro's Vestments"] = "Necbro wafers";
  71. outfits_and_their_items["Dead Sexy (effect)"] = "Gummy Brains";
  72. outfits_and_their_items["Dire Drifter Duds"] = "strawberry-flavored Hob-O";
  73. outfits_and_their_items["Dreadful Bugbear Suit"] = "Bugbearclaw Donut";
  74. outfits_and_their_items["Dreadful Ghost Suit"] = "8-bit banana";
  75. outfits_and_their_items["Dreadful Pajamas"] = "Tallowcreme Halloween Pumpkin";
  76. outfits_and_their_items["Dreadful Skeleton Suit"] = "bone bons";
  77. outfits_and_their_items["Dreadful Vampire Suit"] = "vial of blood simple syrup";
  78. outfits_and_their_items["Dreadful Werewolf Suit"] = "little red jam";
  79. outfits_and_their_items["Dreadful Zombie Suit"] = "Whenchamacallit bar";
  80. outfits_and_their_items["Dwarvish War Uniform"] = "dwarf bread";
  81. outfits_and_their_items["Dyspepsi-Cola Uniform"] = "Cloaca grenade";
  82. outfits_and_their_items["El Vibrato Relics"] = "abandoned candy";
  83. outfits_and_their_items["Encephalic Ensemble"] = "candy brain";
  84. outfits_and_their_items["eXtreme Cold-Weather Gear"] = "Wint-O-Fresh mints";
  85. outfits_and_their_items["Fancy Tux"] = "chocolate-covered caviar";
  86. outfits_and_their_items["Filthy Hippy Disguise"] = "herb brownies";
  87. outfits_and_their_items["Floaty Fatigues"] = "packets of Rock Pops";
  88. outfits_and_their_items["Frat Boy Ensemble"] = "bottle of booze";
  89. outfits_and_their_items["Frat Warrior Fatigues"] = "shots of schnapps";
  90. outfits_and_their_items["Frigid Northlands Garb"] = "Northern pemmican";
  91. outfits_and_their_items["Furry Suit"] = "Tasty Fun Good rice candy";
  92. outfits_and_their_items["Glad Bag Glad Rags"] = "alphabet gum";
  93. outfits_and_their_items["Gnauga Hides"] = "Gummi-Gnauga";
  94. outfits_and_their_items["Grass Guise"] = "foie gras";
  95. outfits_and_their_items["Grimy Reaper's Vestments"] = "children of the candy corn";
  96. outfits_and_their_items["Hateful Habiliment"] = "worst candy";
  97. outfits_and_their_items["Haunting Looks (effect)"] = "Rattlin' Chains";
  98. outfits_and_their_items["Hodgman's Regal Frippery"] = "roll of Hob-Os";
  99. outfits_and_their_items["Hot and Cold Running Ninja Suit"] = "Cold Hots candy";
  100. outfits_and_their_items["Hot Daub Ensemble"] = "daub-breaker";
  101. outfits_and_their_items["Hyperborean Hobo Habiliments"] = "Frostbite-flavored Hob-O";
  102. outfits_and_their_items["Knight's Armor"] = "pawn cookie";
  103. outfits_and_their_items["Knob Goblin Elite Guard Uniform"] = "Knob Goblin steroids";
  104. outfits_and_their_items["Knob Goblin Harem Girl Disguise"] = "Knob Goblin love potion";
  105. outfits_and_their_items["Legendary Regalia of the Chelonian Overlord"] = "chocolate turtle totem";
  106. outfits_and_their_items["Legendary Regalia of the Groovelord"] = "chocolate disco ball";
  107. outfits_and_their_items["Legendary Regalia of the Master Squeezeboxer"] = "chocolate stolen accordion";
  108. outfits_and_their_items["Legendary Regalia of the Pasta Master"] = "chocolate pasta spoon";
  109. outfits_and_their_items["Legendary Regalia of the Saucemaestro"] = "chocolate saucepan";
  110. outfits_and_their_items["Legendary Regalia of the Seal Crusher"] = "chocolate seal-clubbing club";
  111. outfits_and_their_items["Luniform"] = "Comet Drop";
  112. outfits_and_their_items["Mer-kin Gladiatorial Gear"] = "Mer-kin saltmint";
  113. outfits_and_their_items["Mer-kin Scholar's Vestments"] = "Mer-kin saltsquid";
  114. outfits_and_their_items["Mining Gear"] = "dwarf bread";
  115. outfits_and_their_items["Mutant Couture"] = "Gummi-DNA";
  116. outfits_and_their_items["Oil Rig"] = "crude crudités";
  117. outfits_and_their_items["OK Lumberjack Outfit"] = "maple syrup";
  118. outfits_and_their_items["Palmist Paraphernalia"] = "bit-o-cactus or honey-dipped locust";
  119. outfits_and_their_items["Paperclippery"] = "elderly jawbreaker";
  120. outfits_and_their_items["Pinata Provisions"] = "pile of candy";
  121. outfits_and_their_items["Pork Elf Prizes"] = "Elvish delight";
  122. outfits_and_their_items["Pyretic Panhandler Paraphernalia"] = "sterno-flavored Hob-O";
  123. outfits_and_their_items["Raiments of the Final Boss"] = "Boss Drops";
  124. outfits_and_their_items["Roy Orbison Disguise"] = "fruitfilm";
  125. outfits_and_their_items["Seafaring Suit"] = "candy crayons";
  126. outfits_and_their_items["Slimesuit"] = "Good 'n' Slimy";
  127. outfits_and_their_items["Smoked Pottery"] = "volcanic ash";
  128. outfits_and_their_items["Snowman Suit"] = "snowball";
  129. outfits_and_their_items["Star Garb"] = "Senior Mints";
  130. outfits_and_their_items["Sucker Samurai Suit"] = "Atomic Pop";
  131. outfits_and_their_items["Swashbuckling Getup"] = "bottle of rum";
  132. outfits_and_their_items["Tapered Threads"] = "Angry Farmer's Wife Candy";
  133. outfits_and_their_items["Tawdry Tramp Togs"] = "fry-oil-flavored Hob-O";
  134. outfits_and_their_items["Terrifying Clown Suit"] = "brick";
  135. outfits_and_their_items["Terrycloth Tackle"] = "toothbrush";
  136. outfits_and_their_items["The Bone Us Round (effect)"] = "Sweet Sword";
  137. outfits_and_their_items["Thousandth Birthday Suit"] = "candy skeleton";
  138. outfits_and_their_items["Time Trappings"] = "Now and Earlier";
  139. outfits_and_their_items["Transparent Trappings"] = "PlexiPips";
  140. outfits_and_their_items["Tropical Crimbo Duds"] = "orange and black Crimboween candy";
  141. outfits_and_their_items["Unblemished Uniform"] = "Wax Flask";
  142. outfits_and_their_items["Uncle Hobo's Rags"] = "holly-flavored Hob-O";
  143. outfits_and_their_items["Vampin' (effect)"] = "Blood 'n' Plenty";
  144. outfits_and_their_items["Vestments of the Treeslayer"] = "ribbon candy";
  145. outfits_and_their_items["Vile Vagrant Vestments"] = "garbage-juice-flavored Hob-O";
  146. outfits_and_their_items["Violent Vestments"] = "violent pastilles";
  147. outfits_and_their_items["War Hippy Fatigues"] = "Steal This Candy";
  148. outfits_and_their_items["Wax Wardrobe"] = "Drizzlers™ Black Licorice";
  149. outfits_and_their_items["Wumpus-Hair Wardrobe"] = "dubious peppermint";
  150. outfits_and_their_items["Yendorian Finery"] = "candied kobold";
  151. outfits_and_their_items["Yiffable You (effect)"] = "Lobos Mints";
  152.  
  153. item_drop [item] drops;
  154.  
  155. foreach outfit_name in outfits_and_their_items
  156. {
  157. item drop = to_item(outfits_and_their_items[outfit_name]);
  158. int price = mall_price(drop);
  159.  
  160. drops[drop] = item_drop_make(drop, price, outfit_name);
  161. }
  162.  
  163. /*item i = $item[Lobos Mints];
  164. drops[i] = item_drop_make(i, mall_price(i) * .4 - mall_price($item[Whisker pencil]) / 30, "Yiffable You (effect)");
  165.  
  166. i = $item[Blood 'n' Plenty];
  167. drops[i] = item_drop_make(i, mall_price(i) * .4 - mall_price($item[Bite-me-red lipstick]) / 30, "Vampin' (effect)");
  168.  
  169. i = $item[Gummy Brains];
  170. drops[i] = item_drop_make(i, mall_price(i) * .4 - mall_price($item[Necrotizing body spray]) / 30, "Dead Sexy (effect)");
  171.  
  172. i = $item[Rattlin' Chains];
  173. drops[i] = item_drop_make(i, mall_price(i) * .4 - mall_price($item[Ghostly body paint]) / 30, "Haunting Looks (effect)");
  174.  
  175. i = $item[Sweet Sword];
  176. drops[i] = item_drop_make(i, mall_price(i) * .4 - mall_price($item[Press-on ribs]) / 30, "The Bone Us Round (effect)");*/
  177.  
  178.  
  179.  
  180. sort drops by value.price;
  181.  
  182. foreach key in drops
  183. {
  184. item_drop id = drops[key];
  185. //string outfit = outfits[key];
  186. string colour = "black";
  187. if (!have_outfit_components(id.outfit) || !have_outfit(id.outfit))
  188. colour = "gray";
  189. print(id.price + " meat for item " + id.i + " with outfit " + id.outfit, colour);
  190. }
  191.  
  192. //print("Best option: " + max_item + " at " + max_price + " meat/adventure");
  193.  
  194. }
Advertisement
Add Comment
Please, Sign In to add comment