MandyBrigwell

Leprecondo

Mar 13th, 2025 (edited)
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.18 KB | None | 0 0
  1. void main() {
  2. string [27] leprecondoItems = {
  3. "Buckets of Concrete",
  4. "Thrift Store Oil Painting",
  5. "Boxes of Old Comic Books",
  6. "Second-Hand Hot Plate",
  7. "Beer Cooler",
  8. "Free Mattress",
  9. "Gigantic Chess Set",
  10. "UltraDance Karaoke Machine",
  11. "Cupcake Treadmill",
  12. "Beer Pong Table",
  13. "Padded Weight Bench",
  14. "Internet-Connected Laptop",
  15. "Sous Vide Laboratory",
  16. "Programmable Blender",
  17. "Sensory Deprivation Tank",
  18. "Fruit-Smashing Robot",
  19. "ManCave™ Sports Bar Set",
  20. "Couch and Flatscreen",
  21. "Kegerator",
  22. "Fine Upholstered Dining Table Set",
  23. "Whiskeybed",
  24. "High-End Home Workout System",
  25. "Complete Classics Library",
  26. "Ultimate Retro Game Console",
  27. "Omnipot",
  28. "Fully-Stocked Wet Bar",
  29. "Four-Poster Bed"
  30. };
  31.  
  32. string [27] leprecondoDescriptions = {
  33. "Boosts Muscle stats per fight and increases Muscle by 20%.",
  34. "Boosts Mysticality stats per fight and increases Mysticality by 20%.",
  35. "Boosts Moxie stats per fight and increases Moxie by 20%.",
  36. "Provides various food items.",
  37. "Provides various booze items.",
  38. "Gives +25% combat initiative.",
  39. "Boosts Muscle and HP, and grants mental stimulation benefits.",
  40. "Boosts Familiar Weight and Item Drop bonuses.",
  41. "Provides Familiar Weight and XP bonuses, and gives cupcakes.",
  42. "Provides booze and a table tennis ball.",
  43. "Boosts Muscle stats and can provide sleep effects.",
  44. "Boosts Mysticality and Moxie stats per fight.",
  45. "Boosts MP and Meat drop bonuses, and provides food.",
  46. "Boosts MP and Meat drop bonuses, and provides booze.",
  47. "Boosts Mysticality and Spell Damage, and improves MP regen.",
  48. "Boosts Moxie and Ranged Damage, and provides fruit.",
  49. "Provides darts and booze.",
  50. "Boosts Familiar Weight and XP bonuses.",
  51. "Provides food and booze.",
  52. "Provides food and improves HP/MP regen.",
  53. "Provides whiskey and sleep bonuses.",
  54. "Provides workout-related boosts.",
  55. "Provides crafting-related buffs.",
  56. "Provides minor entertainment benefits.",
  57. "Provides food bonuses.",
  58. "Provides high-end cocktails.",
  59. "Provides significant sleep bonuses."
  60. };
  61.  
  62. if (get_property("_leprecondoRearrangements") == "3") {
  63. print("You've already rearranged your Leprecondo furniture as much as possible in one day.");
  64. exit;
  65. }
  66.  
  67. string[int] availableEquipment;
  68. string discovered = get_property("leprecondoDiscovered");
  69. availableEquipment = split_string(discovered, ",");
  70.  
  71. print("Available equipment:");
  72. foreach index, theString in availableEquipment {
  73. print(theString);
  74. }
  75.  
  76. // Sort the items list randomly
  77. sort availableEquipment by random(10000000);
  78.  
  79. // Select the first four items
  80. string makeString = "";
  81. for i from 0 to 3 {
  82. makeString += "&r" + i + "=" + availableEquipment[i];
  83. int itemIndex = to_int(availableEquipment[i]) - 1;
  84. print("Selected: " + leprecondoItems[itemIndex] + " - " + leprecondoDescriptions[itemIndex]);
  85. }
  86.  
  87. print("Final URL is choice.php?pwd&option=1&whichchoice=1556" + makeString);
  88. // See https://kolmafia.us/threads/automating-the-leprecondo.30422
  89. buffer page = visit_url("inv_use.php?whichitem="+to_int($item[Leprecondo]));
  90. visit_url("choice.php?pwd&option=1&whichchoice=1556" + makeString, true);
  91. }
  92.  
Tags: Kol ash kolmafia
Advertisement
Add Comment
Please, Sign In to add comment