Example: Dump and Restock One Button by Brozan (Syal)
Related: Snippet
1clearignore
2
3dress 'bow'
4//open tome chest
5dclick 0x5B7C7BBD
6wait 600
7
8//dump into all tomes
9while findtype 29104 0x5B7C7BBD as found
10 //overhead "Book"
11 menu found 0
12 wait 50
13 ignore found
14endwhile
15clearignore
16
17//repair
18dclick 0x61F237E9
19wait 600
20
21overhead "Starting Organizers"
22organizer 1
23while queued
24 wait 1000
25endwhile
26organizer 2
27while queued
28 wait 1000
29endwhile
30organizer 3
31while queued
32 wait 1000
33endwhile
34organizer 4
35while queued
36 wait 1000
37endwhile
38organizer 5
39while queued
40 wait 1000
41endwhile
42organizer 6
43while queued
44 wait 1000
45endwhile
46organizer 7
47while queued
48 wait 1000
49endwhile
50organizer 8
51while queued
52 wait 1000
53endwhile
54organizer 9
55while queued
56 wait 1000
57endwhile
58wait 1000
59
60while findtype "cooked fish" as found
61 dclicktype "dagger"
62 wft 2500
63 target found
64 #wait 400
65 ignore found
66endwhile
67while findtype "fish" as found
68 dclicktype "dagger"
69 wft 2500
70 target found
71 #wait 400
72 ignore found
73endwhile
74
75//dump all supply shelf
76if findtype 44997 ground any any 2 as found
77 menu found 0
78 wft 2500
79 target self
80 menu found 1
81 gumpclose 3232825965
82 if skill "Magery" > 50
83 if skill "Meditation" >= 50 or skill "Evaluating Intelligence" >= 50
84 while counttype 29012 backpack < 35
85 cast "create food"
86 wait 1000
87 if mana < 70 and insysmsg "use another magic"
88 dclicktype 29012
89 endif
90 menu found 1
91 if insysmsg "cheese"
92 break
93 endif
94 endwhile
95 endif
96 endif
97endif
98overhead "Done with shelf"
99gumpclose 3232825965
100
101//dump all resources
102dclick 0x4004288C
103waitforgump 1859005118
104gumpresponse 2
105waitfortarget
106waitforgump 1859005118
107target 'self'
108wait 500
109gumpclose 1859005118
110wait 500
111
112clearignore
113//dump pack llama
114while findtype 292 ground any any 2 as found
115 overhead 'Packhorse dump routine' 55
116
117 dclick found
118 wait 500
119 //dump all supply shelf
120 menu 0x4083AF65 0
121 waitfortarget
122 target found
123 wait 500
124 gumpclose
125 wait 500
126
127 //dump all resources
128 dclick 0x407F8ACB
129 waitforgump 1859005118
130 gumpresponse 2
131 waitfortarget
132 waitforgump 1859005118
133 target found
134 wait 500
135 gumpclose
136 wait 500
137
138 #dump gold
139
140
141 while findtype 3821 'found' as 'myGold'
142 lift myGold 60000
143 drop '0x40820133' -1 -1 0
144 wait 600
145 endwhile
146
147 ignore found
148endwhile
149
150//dump pack horse
151while findtype 291 ground any any 2 as found
152 overhead 'Packhorse dump routine' 55
153
154 dclick found
155 wait 500
156 //dump all supply shelf
157 menu 0x4083AF65 0
158 waitfortarget
159 target found
160 wait 500
161 gumpclose
162 wait 500
163
164 //dump all resources
165 dclick 0x407F8ACB
166 waitforgump 1859005118
167 gumpresponse 2
168 waitfortarget
169 waitforgump 1859005118
170 target found
171 wait 500
172 gumpclose
173 wait 500
174
175 #dump gold
176
177
178 while findtype 3821 'found' as 'myGold'
179 lift myGold 60000
180 drop '0x40820133' -1 -1 0
181 wait 600
182 endwhile
183
184 ignore found
185endwhile
186
187gumpclose 3232825965
188
189//script 'Bag Dumper'
190wait 500
191menu 0x465CE02E 1
192wait 500
193menu 0x407F8ACB 1
194
195clearignore