Advertisement
kolpastebin

LOV Tunnel.ash

Mar 13th, 2017
246
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.63 KB | None | 0 0
  1. //LOV Earrings, LOV Epaulettes, or LOV Eardigan
  2. item __equipment_wanted = $item[LOV Earrings]; //earrings for +meat
  3. effect __buff_wanted = $effect[Wandering Eye Surgery]; //+50% item
  4. item __item_to_farm = $item[none]; //None means it'll pick all three equally.
  5.  
  6. static
  7. {
  8. int [item] __items_to_choice_ids;
  9. __items_to_choice_ids[$item[LOV Enamorang]] = 1;
  10. __items_to_choice_ids[$item[LOV Emotionizer]] = 2;
  11. __items_to_choice_ids[$item[LOV Extraterrestrial Chocolate]] = 3;
  12. }
  13.  
  14. void runTunnel(item equipment, effect buff, item gift_item)
  15. {
  16. string page_text = visit_url("place.php?whichplace=town_wrong&action=townwrong_tunnel");
  17. if (page_text.contains_text("You've already gone through the Tunnel once today"))
  18. {
  19. run_choice(2);
  20. return;
  21. }
  22. run_choice(1);
  23. run_choice(1);
  24. visit_url("choice.php");
  25. if (equipment == $item[LOV Eardigan])
  26. run_choice(1);
  27. else if (equipment == $item[LOV Epaulettes])
  28. run_choice(2);
  29. else //earrings
  30. run_choice(3);
  31. run_choice(1);
  32. visit_url("choice.php");
  33. if (buff == $effect[Lovebotamy])
  34. run_choice(1);
  35. else if (buff == $effect[Open Heart Surgery])
  36. run_choice(2);
  37. else
  38. run_choice(3);
  39. run_choice(1);
  40. visit_url("choice.php");
  41. run_choice(__items_to_choice_ids[gift_item]);
  42. }
  43.  
  44.  
  45. void main()
  46. {
  47. //run init + tiny black hole for pickpocket chance against third
  48. //abort("Fix this. Run_combat()?");
  49. familiar previous_familiar = my_familiar();
  50. if ($familiar[Oily Woim].have_familiar())
  51. use_familiar($familiar[oily woim]);
  52. if ($skill[springy fusilli].have_skill() && $effect[springy fusilli].have_effect() == 0)
  53. cli_execute("cast springy fusilli");
  54.  
  55. cli_execute("outfit save Backup");
  56. cli_execute("outfit birthday suit"); //remove attackables?
  57.  
  58. string maximise_string = "1.0 init 0.01 pickpocket chance -equip helps-you-sleep -tie -equip buddy bjorn"; //avoid bjorn attack
  59. if (my_primestat() != $stat[moxie])
  60. maximise_string += " +equip tiny black hole";
  61. cli_execute("maximize " + maximise_string);
  62.  
  63.  
  64.  
  65. //Now, which one do we want?
  66. //LOV Enamorang is an extra copy.
  67. //LOV Emotionizer is amazing chat effect.
  68. //LOV Extraterrestrial Chocolate is adventures.
  69. item chosen_item = $item[none];
  70. foreach it in $items[LOV Enamorang,LOV Emotionizer,LOV Extraterrestrial Chocolate]
  71. {
  72. if (chosen_item == $item[none] || chosen_item.available_amount() > it.available_amount())
  73. chosen_item = it;
  74. }
  75. if (__item_to_farm != $item[none] && __items_to_choice_ids contains __item_to_farm)
  76. chosen_item = __item_to_farm;
  77.  
  78. runTunnel(__equipment_wanted, __buff_wanted, chosen_item);
  79.  
  80. use_familiar(previous_familiar);
  81. cli_execute("outfit Backup");
  82. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement