Back to "ali" tags

Ez Vendor Gold Collection by alistormccoy

1// Ez Vendor Gold Collection
2
3// Uses house sign to access your vendors and opens the
4// Collect Gold gump of the vendor with the highest amount of gold held.
5// Collect the gold off your vendor and simply hit your hotkey again to go to the next.
6// By default it searches for the closest house sign to your character
7// and uses that, but you can hardcode the sign serial below if you prefer.
8
9@setvar! "houseSign" 0xFFFFFFFF
10
11if "houseSign" == 0xFFFFFFFF
12    if findtype "sign" ground any any 2 as "autoFind"
13        @setvar! "houseSign" "autoFind"
14    elseif findtype "sign" ground any any 4 as "autoFind"
15        @setvar! "houseSign" "autoFind"
16    elseif findtype "sign" ground any any 6 as "autoFind"
17        @setvar! "houseSign" "autoFin0d"
18    elseif findtype "sign" ground any any 12 as "autoFind"
19        @setvar! "houseSign" "autoFind"
20    elseif findtype "sign" ground any any 18 as "autoFind"
21        @setvar! "houseSign" "autoFind"
22    else
23        overhead "No house sign found! Halting..." 1159
24        stop
25    endif
26endif
27
28if gumpexists 1957446601
29    gumpclose 1957446601
30endif
31if gumpexists 725496535
32    gumpclose 725496535
33endif
34
35if not gumpexists 2490201206
36    dclick "houseSign"
37    createtimer "globalCD"
38    waitforgump 2490201206 1000
39endif
40
41gumpresponse 3 2490201206
42waitforgump 2490201206 1000
43if not gumpexists 2490201206
44    overhead "Something went awry" 1159
45    stop
46endif
47
48//the next gump response opens the vendor backpack so gotta wait out global cooldown
49while timerexists "globalCD" and timer "globalCD" < 600
50    wait 50
51endwhile
52gumpresponse 20 2490201206
53
54waitforgump 1957446601 1000
55gumpresponse 6 1957446601