Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void main()
- {
- if (!get_property("hotAirportAlways").to_boolean() && !get_property("_hotAirportToday").to_boolean())
- return;
- string [int][int] choice_group_string = visit_url("place.php?whichplace=airport_hot&action=airport4_questhub").group_string("<td valign=center><b>([^<]*)</b> </td><td valign=center>proof: <img style='vertical-align: middle' class=hand src='[^']*' onclick='descitem.[0-9]*.' alt=\"[^\"]*\" title=\"[^\"]*\">([^<]*)</td>");
- int [string] seen_options;
- foreach key in choice_group_string
- {
- seen_options[choice_group_string[key][2]] = key + 1;
- }
- if (seen_options.count() == 0)
- return;
- print_html("seen_options = " + seen_options.to_json());
- //√New Age healing crystal (5)
- //√gooey lava globs (5)
- //√SMOOCH bottlecap
- //√smooth velvet bra (3)
- int option_picked = -1;
- if (seen_options contains "New Age healing crystal (5)")
- {
- option_picked = seen_options["New Age healing crystal (5)"];
- cli_execute("acquire 5 New Age healing crystal");
- }
- else if (seen_options contains "gooey lava globs (5)" && $item[gooey lava globs].mall_price() < 500)
- {
- option_picked = seen_options["gooey lava globs (5)"];
- cli_execute("acquire 5 gooey lava globs");
- }
- else if (seen_options contains "SMOOCH bracers (3)" && $item[Superheated metal].mall_price() < 500)
- {
- option_picked = seen_options["SMOOCH bracers (3)"];
- cli_execute("acquire 4 smooch bracers");
- }
- else if (seen_options contains "SMOOCH bottlecap" && $item[SMOOCH bottlecap].mall_price() < 2000)
- {
- option_picked = seen_options["SMOOCH bottlecap"];
- cli_execute("acquire 1 SMOOCH bottlecap");
- }
- else if (seen_options contains "smooth velvet bra (3)" && $item[unsmoothed velvet].mall_price() < 1000)
- {
- option_picked = seen_options["smooth velvet bra (3)"];
- cli_execute("acquire 4 smooth velvet bra");
- }
- if (option_picked > 0)
- visit_url("choice.php?whichchoice=1093&option= " + option_picked);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement