Back to "snippet" tags

Search Multiple Vendors for Item by Brozan (Syal)

Related: Snippet

1clearignore
2
3removelist container_graphic_ids
4createlist container_graphic_ids
5pushlist 'container_graphic_ids' 3705
6pushlist 'container_graphic_ids' 2448
7pushlist 'container_graphic_ids' 5402
8pushlist 'container_graphic_ids' 2472
9pushlist 'container_graphic_ids' 2473
10pushlist 'container_graphic_ids' 2474
11pushlist 'container_graphic_ids' 2475
12pushlist 'container_graphic_ids' 2476
13pushlist 'container_graphic_ids' 2477
14pushlist 'container_graphic_ids' 2480
15pushlist 'container_graphic_ids' 2481
16pushlist 'container_graphic_ids' 2482
17pushlist 'container_graphic_ids' 3701
18pushlist 'container_graphic_ids' 3702
19pushlist 'container_graphic_ids' 3704
20pushlist 'container_graphic_ids' 3712
21
22while not dead
23    hotkey 'Next Monster Target'
24    setvar! myLittleStinkyVar lasttarget 
25    dclick lasttarget
26    wait 600
27    #Change this to what you are searching for - first any is hue
28    while findtype 24434  myLittleStinkyVar any any any as itemFound
29        sysmsg 'Item found!' 44
30        @setvar currentItem itemFound       
31        #this is the part that buys it
32        menu itemFound 0
33        #Adjust this to your wait time to click buy
34        wait 2000
35        @ignore itemFound
36    endwhile
37    foreach searchContainer in 'container_graphic_ids'
38        while findtype searchContainer myLittleStinkyVar as foundContainer
39            dclick foundContainer
40            wait 600
41            #Change this to what you are searching for - first any is hue for aspect stuff
42            while findtype 24434  myLittleStinkyVar any any any as itemFound
43                sysmsg 'Item found!' 44
44                @setvar currentItem itemFound       
45                #this is the part that buys it
46                menu itemFound 0
47                #Adjust this to your wait time to click buy
48                wait 2000
49                @ignore itemFound
50            endwhile
51            @ignore foundContainer
52        endwhile
53    endfor
54endwhile