Advertisement
kolpastebin

Fulfill 70s quest.ash

Aug 2nd, 2016
251
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.94 KB | None | 0 0
  1. void main()
  2. {
  3. if (!get_property("hotAirportAlways").to_boolean() && !get_property("_hotAirportToday").to_boolean())
  4. return;
  5. string [int][int] choice_group_string = visit_url("place.php?whichplace=airport_hot&action=airport4_questhub").group_string("<td valign=center><b>([^<]*)</b>&nbsp;&nbsp;&nbsp;</td><td valign=center>proof: <img style='vertical-align: middle' class=hand src='[^']*' onclick='descitem.[0-9]*.' alt=\"[^\"]*\" title=\"[^\"]*\">([^<]*)</td>");
  6.  
  7. int [string] seen_options;
  8. foreach key in choice_group_string
  9. {
  10. seen_options[choice_group_string[key][2]] = key + 1;
  11. }
  12.  
  13. if (seen_options.count() == 0)
  14. return;
  15.  
  16. print_html("seen_options = " + seen_options.to_json());
  17.  
  18. //√New Age healing crystal (5)
  19. //√gooey lava globs (5)
  20. //√SMOOCH bottlecap
  21. //√smooth velvet bra (3)
  22. int option_picked = -1;
  23. if (seen_options contains "New Age healing crystal (5)")
  24. {
  25. option_picked = seen_options["New Age healing crystal (5)"];
  26. cli_execute("acquire 5 New Age healing crystal");
  27. }
  28. else if (seen_options contains "gooey lava globs (5)" && $item[gooey lava globs].mall_price() < 500)
  29. {
  30. option_picked = seen_options["gooey lava globs (5)"];
  31. cli_execute("acquire 5 gooey lava globs");
  32. }
  33. else if (seen_options contains "SMOOCH bracers (3)" && $item[Superheated metal].mall_price() < 500)
  34. {
  35. option_picked = seen_options["SMOOCH bracers (3)"];
  36. cli_execute("acquire 4 smooch bracers");
  37. }
  38. else if (seen_options contains "SMOOCH bottlecap" && $item[SMOOCH bottlecap].mall_price() < 2000)
  39. {
  40. option_picked = seen_options["SMOOCH bottlecap"];
  41. cli_execute("acquire 1 SMOOCH bottlecap");
  42. }
  43. else if (seen_options contains "smooth velvet bra (3)" && $item[unsmoothed velvet].mall_price() < 1000)
  44. {
  45. option_picked = seen_options["smooth velvet bra (3)"];
  46. cli_execute("acquire 4 smooth velvet bra");
  47. }
  48. if (option_picked > 0)
  49. visit_url("choice.php?whichchoice=1093&option= " + option_picked);
  50. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement