Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void main() {
- string [27] leprecondoItems = {
- "Buckets of Concrete",
- "Thrift Store Oil Painting",
- "Boxes of Old Comic Books",
- "Second-Hand Hot Plate",
- "Beer Cooler",
- "Free Mattress",
- "Gigantic Chess Set",
- "UltraDance Karaoke Machine",
- "Cupcake Treadmill",
- "Beer Pong Table",
- "Padded Weight Bench",
- "Internet-Connected Laptop",
- "Sous Vide Laboratory",
- "Programmable Blender",
- "Sensory Deprivation Tank",
- "Fruit-Smashing Robot",
- "ManCave™ Sports Bar Set",
- "Couch and Flatscreen",
- "Kegerator",
- "Fine Upholstered Dining Table Set",
- "Whiskeybed",
- "High-End Home Workout System",
- "Complete Classics Library",
- "Ultimate Retro Game Console",
- "Omnipot",
- "Fully-Stocked Wet Bar",
- "Four-Poster Bed"
- };
- string [27] leprecondoDescriptions = {
- "Boosts Muscle stats per fight and increases Muscle by 20%.",
- "Boosts Mysticality stats per fight and increases Mysticality by 20%.",
- "Boosts Moxie stats per fight and increases Moxie by 20%.",
- "Provides various food items.",
- "Provides various booze items.",
- "Gives +25% combat initiative.",
- "Boosts Muscle and HP, and grants mental stimulation benefits.",
- "Boosts Familiar Weight and Item Drop bonuses.",
- "Provides Familiar Weight and XP bonuses, and gives cupcakes.",
- "Provides booze and a table tennis ball.",
- "Boosts Muscle stats and can provide sleep effects.",
- "Boosts Mysticality and Moxie stats per fight.",
- "Boosts MP and Meat drop bonuses, and provides food.",
- "Boosts MP and Meat drop bonuses, and provides booze.",
- "Boosts Mysticality and Spell Damage, and improves MP regen.",
- "Boosts Moxie and Ranged Damage, and provides fruit.",
- "Provides darts and booze.",
- "Boosts Familiar Weight and XP bonuses.",
- "Provides food and booze.",
- "Provides food and improves HP/MP regen.",
- "Provides whiskey and sleep bonuses.",
- "Provides workout-related boosts.",
- "Provides crafting-related buffs.",
- "Provides minor entertainment benefits.",
- "Provides food bonuses.",
- "Provides high-end cocktails.",
- "Provides significant sleep bonuses."
- };
- if (get_property("_leprecondoRearrangements") == "3") {
- print("You've already rearranged your Leprecondo furniture as much as possible in one day.");
- exit;
- }
- string[int] availableEquipment;
- string discovered = get_property("leprecondoDiscovered");
- availableEquipment = split_string(discovered, ",");
- print("Available equipment:");
- foreach index, theString in availableEquipment {
- print(theString);
- }
- // Sort the items list randomly
- sort availableEquipment by random(10000000);
- // Select the first four items
- string makeString = "";
- for i from 0 to 3 {
- makeString += "&r" + i + "=" + availableEquipment[i];
- int itemIndex = to_int(availableEquipment[i]) - 1;
- print("Selected: " + leprecondoItems[itemIndex] + " - " + leprecondoDescriptions[itemIndex]);
- }
- print("Final URL is choice.php?pwd&option=1&whichchoice=1556" + makeString);
- // See https://kolmafia.us/threads/automating-the-leprecondo.30422
- buffer page = visit_url("inv_use.php?whichitem="+to_int($item[Leprecondo]));
- visit_url("choice.php?pwd&option=1&whichchoice=1556" + makeString, true);
- }
Advertisement
Add Comment
Please, Sign In to add comment