Advertisement
Guest User

Kolmafia Barf Mountain Farming Bot Script

a guest
Oct 6th, 2015
266
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 3.28 KB | None | 0 0
  1. import <zlib.ash>
  2.  
  3. void main() {
  4.     // Log run on server
  5.     visit_url( "http://www.[logging_server]...?name="+my_name()+"&meat="+my_meat()+"&cmeat="+my_closet_meat() );
  6.  
  7.     // Summon Daily Clipart Items
  8.     cli_execute("create 1 ultrafondue");
  9.     cli_execute("create 1 bucket of wine");
  10.     cli_execute("create 1 bucket of wine");
  11.    
  12.     // (Near-)Optimal diets from http://www.houeland.com/kol/diets (may change)
  13.     if (my_fullness()==0) {
  14.         cli_execute("acquire 3 spectral pickle");
  15.         cli_execute("acquire 1 ultrafondue");
  16.  
  17.         cli_execute("acquire 1 milk of magnesium");
  18.         cli_execute("use 1 milk of magnesium");
  19.  
  20.         cli_execute("eat 3 spectral pickle");
  21.         cli_execute("eat 1 ultrafondue");
  22.     }
  23.     if (my_inebriety()==0) {
  24.         cli_execute("acquire 9 plain old beer");
  25.         cli_execute("make 9 Paint A Vulgar Pitcher");
  26.         cli_execute("acquire 1 pumpkin beer");
  27.         cli_execute("cast 2 ode to booze");
  28.  
  29.         // Beer Barrel Polka
  30.         visit_url( "choice.php?whichchoice=1100&pwd&option=4" );
  31.  
  32.         cli_execute("drink 9 Paint A Vulgar Pitcher");
  33.         cli_execute("drink 1 pumpkin beer");
  34.     }
  35.     if (my_spleen_use()==0) {
  36.         cli_execute("acquire 5 prismatic wad");
  37.         cli_execute("chew 5 prismatic wad");
  38.     }
  39.    
  40.     // Daily Deck of Card draws
  41.     cli_execute("play Mickey");
  42.     cli_execute("play Island");
  43.     cli_execute("play Recall");
  44.    
  45.     // Collect 3 FunFunds from Maintenance Tunnels
  46.     visit_url( "place.php?whichplace=airport_stench&action=airport3_tunnels" );
  47.     visit_url( "choice.php?whichchoice=1067&option=6" );
  48.    
  49.     // Collect 1000 meat from Chateau
  50.     visit_url( "place.php?whichplace=chateau&action=chateau_desk1" );
  51.    
  52.     // Collect Volcoin
  53.     cli_execute("outfit Velvet");
  54.     visit_url( "place.php?whichplace=airport_hot&action=airport4_zone1" );
  55.     visit_url( "choice.php?whichchoice=1090&option=7" );   
  56.  
  57.     // Set adventure farming mood
  58.     cli_execute("mood clear");
  59.     if (have_skill($skill[The Polka of Plenty])) cli_execute("trigger lose_effect, Polka of Plenty, cast 1 Polka of Plenty");
  60.     if (have_skill($skill[Fat Leon's Phat Loot Lyric])) cli_execute("trigger lose_effect, Fat Leon's Phat Loot Lyric, cast 1 Fat Leon's Phat Loot Lyric");
  61.     if (have_skill($skill[Leash of Linguini])) cli_execute("trigger lose_effect, Leash of Linguini, cast 1 Leash of Linguini");
  62.     if (have_skill($skill[Empathy of the Newt])) cli_execute("trigger lose_effect, Empathy, cast 1 Empathy of the Newt");
  63.     cli_execute("trigger lose_effect, How to Scam Tourists, use 1 How to Avoid Scams");
  64.     cli_execute("trigger lose_effect, Wasabi Sinuses, use 1 Knob Goblin nasal spray");
  65.     cli_execute("trigger lose_effect, Heavy Petting, use 1 Knob Goblin pet-buffing spray");
  66.     cli_execute("trigger lose_effect, Merry Smithsness, use 1 Flaskfull of Hollow");
  67.    
  68.     cli_execute("outfit Farming Gear");
  69.     while (my_adventures()>0) {
  70.         adventure(1, $location[Barf Mountain]);
  71.         // Eat 1-fullness food, if granted extra fullness from Pantsgiving
  72.         if (fullness_limit()-my_fullness()>0) {}
  73.             cli_execute("eat 1 dinner roll");
  74.         }
  75.     }
  76.    
  77.     // Nightcap
  78.     cli_execute("outfit Resting Gear");
  79.     cli_execute("cast 1 ode to booze");
  80.     cli_execute("drink 1 bucket of wine");
  81.    
  82.     // Burn remaining mana
  83.     cli_execute("cast * Summon Party Favor");
  84.    
  85.     // Log end of run on server
  86.     visit_url( "http://www.[logging_server]...?name="+my_name()+"&meat="+my_meat()+"&cmeat="+my_closet_meat() );
  87. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement