Vendor Dump to Logs by Brozan (Syal)
Description: Dumps all vendors contents to logs
1clearignore
2sysmsg "START CATALOGUE"
3#Populate container lists
4removelist 'container_graphic_ids'
5createlist 'container_graphic_ids'
6pushlist 'container_graphic_ids' 3705
7pushlist 'container_graphic_ids' 2448
8pushlist 'container_graphic_ids' 5402
9pushlist 'container_graphic_ids' 2472
10pushlist 'container_graphic_ids' 2473
11pushlist 'container_graphic_ids' 2474
12pushlist 'container_graphic_ids' 2475
13pushlist 'container_graphic_ids' 2476
14pushlist 'container_graphic_ids' 2477
15pushlist 'container_graphic_ids' 2480
16pushlist 'container_graphic_ids' 2481
17pushlist 'container_graphic_ids' 2482
18pushlist 'container_graphic_ids' 3701
19pushlist 'container_graphic_ids' 3702
20pushlist 'container_graphic_ids' 3704
21pushlist 'container_graphic_ids' 3712
22
23
24#Populate Items we care about
25removelist 'item_graphic_ids'
26createlist 'item_graphic_ids'
27pushlist 'item_graphic_ids' 'rune'
28pushlist 'item_graphic_ids' 'tray'
29pushlist 'item_graphic_ids' 'bottle'
30pushlist 'item_graphic_ids' 'full jars'
31pushlist 'item_graphic_ids' 'deed'
32pushlist 'item_graphic_ids' 'wall shelf'
33pushlist 'item_graphic_ids' 'crate'
34pushlist 'item_graphic_ids' 5901
35pushlist 'item_graphic_ids' 17087
36pushlist 'item_graphic_ids' 8032
37pushlist 'item_graphic_ids' 8033
38pushlist 'item_graphic_ids' 8031
39pushlist 'item_graphic_ids' 8035
40pushlist 'item_graphic_ids' 8029
41pushlist 'item_graphic_ids' 8034
42pushlist 'item_graphic_ids' 8037
43pushlist 'item_graphic_ids' 8041
44pushlist 'item_graphic_ids' 8042
45pushlist 'item_graphic_ids' 8039
46pushlist 'item_graphic_ids' 8038
47pushlist 'item_graphic_ids' 42694
48pushlist 'item_graphic_ids' 3657
49pushlist 'item_graphic_ids' 29774
50pushlist 'item_graphic_ids' 28883
51pushlist 'item_graphic_ids' 28885
52pushlist 'item_graphic_ids' 29773
53pushlist 'item_graphic_ids' 28879
54pushlist 'item_graphic_ids' 12215
55pushlist 'item_graphic_ids' 2597
56pushlist 'item_graphic_ids' 5362
57pushlist 'item_graphic_ids' 12686
58pushlist 'item_graphic_ids' 5356
59pushlist 'item_graphic_ids' 8455
60pushlist 'item_graphic_ids' 29348
61pushlist 'item_graphic_ids' 19239
62pushlist 'item_graphic_ids' 19227
63pushlist 'item_graphic_ids' 29103
64pushlist 'item_graphic_ids' 29863
65pushlist 'item_graphic_ids' 42692
66pushlist 'item_graphic_ids' 5363
67pushlist 'item_graphic_ids' 7127
68pushlist 'item_graphic_ids' 29447
69pushlist 'item_graphic_ids' 5127
70pushlist 'item_graphic_ids' 7109
71pushlist 'item_graphic_ids' 3908
72pushlist 'item_graphic_ids' 3897
73pushlist 'item_graphic_ids' 11552
74pushlist 'item_graphic_ids' 3718
75pushlist 'item_graphic_ids' 15178
76pushlist 'item_graphic_ids' 39860
77pushlist 'item_graphic_ids' 5359
78pushlist 'item_graphic_ids' 49711
79pushlist 'item_graphic_ids' 28888
80pushlist 'item_graphic_ids' 3897
81pushlist 'item_graphic_ids' 3985
82pushlist 'item_graphic_ids' 5356
83pushlist 'item_graphic_ids' 5981
84pushlist 'item_graphic_ids' 27611
85pushlist 'item_graphic_ids' 6464
86pushlist 'item_graphic_ids' 3530
87pushlist 'item_graphic_ids' 3836
88pushlist 'item_graphic_ids' 22336
89pushlist 'item_graphic_ids' 3843
90pushlist 'item_graphic_ids' 29025
91pushlist 'item_graphic_ids' 45285
92pushlist 'item_graphic_ids' 3842
93pushlist 'item_graphic_ids' 8826
94pushlist 'item_graphic_ids' 8901
95pushlist 'item_graphic_ids' 3834
96pushlist 'item_graphic_ids' 8787
97pushlist 'item_graphic_ids' 8786
98pushlist 'item_graphic_ids' 29036
99pushlist 'item_graphic_ids' 8012
100pushlist 'item_graphic_ids' 5903
101pushlist 'item_graphic_ids' 48407
102pushlist 'item_graphic_ids' 17686
103pushlist 'item_graphic_ids' 43167
104pushlist 'item_graphic_ids' 29030
105pushlist 'item_graphic_ids' 19235
106pushlist 'item_graphic_ids' 16898
107pushlist 'item_graphic_ids' 8788
108pushlist 'item_graphic_ids' 7107
109pushlist 'item_graphic_ids' 20495
110pushlist 'item_graphic_ids' 3827
111pushlist 'item_graphic_ids' 5356
112pushlist 'item_graphic_ids' 3920
113pushlist 'item_graphic_ids' 3713
114pushlist 'item_graphic_ids' 5117
115pushlist 'item_graphic_ids' 5042
116pushlist 'item_graphic_ids' 3721
117pushlist 'item_graphic_ids' 3762
118pushlist 'item_graphic_ids' 22187
119pushlist 'item_graphic_ids' 5078
120pushlist 'item_graphic_ids' 5187
121pushlist 'item_graphic_ids' 5049
122pushlist 'item_graphic_ids' 3568
123pushlist 'item_graphic_ids' 3911
124pushlist 'item_graphic_ids' 51100
125pushlist 'item_graphic_ids' 29048
126pushlist 'item_graphic_ids' 45085
127pushlist 'item_graphic_ids' 27612
128pushlist 'item_graphic_ids' 45085
129pushlist 'item_graphic_ids' 6264
130pushlist 'item_graphic_ids' 19232
131
132
133clearignore
134while not dead
135 @hotkey 'Next Monster Target'
136 wait 350
137 @setvar! 'lastserial' lasttarget
138 if noto 'lastserial' = invulnerable
139 if findtype 3701 'lastserial' as foundBackpack
140
141 sysmsg 'New Vendor'
142 dclick 'foundBackpack'
143 @ignore 'foundBackpack'
144 wait 250
145 #Now we dig
146 #List items in top layer
147 foreach searchItem in 'item_graphic_ids'
148 #Search through list
149 while findtype searchItem 'foundBackpack' as foundItem
150 #found an item, display it to log
151 @getlabel 'foundItem' foundItemLabel
152 sysmsg foundItemLabel 33
153 @ignore foundItem
154 endwhile
155 endfor
156 wait 250
157
158 #Start container part
159 foreach searchContainer in 'container_graphic_ids'
160 while findtype searchContainer 'foundBackpack' as foundContainer
161 dclick foundContainer
162 wait 250
163 @getlabel 'foundContainer' foundContainerLabel
164 #output container label for bulk sells
165 sysmsg foundContainerLabel 33
166
167 #container is open, now search it
168 foreach searchItem in 'item_graphic_ids'
169 #Search through list
170 while findtype searchItem 'foundContainer' as foundItem
171 #found an item, display it to log
172 @getlabel 'foundItem' foundItemLabel
173 sysmsg foundItemLabel 33
174 @ignore foundItem
175 endwhile
176 endfor
177 wait 250
178 @ignore foundContainer
179 endwhile
180 endfor
181 else
182 overhead 'DONE CATALOGUE'
183 stop
184 endif
185 endif
186endwhile