Walking miner with multiple rails by Brozan (Syal)
Description: Assumes you have 60 magery and 100 tracking. Cycle pack horses if you have less than 4
1#Script by Brozan
2#If you are using it you know
3# what it is designed for
4
5###
6# YOU MUST SET UP Organizer 15
7# To dump ore
8# Before you Run This
9# Agents->Organizer 15->Add Target
10# Then target a pile of ore
11###
12
13#Needs magery 60
14#Have a marked recall rune in pack
15# and regs
16
17#Need tracking turned on
18# and set to all hostile
19# not in houses/party/guild
20
21clearsysmsg
22@createlist packAnimals
23
24#First Run Routine
25if not timerexists "miner"
26 #Assign pack animals to variables
27 #On first launch of UO
28 #Tracking Routine - Turn it on if we have not yet
29 while not insysmsg "You will receive"
30 hotkey 'Tracking'
31 wait 500
32 gumpresponse 6 4267467659
33 wait 550
34 gumpclose 4267467659
35 endwhile
36 if list packAnimals <= 0
37 @clearlist packAnimals
38 @pushlist 'packAnimals' "p1"
39 @pushlist 'packAnimals' "p2"
40 @pushlist 'packAnimals' "p3"
41 @pushlist 'packAnimals' "p4"
42 endif
43 #We use this as a first run loop to set vars
44 overhead 'First Run!'
45 createtimer "miner"
46 settimer "miner" 1100
47 createtimer "aid time"
48 settimer "aid time" 12100
49 createtimer 'healpot time'
50 settimer "healpot time" 12100
51 createtimer 'anti pot spam'
52 settimer "anti pot spam" 12100
53 createtimer 'hostility'
54 settimer "hostility" 12100
55 # Setup pack variable
56 overhead 'If you have less than 4 pack animals'
57 overhead 'Just click the same ones for later animals'
58 wait 1000
59 overhead 'Select your pack1'
60 setvar! 'pack1'
61 wait 200
62 overhead 'Select your pack2'
63 setvar! 'pack2'
64 wait 200
65 overhead 'Select your pack3'
66 setvar! 'pack3'
67 wait 200
68 overhead 'Select your pack4'
69 setvar! 'pack4'
70 wait 200
71 overhead 'Select your escape rune/book'
72 setvar! 'escape'
73 wait 200
74 say 'all follow me'
75 overhead 'Make Sure Tracking is on!'
76 sysmsg 'Make Sure Tracking is on!'
77 wait 200
78 overhead 'Make Sure Tracking is on!'
79 sysmsg 'Make Sure Tracking is on!'
80 wait 200
81 overhead 'Make Sure Tracking is on!'
82 sysmsg 'Make Sure Tracking is on!'
83 wait 200
84endif
85
86#####Smart(ish) movement choser######
87@createlist moveList
88overhead 'Scissors->Move up/right'
89wait 255
90overhead 'Heal Pot->Move Up/Left'
91wait 255
92overhead 'Dagger->Move left/up'
93wait 255
94overhead 'Pick->Move left/down'
95wait 255
96overhead 'Book->Move down/left'
97wait 255
98overhead 'Pouch->Move right/down'
99wait 255
100overhead 'Backpack->Move right/North'
101wait 255
102setvar! 'moveQueuePicker'
103wait 250
104
105####Modify here if you want different movement options######
106#check label
107getlabel 'moveQueuePicker' 'seriallabel'
108if "scissors" in 'seriallabel'
109 overhead 'You chose moving up/right' 53
110 @clearlist moveList
111 for 4
112 @pushlist 'moveList' "up"
113 endfor
114 for 6
115 @pushlist 'moveList' "right"
116 endfor
117elseif "dagger" in 'seriallabel'
118 overhead 'You chose moving left/up' 53
119 @clearlist moveList
120 for 4
121 @pushlist 'moveList' "left"
122 endfor
123 for 6
124 @pushlist 'moveList' "up"
125 endfor
126elseif "Heal" in 'seriallabel'
127 overhead 'You chose moving up/left' 53
128 @clearlist moveList
129 for 4
130 @pushlist 'moveList' "up"
131 endfor
132 for 6
133 @pushlist 'moveList' "left"
134 endfor
135elseif "book" in 'seriallabel'
136 overhead 'You chose moving down/left' 53
137 @clearlist moveList
138 for 4
139 @pushlist 'moveList' "down"
140 endfor
141 for 6
142 @pushlist 'moveList' "left"
143 endfor
144elseif "pouch" in 'seriallabel'
145 overhead 'You chose moving down/right' 53
146 @clearlist moveList
147 for 6
148 @pushlist 'moveList' "right"
149 endfor
150 for 5
151 @pushlist 'moveList' "down"
152 endfor
153elseif "pick" in 'seriallabel'
154 overhead 'You chose moving left/down' 53
155 @clearlist moveList
156 for 4
157 @pushlist 'moveList' "left"
158 endfor
159 for 6
160 @pushlist 'moveList' "down"
161 endfor
162elseif "backpack" in 'seriallabel'
163 overhead 'You chose moving right/North' 53
164 @clearlist moveList
165 for 4
166 @pushlist 'moveList' "right"
167 endfor
168 for 6
169 @pushlist 'moveList' "north"
170 endfor
171else
172 overhead 'You broke something, restart script' 33
173endif
174
175while not dead
176
177 if insysmsg 'Now tracking'
178 overhead 'Ah shit!!!'
179 cast 'recall'
180 waitfortarget
181 target 'escape'
182 wait 500
183 while mana = maxmana
184 overhead "Recall failed"
185 cast 'recall'
186 waitfortarget
187 target 'escape'
188 wait 500
189 endwhile
190 stop
191 endif
192
193 overhead 'Love Tap!' 23
194 #Hit it once to start
195 hotkey 'use item in hand'
196 settimer "miner" 0
197 wait 1250
198
199 #######Mining Loop#######
200 while not insysmsg 'You do not see any'
201
202 ####### Heal Routine #######
203 # Healing Survival
204 if skill 'Healing' > 1
205 if insysmsg 'You begin applying the bandages'
206 settimer 'aid time' 0
207 endif
208 if hits < maxhits and timer 'aid time' > 10250
209 hotkey 'bandage self'
210 settimer 'aid time' 0
211 endif
212 endif
213 # Cure Survival
214 if poisoned 'self' and timer 'anti pot spam' > 1000
215 overhead 'Used: Cure Potion' 33
216 hotkey 'Drink Cure'
217 settimer 'anti pot spam' 0
218 endif
219 # Heal Potion
220 if hits < 55 and timer 'healpot time' > 10000 and timer 'anti pot spam' > 1000
221 overhead 'Used: Heal Potion' 33
222 hotkey 'Drink Heal'
223 settimer 'healpot time' 0
224 settimer 'anti pot spam' 0
225 endif
226
227
228 if insysmsg 'Now tracking'
229 overhead 'Ah shit!!!'
230 cast 'recall'
231 waitfortarget
232 target 'escape'
233 wait 500
234 while mana = maxmana
235 overhead "Recall failed"
236 cast 'recall'
237 waitfortarget
238 target 'escape'
239 wait 500
240 endwhile
241 stop
242 endif
243
244 #Weight check
245 if weight >= 365
246 overhead 'Too fat - restart'
247 break
248 endif
249
250 #Pick Check
251 if rhandempty
252 dclicktype '3718'
253 wait 600
254 endif
255
256 #Above loops more often, this is where we wait for mining timer between swings
257 if timer "miner" >= 1050
258 #wait 100
259 if insysmsg 'Harvesting is not'
260 overhead 'Cant harvest'
261 break
262 endif
263 if insysmsg 'recently travel'
264 overhead 'Just recalled'
265 break
266 endif
267 if insysmsg 'You have worn out your tool!'
268 break
269 endif
270
271
272 //captcha check
273 if not insysmsg "skill gain" and not insysmsg 'world is saving' and not insysmsg 'world will save' and not insysmsg 'World save complete' and not insysmsg 'You dig' and not insysmsg 'You loosen' and not insysmsg 'Distance to destination' and not insysmsg 'Now tracking'
274 //pause and check again
275 wait 250
276 if not insysmsg "skill gain" and not insysmsg 'world is saving' and not insysmsg 'world will save' and not insysmsg 'World save complete' and not insysmsg 'You dig' and not insysmsg 'You loosen' and not insysmsg 'Distance to destination' and not insysmsg 'Now tracking'
277 while not insysmsg "Captcha"
278 overhead 'Captcha break or Done!' 34
279 wait 1000
280 endwhile
281 endif
282 endif
283
284 #clearsysmsg
285 hotkey 'use item in hand'
286 settimer "miner" 0
287 wait 200
288 endif
289 endwhile
290
291 overhead 'Spot Done' 33
292 sysmsg 'Spot Done' 33
293
294 ######DUMP Loop#######
295 if findtype 6585 'backpack'
296
297 #Check if we have used all packies
298 if list packAnimals <= 0
299 @clearlist packAnimals
300 @pushlist 'packAnimals' "p1"
301 @pushlist 'packAnimals' "p2"
302 @pushlist 'packAnimals' "p3"
303 @pushlist 'packAnimals' "p4"
304 endif
305
306 #Set Oragnizer 15 to whatever packie is next
307 if inlist 'packAnimals' 'p1'
308 overhead 'Pack 1 Dump!'
309 organizer 15 'set'
310 wft 500
311 target 'pack1'
312 poplist 'packAnimals' 'front'
313 elseif inlist 'packAnimals' 'p2'
314 overhead 'Pack 2 Dump!'
315 organizer 15 'set'
316 wft 500
317 target 'pack2'
318 poplist 'packAnimals' 'front'
319 elseif inlist 'packAnimals' 'p3'
320 overhead 'Pack 3 Dump!'
321 organizer 15 'set'
322 wft 500
323 target 'pack3'
324 poplist 'packAnimals' 'front'
325 elseif inlist 'packAnimals' 'p4'
326 overhead 'Pack 4 Dump!'
327 organizer 15 'set'
328 wft 500
329 target 'pack4'
330 poplist 'packAnimals' 'front'
331 else
332 overhead 'Something done broke'
333 endif
334 wait 100
335
336 #Organizer is now set, dump
337 organizer 15
338 endif
339
340 hotkey 'All Names'
341 overhead 'Time to move!'
342
343 foreach x in moveList
344 walk x
345 wait 150
346 endfor
347
348endwhile