Bapeth's Trapper Background Script by barryroser
Description: "What it does"
# Bandage
# Cure
# Potion Buff
# Cleansing Brew (only while in warmode)
# Warn when str/resist/reflect/reactive are needed
# Shield Codex - Shield bash, Warding, Bullwark
Also "Time Sense" and "Loot Vacuum" mode can be enabled with this script.
1# "Bapeths Trapper Background"
2# Name the script exactly as "shown" above and it will be looped into other Bapeth Trapper Scripts
3#
4# This script works well with Arc Trapper and Summoner Trapper
5#
6# Update: Jan 24 2025 loot list + misc
7#
8# Keep this script playing at all times
9# If you use another script, such as "BOOM BOOM by Bapeth"
10# Loop this background script at the end of your other script(s)
11#
12# "Required Cooldowns"
13#
14# "Move" Cooldown should be set to "0.3 seconds"
15# "Bandage" cooldown can be blank - Script assumes 3 points in "Self Treatment"
16#
17# "What it does"
18#
19# Bandage
20# Cure
21# Potion Buff
22# Cleansing Brew (only while in warmode)
23# Warn when str/resist/reflect/reactive are needed
24# Shield Codex - Shield bash, Warding, Bulwark
25#
26# "Time Sense Container Search"
27# Enable this option to display and loot containers in "Time Dungeon"
28# The "Time Codex" acts like a switch to turn this setting on/off, open your codex while the script is playing to activate switch
29# Stop the script if you need to interact with the Time Codex normally
30#
31# # "Auto Switch Flipper"
32# This is for green wall switches in "Time Dungeon" - Requires "Time Sense to be turned on"
33# Go into warmode when standing near a wall switch and the script will flip the switch and return to peacemode
34#
35# "Auto-Recycler"
36# This feature will auto recycle bad items and keep the good ones - To use this feature:
37# You must be carrying at least one "item identification wand" and at least one "recycler tool" type (Tinker Tools, Sewing Kit, Saw, Tongs, or Scribes Pen)
38# The recycle will happen when the player begins picking a fresh chest (Double Click Scissors to activate auto recycle manually)
39#
40# "Loot-Sense & Vacuum Mode"
41# This function will overhead display *loot* above items on the ground and pick them up as you pass by (2 tiles)
42# Be aware that this may make you overweight from large gold piles from time to time
43# To toggle this feature on/off (default is off) "Double click a Wizard Grimoire"
44#
45# "Gold Sacker"
46# To toggle this feature on/off and set a new sack bag open the "Atlas" while the script it playing
47# This feature will set a ground bag to drop gold into
48# Check out another script by Bapeth called "Bapeths Object Drag & Dropper" searchable on Jases site - This will help you move heavy bags
49#
50# Script starts here...
51if skill "Arcane" >= 80 and not casting and not targetexists and not cooldown "Move"
52 if timerexists baptrapcombat
53 if timer baptrapcombat <= 2000
54 clearsysmsg
55 if not varexist "currentbaptarget"
56 hotkey 'Target Closest Grey Monster'
57 if insysmsg "No one matching"
58 //donothing
59 else
60 @setvar "currentbaptarget" lasttarget
61 endif
62 hotkey "Cancel Current Target"
63 elseif not find "currentbaptarget" ground -1 -1 8
64 hotkey 'Target Closest Grey Monster'
65 if insysmsg "No one matching"
66 //donothing
67 else
68 @setvar "currentbaptarget" lasttarget
69 endif
70 hotkey "Cancel Current Target"
71 elseif find "currentbaptarget" ground -1 -1 8
72 if not timerexists usearcaneability
73 createtimer usearcaneability
74 settimer usearcaneability 31000
75 elseif timer usearcaneability >= 31000
76 settimer usearcaneability 0
77 say "[WeaponAbility3"
78 endif
79 attack "currentbaptarget"
80 endif
81 endif
82 endif
83endif
84if insysmsg "100%"
85 settimer usearcaneability 0
86endif
87
88if skill "Parrying" >= 80 and mana >= 6
89 if not timerexists checkshieldcodex
90 createtimer checkshieldcodex
91 settimer checkshieldcodex 13000
92 elseif timer checkshieldcodex >= 13000
93 settimer checkshieldcodex 0
94 if findtype "shield codex" backpack as scodex
95 getlabel scodex desc
96 if "Shield Bash" in desc
97 overhead "--Shield Bash Active--" 2490
98 elseif "Warding" in desc
99 overhead "--Warding Active--" 2087
100 if not findbuff "Bleed" and not findbuff "Diseased"
101 say "[ShieldsStance1" 45
102 getlabel backpack ping
103 say "[ShieldsFinisher1" 45
104 endif
105 elseif "Testudo" in desc
106 overhead "--Testudo Active--" 2503
107 elseif "Mirror" in desc
108 overhead "--Mirror Active--" 2615
109 elseif "Bulwark" in desc
110 overhead "--Bulwark Active--" 2767
111 else
112 overhead "No Stance Active" 45
113 overhead "Defaulting to Shield Bash" 45
114 say "[ShieldsStance1"
115 endif
116 endif
117 endif
118 if not timerexists bleedbuffcheck and findbuff "Bleed" and not findbuff "Diseased"
119 removetimer bullwarkactive
120 createtimer bleedbuffcheck
121 say "[ShieldsStance2" 45
122 getlabel backpack ping
123 say "[ShieldsFinisher2" 45
124 elseif timerexists bleedbuffcheck and not findbuff "Bleed" and not findbuff "Diseased"
125 removetimer bleedbuffcheck
126 pause 800
127 getlabel backpack ping
128 say "[ShieldsStance1" 45
129 getlabel backpack ping
130 say "[ShieldsFinisher1" 45
131 endif
132 if not timerexists diseasebuffcheck and findbuff "Diseased" and not findbuff "Bleed"
133 removetimer bullwarkactive
134 createtimer diseasebuffcheck
135 say "[ShieldsStance2" 45
136 getlabel backpack ping
137 say "[ShieldsFinisher2" 45
138 elseif timerexists diseasebuffcheck and not findbuff "Diseased" and not findbuff "Bleed"
139 removetimer diseasebuffcheck
140 pause 800
141 getlabel backpack ping
142 say "[ShieldsStance1" 45
143 getlabel backpack ping
144 say "[ShieldsFinisher1" 45
145 endif
146 if timerexists baptrapcombat
147 if not findbuff "Diseased" and not findbuff "Bleed" and not timerexists defaultstance and timer baptrapcombat <= 10000
148 if not timerexists "bullwarktime"
149 createtimer bullwarktime
150 endif
151 if cooldown "Move"
152 settimer bullwarktime 0
153 endif
154 if not timerexists bullwarkactive and timer bullwarktime >= 3000
155 say "[ShieldsStance5" 45
156 createtimer bullwarkactive
157 endif
158 endif
159 endif
160 if cooldown "Move"
161 settimer bullwarktime 0
162 endif
163 if timerexists bullwarkactive
164 if timer bullwarktime < 3000
165 say "[ShieldsStance1" 45
166 removetimer bullwarkactive
167 endif
168 endif
169endif
170
171if skill "Arcane" >= 80 and not gumpexists 3954121934
172 say '[abilityhotbar'
173 waitforgump 3954121934 500
174endif
175
176if not timerexists goldsacker
177 if gumpexists 341416395
178 gumpclose 341416395
179 createtimer goldsacker
180 overhead "--Gold Sacker Enabled--" 2085
181 hotkey "Set Last Target"
182 wft 500
183 overhead "Target Gold Drop Bag" 88
184 while targetexists
185 //donothing
186 endwhile
187 @setvar "bgoldbag" lasttarget
188 overhead "Gold Drop Bag Set" 78
189 endif
190elseif timerexists goldsacker
191 if gumpexists 341416395
192 gumpclose 341416395
193 removetimer goldsacker
194 overhead "--Gold Sacker Disabled--" 1779
195 endif
196endif
197if not timerexists sacktracker
198 createtimer sacktracker
199 settimer sacktracker 5000
200elseif timer sacktracker >= 5000 and find "bgoldbag" ground
201 overhead "*gold sack*" 2843 "bgoldbag"
202 settimer sacktracker 0
203endif
204if find "bgoldbag" ground -1 -1 2
205 while findtype "gold coin" backpack as fatcoins
206 while queued
207 //donothing
208 endwhile
209 drop backpack
210 lift fatcoins 60000
211 drop bgoldbag -1 -1
212 pause 500
213 getlabel backpack ping
214 endwhile
215endif
216
217if not find "bsummon1" ground and findtype "an earth elemental|a fire elemental|a water elemental|an air elemental|a daemon" ground -1 -1 1 as sum1
218 if noto sum1 = "friend"
219 # Name your summon if you like (no spaces must be unique)
220 rename sum1 "Bapith"
221 endif
222elseif not find "bsummon1" ground and findtype "Bapith" ground as sum1
223 @setvar "bsummon1" sum1
224endif
225if not find "bsummon2" ground and findtype "an earth elemental|a fire elemental|a water elemental|an air elemental|a daemon" ground -1 -1 1 as sum2
226 if noto sum2 = "friend"
227 # Name your summon if you like (no spaces must be unique)
228 rename sum2 "Bapath"
229 endif
230elseif not find "bsummon2" gorund and findtype "Bapath" ground as sum2
231 @setvar "bsummon2" sum2
232endif
233
234if findtype "a primordial whelp|an aegis rat|a cougar|a wolf|a grizzly bear|a brown bear|a corpse eater|a familiar|a rock guar|a flamehound|a sand crab|a monitor hatchling|a firebat|a black bear|a muck|a polar bear|shallow water|a scorpion|a swamp spider|a searing lizard|a minion|a fire salamander|a fire ant|a silverback|a jaguar|an aegis mongbat|a cave bat|a primordial|a monitor|an asp|an imp|a winter wolf|a cave bear|a giant swamp slug|an aegis slime|a trapdoor spider|a chameleon|a searing imp|a dragon whelp|a drake whelp|a devilbat|a wolfhound|a blood ape|an army ant|a molten mongbat|a stinger|a rime guar|an aegis scorpion|a skulker|a komodo|a shade wolf|a husk crab|an aegis imp|a fire minion|a snowdrift|a spitting viper|a vampire bat" as csum
235 if noto csum = "friend"
236 # Name your summon if you like (no spaces must be unique)
237 rename csum "Bapesh"
238 endif
239endif
240
241if not timerexists bapactive
242 createtimer bapactive
243 settimer bapactive 5000
244elseif timer bapactive >= 5000
245 overhead "Boom time..." 78
246 settimer bapactive 0
247endif
248
249if not timerexists rptimer
250 createtimer rptimer
251 settimer rptimer 1200
252endif
253
254if not find "placedtrap" ground and findtype 51163 ground -1 -1 8 as smokingtrap
255 @setvar "placedtrap" smokingtrap
256endif
257
258if not timerexists armedtimer
259 createtimer armedtimer
260 settimer armedtimer 3000
261endif
262if find "placedtrap" ground -1 -1 8 as smokingtrap and timer armedtimer >= 1500
263 overhead "*Armed*" 38 smokingtrap
264 settimer armedtimer 0
265elseif find "placedtrap" ground as smokingtrap and timer armedtimer >= 1500
266 overhead "*Too Far*" 45 smokingtrap
267 settimer armedtimer 0
268endif
269
270if skill "Alchemy" >= 10 and not hidden and not casting and not targetexists
271 if not findbuff "Strength" and findtype "White Potion" backpack as wpot
272 dclick wpot
273 pause 500
274 getlabel backpack ping
275 endif
276 if not findbuff "Agility" and findtype "Blue Potion" backpack as bpot
277 dclick bpot
278 pause 500
279 getlabel backpack ping
280 endif
281 if not findbuff "Magic Resist Potion" and findtype "Black Potion" backpack as mpot
282 dclick mpot
283 pause 500
284 getlabel backpack ping
285 endif
286endif
287
288if skill "healing" >= 20 and not casting and not targetexists
289 if hp = maxhp
290 //donothing
291 elseif not bandaging and findtype 3617 backpack
292 hotkey "Bandage Self"
293 cooldown "Bandage" 7000
294 endif
295endif
296
297if skill "Magery" >= 80
298 if timerexists reflect and not findbuff "Magic Reflection"
299 if timer reflect > 30000
300 overhead "--Cast Reflect--" 2122
301 settimer reflect 12000
302 endif
303 endif
304 if findbuff "Magic Reflection" and timerexists reflect
305 removetimer reflect
306 endif
307 if not findbuff "Magic Reflection" and not timerexists reflect
308 createtimer reflect
309 endif
310endif
311if skill "Magery" >= 20
312 if timerexists reactive and not findbuff "Reactive Armor"
313 if timer reactive > 30000
314 overhead "--Cast Reactive--" 2122
315 settimer reactive 13500
316 endif
317 endif
318 if findbuff "Reactive Armor" and timerexists reactive
319 removetimer reactive
320 endif
321 if not findbuff "Reactive Armor" and not timerexists reactive
322 createtimer reactive
323 endif
324endif
325if skill "Magery" >= 40
326 if timerexists protection and not findbuff "Protection"
327 if timer protection > 30000
328 overhead "--Cast Protection--" 2122
329 settimer protection 9000
330 endif
331 endif
332 if findbuff "Protection" and timerexists protection
333 removetimer protection
334 endif
335 if not findbuff "Protection" and not timerexists protection
336 createtimer protection
337 endif
338endif
339if warmode and not hidden and not timerexists brew and not targetexists and findbuff "Bleed" and findtype 50675 backpack as cbrew
340 clearsysmsg
341 while queued
342 //donothing
343 endwhile
344 dclick cbrew
345 getlabel backpack ping
346 if insysmsg "You drink a cleansing brew"
347 createtimer brew
348 endif
349elseif warmode and not hidden and not timerexists brew and not targetexists and findbuff "Diseased" and findtype 50675 backpack as cbrew
350 while queued
351 //donothing
352 endwhile
353 dclick cbrew
354 getlabel backpack ping
355 if insysmsg "You drink a cleansing brew"
356 createtimer brew
357 endif
358endif
359if timerexists brew
360 if timer brew >= 120000
361 removetimer brew
362 endif
363endif
364if not hidden and not casting and findbuff "Weaken" and not targetexists and findtype "White Potion" backpack as stpot
365 while queued
366 //donothing
367 endwhile
368 dclick stpot
369endif
370if not timerexists topupstr
371 createtimer topupstr
372 settimer topupstr 30000
373elseif timer topupstr >= 30000 and not hidden and not casting and str = 100 and findtype "White Potion" backpack as stpot
374 while queued
375 //donothing
376 endwhile
377 overhead "--Drink Strength--" 2041
378 settimer topupstr 0
379endif
380if not timerexists topupres
381 createtimer topupres
382 settimer topupres 30000
383elseif timer topupres >= 30000 and not hidden and not casting and not findbuff "Magic Resist Potion" and findtype "Black Potion" backpack as respot
384 while queued
385 //donothing
386 endwhile
387 overhead "--Drink Resist--" 2031
388 settimer topupres 0
389endif
390if not targetexists and not hidden and not casting and stam <= 4 and findtype "Red Potion" backpack as redpot
391 while queued
392 //donothing
393 endwhile
394 dclick redpot
395endif
396if not hidden and paralyzed and not targetexists and findtype "pouch" backpack 38
397 say "[Pouch"
398endif
399if not hidden and not casting and poisoned and not targetexists and findtype "Orange Potion" backpack as curepot
400 while queued
401 //donothing
402 endwhile
403 dclick curepot
404endif
405
406if insysmsg "What should I use these scissors on?" and findtype "sewing kit|saw|pen and ink|tongs|tool kit" backpack as breakdowntool
407 hotkey "Cancel Current Target"
408 @clearignore
409 if findtype 20496 backpack as IDwand
410 clearsysmsg
411 if findtype 3834 backpack 0 as bbook
412 @ignore bbook
413 endif
414 while findtype 5056|5059|5060|5061|5063|5070|5074|5075|5076|5078|5085|5089|5090|5101|5103|5105|5106|5129|5131|5132|5135|5138|5139|5142|5143|5144|5146|5201|5203|5204|5205|5207|7169|7170|7173|7175|7177|7179|7181|7610|7947|31003|31004|31005|31006|31007|31008|31009|31010|31011|31012|31015|31191|31017|31019|31021|31023|31025|31027|31029|31031|31033|31035|31037|31038|31041|31043|31045|31047|31049|31051|31053|31055|3834|3740|3742|3762|3763|10245|20006|20008|20010|20012|20014|20016|7026|7027|7029|7031|7033|7034|7035|7107|7109|31002|31130|3920|5042|5117|30990|30993|30994|30995|31184|31186|3719|3938|5121|5123|5125|30989|30992|30996|30997|30998|31176|31188|3568|3713|3721|3932|5040|5044|5112|5127|5177|5179|5181|30991|30999|31000|31001|31014|31178|31180|31182|3909|3911|3913|3915|3917|3934|3937|5046|5049|5115|5119|5182|5185|5187|30988|31128|31190|22187|31141|31142|31169|31172 backpack as IDitem
415 getlabel IDitem desc
416 if "unidentified" in desc
417 while queued
418 //donothing
419 endwhile
420 dclick IDwand
421 wft 1000
422 target IDitem
423 waitforsysmsg "You identify the item." 1000
424 getlabel IDitem desc
425 if "aspect" in desc or "training" in desc or "vanquishing" in desc or "supremely" in desc or "slaying" in desc or "enticement" in desc or "invulnerability" in desc or "power" in desc or "exceedingly accurate force" in desc or "exceedingly potent" in desc or "valorite" in desc or "valehide" in desc or "valewood" in desc or "avarite" in desc or "avarhide" in desc or "avarwood" in desc or "verite" in desc or "verehide" in desc or "verewood" in desc or "agapite" in desc or "rosehide" in desc or "rosewood" in desc or "fortification" in desc
426 @ignore IDitem
427 overhead "This one is worth keeping..." 2091
428 overhead "*strong magic*" 2091 IDitem
429 say "[surprise" 2091
430 elseif "durable" in desc or "substantial" in desc or "massive" in desc or "fortified" in desc or "indestructible" in desc or "exceptional" in desc or "accurate" in desc or "surpassingly" in desc or "eminently" in desc or "exceedingly" in desc or "ruin" in desc or "might" in desc or "force" in desc or "power" in desc or "mastercrafted" in desc or "defense" in desc or "guarding" in desc or "hardening" in desc or "potent" in desc or "melodious" in desc
431 overhead "*trash*" 1779 IDitem
432 while not gumpexists 949095101
433 while queued
434 //donothing
435 endwhile
436 dclick breakdowntool
437 waitforgump 949095101 1000
438 endwhile
439 while not ingump "Recycle Single Item" 949095101
440 gumpresponse 2
441 waitforgump 949095101 1000
442 endwhile
443 gumpresponse 3
444 waitforgump 949095101 1000
445 target IDitem
446 getlabel backpack ping
447 pause 300
448 gumpclose 949095101
449 else
450 @ignore IDitem
451 endif
452 elseif "aspect" in desc or "training" in desc or "vanquishing" in desc or "supremely" in desc or "slaying" in desc or "enticement" in desc or "invulnerability" in desc or "power" in desc or "exceedingly accurate force" in desc or "exceedingly potent" in desc or "valorite" in desc or "valehide" in desc or "valewood" in desc or "avarite" in desc or "avarhide" in desc or "avarwood" in desc or "verite" in desc or "verehide" in desc or "verewood" in desc or "agapite" in desc or "rosehide" in desc or "rosewood" in desc or "fortification" in desc
453 @ignore IDitem
454 elseif "durable" in desc or "substantial" in desc or "massive" in desc or "fortified" in desc or "indestructible" in desc or "exceptional" in desc or "accurate" in desc or "surpassingly" in desc or "eminently" in desc or "exceedingly" in desc or "ruin" in desc or "might" in desc or "force" in desc or "power" in desc or "mastercrafted" in desc or "defense" in desc or "guarding" in desc or "hardening" in desc or "potent" in desc or "melodious" in desc
455 overhead "*trash*" 1779 IDitem
456 while not gumpexists 949095101
457 while queued
458 //donothing
459 endwhile
460 dclick breakdowntool
461 waitforgump 949095101 1000
462 endwhile
463 while not ingump "Recycle Single Item" 949095101
464 gumpresponse 2
465 waitforgump 949095101 1000
466 endwhile
467 gumpresponse 3
468 waitforgump 949095101 1000
469 target IDitem
470 getlabel backpack ping
471 pause 300
472 gumpclose 949095101
473 else
474 @ignore IDitem
475 endif
476 if not findtype 20496 backpack
477 break
478 endif
479 endwhile
480 if gumpexists 949095101
481 gumpclose 949095101
482 endif
483 endif
484 if targetexists
485 hotkey "Cancel Current Target"
486 endif
487endif
488
489if not timerexists timesenseswitch
490 if gumpexists 3352257441
491 gumpclose 3352257441
492 createtimer timesenseswitch
493 overhead "--Time Sense Enabled--" 88
494 endif
495endif
496if timerexists timesenseswitch
497 if gumpexists 3352257441
498 gumpclose 3352257441
499 removetimer timesenseswitch
500 overhead "--Time Sense Disabled--" 38
501 endif
502endif
503if timerexists timesenseswitch and not targetexists and not casting
504 if not timerexists bappykeytimer
505 createtimer bappykeytimer
506 settimer bappykeytimer 5500
507 elseif timer bappykeytimer >= 5500 and findtype "4112" backpack as bappykey
508 overhead "*key*" 78 bappykey
509 settimer bappykeytimer 0
510 endif
511 if not timerexists timesensecontainer
512 createtimer timesensecontainer
513 settimer timesensecontainer 1000
514 endif
515 if timer timesensecontainer >= 1000
516 for 18
517 if index > 0 and findtype "wooden shelf|wooden box|armoire|dead|chest of drawers|3712|2712|3651|3649|3648|3650|3708|2475|2713|2637|2474|3647|3710|3645|3703|3702|2472|3701|2473|2639|3788|3791|3786|2711|3709|3789|3646|3705|27284|27287|27289|27286|27288|3793|3787|3794|3790|3792|2643|3644" ground -1 -1 index as dungeonfloorcontainers
518 getlabel dungeonfloorcontainers desc
519 overhead "*search*" 88 dungeonfloorcontainers
520 @ignore dungeonfloorcontainers
521 endif
522 if findtype "wooden shelf|wooden box|armoire|dead|chest of drawers|3712|2712|3651|3649|3648|3650|3708|2475|2713|2637|2474|3647|3710|3645|3703|3702|2472|3701|2473|2639|3788|3791|3786|2711|3709|3789|3646|3705|27284|27287|27289|27286|27288|3793|3787|3794|3790|3792|2643|3644" ground -1 -1 2
523 break
524 endif
525 if warmode and findtype "barred metal door|metal door|iron gate" ground -1 -1 2
526 break
527 endif
528 if warmode and findtype 4239|4240 ground -1 -1 2
529 break
530 endif
531 endfor
532 @clearignore
533 settimer timesensecontainer 0
534 endif
535 if not timerexists switchandstufftimer
536 createtimer switchandstufftimer
537 settimer switchandstufftimer 1000
538 endif
539 if timer switchandstufftimer >= 1000
540 for 18
541 if index > 0 and findtype 4239|4240 ground -1 -1 index as switchandstuff
542 getlabel switchandstuff desc
543 overhead "*switch*" 78 switchandstuff
544 @ignore switchandstuff
545 endif
546 endfor
547 @clearignore
548 settimer switchandstufftimer 0
549 endif
550 @clearignore
551 if warmode and findtype 4239|4240 ground -1 -1 2 as timewallswitch
552 dclick timewallswitch
553 warmode off
554 getlabel backpack ping
555 endif
556 while findtype "wooden shelf|wooden box|armoire|dead|chest of drawers|3712|2712|3651|3649|3648|3650|3708|2475|2713|2637|2474|3647|3710|3645|3703|3702|2472|3701|2473|2639|3788|3791|3786|2711|3709|3789|3646|3705|27284|27287|27289|27286|27288|3793|3787|3794|3790|3792|2643|3644" ground -1 -1 2 as timecontainer
557 @setvar "baptimecontainer" timecontainer
558 while queued
559 //donothing
560 endwhile
561 getlabel timecontainer desc
562 if "the remains of" in desc
563 overhead "*avatar corpse*" 45 timecontainer
564 else
565 dclick timecontainer
566 pause 500
567 getlabel backpack ping
568 if gumpexists 736038070 and findtype 5373 backpack
569 gumpresponse 4
570 endif
571 @ignore timecontainer
572 while findtype "wooden shelf|wooden box|armoire|dead|chest of drawers|3712|2712|3651|3649|3648|3650|3708|2475|2713|2637|2474|3647|3710|3645|3703|3702|2472|3701|2473|2639|3788|3791|3786|2711|3709|3789|3646|3705|27284|27287|27289|27286|27288|3793|3787|3794|3790|3792|2643|3644" timecontainer as innercontainer
573 while queued
574 //donothing
575 endwhile
576 dclick innercontainer
577 pause 500
578 getlabel backpack ping
579 @ignore innercontainer
580 endwhile
581 @unignore timecontainer
582 endif
583 while findtype 5056|5059|5060|5061|5063|5070|5074|5075|5076|5078|5085|5089|5090|5101|5103|5105|5106|5129|5131|5132|5135|5138|5139|5142|5143|5144|5146|5201|5203|5204|5205|5207|7169|7170|7173|7175|7177|7179|7181|7610|7947|31003|31004|31005|31006|31007|31008|31009|31010|31011|31012|31015|31191|31017|31019|31021|31023|31025|31027|31029|31031|31033|31035|31037|31038|31041|31043|31045|31047|31049|31051|31053|31055|3834|3740|3742|3762|3763|10245|20006|20008|20010|20012|20014|20016|7026|7027|7029|7031|7033|7034|7035|7107|7109|31002|31130|3920|5042|5117|30990|30993|30994|30995|31184|31186|3719|3922|3938|5121|5123|5125|30989|30992|30996|30997|30998|31176|31188|3568|3713|3721|3932|5040|5044|5112|5127|5177|5179|5181|30991|30999|31000|31001|31014|31178|31180|31182|3909|3911|3913|3915|3917|3934|3937|5046|5049|5115|5119|5182|5185|5187|30988|31128|31190|22187|31141|31142|31169|31172 timecontainer as checkunid
584 getlabel checkunid desc
585 if "unidentified" in desc
586 hotkey 'Grab Item'
587 target checkunid
588 overhead "*looting*" 2091 timecontainer
589 while queued
590 //donothing
591 endwhile
592 else
593 @ignore checkunid
594 endif
595 if insysmsg "That container cannot hold more weight."
596 break
597 endif
598 if not find "baptimecontainer" ground -1 -1 2
599 break
600 endif
601 endwhile
602 while findtype 3827 timecontainer 0 as zeroscroll
603 @ignore zeroscroll
604 endwhile
605 while findtype 7154 timecontainer 0 as zeroingot
606 @ignore zeroingot
607 endwhile
608 while findtype 4225 timecontainer 0 as zeroleather
609 @ignore zeroleather
610 endwhile
611 while findtype 7127 timecontainer 0 as zeroboard
612 @ignore zeroboard
613 endwhile
614 while findtype 7154 timecontainer 2419 as zeroingot
615 @ignore zeroingot
616 endwhile
617 while findtype 4225 timecontainer 2419 as zeroleather
618 @ignore zeroleather
619 endwhile
620 while findtype 7127 timecontainer 2419 as zeroboard
621 @ignore zeroboard
622 endwhile
623 while findtype 7154 timecontainer 2406 as zeroingot
624 @ignore zeroingot
625 endwhile
626 while findtype 4225 timecontainer 2406 as zeroleather
627 @ignore zeroleather
628 endwhile
629 while findtype 7127 timecontainer 2406 as zeroboard
630 @ignore zeroboard
631 endwhile
632 while findtype 7154 timecontainer 2413 as zeroingot
633 @ignore zeroingot
634 endwhile
635 while findtype 4225 timecontainer 2413 as zeroleather
636 @ignore zeroleather
637 endwhile
638 while findtype 7127 timecontainer 2413 as zeroboard
639 @ignore zeroboard
640 endwhile
641 while findtype 7154 timecontainer 2418 as zeroingot
642 @ignore zeroingot
643 endwhile
644 while findtype 4225 timecontainer 2418 as zeroleather
645 @ignore zeroleather
646 endwhile
647 while findtype 7127 timecontainer 2418 as zeroboard
648 @ignore zeroboard
649 endwhile
650 while findtype 7154 timecontainer 2213 as zeroingot
651 @ignore zeroingot
652 endwhile
653 while findtype 4225 timecontainer 2213 as zeroleather
654 @ignore zeroleather
655 endwhile
656 while findtype 7127 timecontainer 2213 as zeroboard
657 @ignore zeroboard
658 endwhile
659 while findtype 5901|5899|5903|5905 timecontainer as timefootwear
660 getlabel timefootwear desc
661 if "(hue" in desc
662 break
663 else
664 @ignore timefootwear
665 endif
666 endwhile
667 while findtype "54230|44985|glass display|20049|Pig Iron|broken shield|blackrock fragment|gargish fragment|18705|55247|49482|53694|54570|53696|53876|50612|55420|53280|53473|54831|50278|49528|bottle set|entrail bucket|mounted stalaghorn|sea glass bulb|juggling daggers|st patricks cross|divination orb|mirror display|murder of crows|charmed cobra|prodigy fiddle|wilting rose belljar|scale of balance|screaming mandrake|statue of the siren|the final hour|55204|specimen jars|shattered weapon|bird cage|widows grief|54684|27612|49223|54591|54601|54718|7408|19948|58325|19959|19822|49730|49729|19944|19949|47613|47612|47611|47610|47611|3986|3966|cathedral tapestry|Darkscale tapestry|large painting|landscape painting|portrait painting|figurine|statue|20291|44987|49730|47107|18653|45127|20103|47103|29363|47105|29361|43453|5899|47109|45250|41509|43447|18657|4025|51308|45156|51304|45214|28769|28799|28803|28765|45211|45248|51259|45220|51328|45218|3842|51327|45222|45241|51336|11858|51375|45282|54722|45255|45246|28795|44983|45235|45251|45238|51258|51314|28761|45236|51260|54718|18400|58325|45252|18656|47111|3839|45239|45242|45254|45281|45247|42241|45216|28775|51321|3838|51318|5901|5905|45259|5903|48407|51302|4248|27611|15296|43166|5359|5981|4026|3985|25359|17686|3836|17087|5356|29030|24434|22336|29036|3843|29025|51098|29034|8826|51094|576|3827|22326|45315|3891|2539|39898|39896|39892|39918|39911|39916|39897|39905|39891|39917|39912|39909|39889|31047|31017|31049|31019|31055|31051|31053|31025|31027|31031|31041|54717|31021|31011|31023|31029|31043|31003|31035|31033|31045|31037|31002|20006|31169|31006|30999|31012|31009|30996|7109|7107|31128|31188|20014|31014|31004|31142|31001|31000|37181|31010|30998|31172|30988|30997|31038|31141|7947|20008|31005|31191|31008|31007|30994|30993|31182|30989|20012|31186|31178|31015|30991|20010|20016|31184|31190|30990|30995|31176|31180|30992|31130|5207|7031|7026|7034|7033|7027|7035|7029|5078|5063|5059|5105|5060|5138|5129|5201|5142|5143|5076|5106|7610|5139|5090|5103|5132|7177|5061|7181|7179|3920|5042|5127|5117|5185|5125|3938|5177|3937|5044|5121|3915|3909|3568|3932|5123|5144|5119|5056|5135|5187|5074|5089|3934|3913|3917|3721|5075|5046|5049|7170|5146|5205|5203|5115|5204|5040|5179|5070|5182|5085|5181|3719|7173|5131|3911|5101|7175|7169|3713|5112|22187|9917|3859|3862|3878|3865|3856|3873|3877|3834|3742|3762|3740|3763|10245|3572|3573|3571|3885|12686|19985|19981|19984|19982|19983|19991|19989|19986|19987|19988|19994|19995|19992|19993|19990|19980|19977|19976|19978|19979|43423|7154|4225|7127|3861" timecontainer as bitem
668 hotkey 'Grab Item'
669 target bitem
670 overhead "*looting*" 2091 timecontainer
671 while queued
672 //donothing
673 endwhile
674 if insysmsg "That container cannot hold more weight."
675 break
676 endif
677 if not find "baptimecontainer" ground -1 -1 2
678 break
679 endif
680 endwhile
681 @ignore timecontainer
682 endwhile
683endif
684
685if not timerexists lootvacuumswitch
686 if gumpexists 1281623709
687 gumpclose 1281623709
688 createtimer lootvacuumswitch
689 settimer lootvacuumswitch 15000
690 overhead "--Loot Vacuum Enabled--" 2085
691 endif
692endif
693if timerexists lootvacuumswitch
694 if gumpexists 1281623709
695 gumpclose 1281623709
696 removetimer lootvacuumswitch
697 overhead "--Loot Vacuum Disabled--" 1779
698 endif
699endif
700while diffweight <= 0 and findtype "gold coin" backpack as dropgold
701 if not hidden and stam <= 4 and findtype "Red Potion" backpack as redpot
702 while queued
703 //donothing
704 endwhile
705 dclick redpot
706 endif
707 overhead "My cup runneth over..." 1194
708 if findtype 4225 backpack 0 as garbleather
709 drop backpack
710 lift garbleather 59999
711 drop 0
712 while queued
713 //donothing
714 endwhile
715 endif
716 drop backpack
717 lift dropgold 444
718 drop 0
719 while queued
720 //donothing
721 endwhile
722 settimer lootvacuumswitch 0
723endwhile
724if timerexists lootvacuumswitch
725 if timer lootvacuumswitch >= 9000
726 if not timerexists lootsensetimer
727 createtimer lootsensetimer
728 settimer lootsensetimer 1000
729 endif
730 if not findtype 4239|4240 ground -1 -1 2 and timer lootsensetimer >= 1000
731 for 18
732 while findtype 3827 ground 0 as zeroscroll
733 @ignore zeroscroll
734 endwhile
735 while findtype 7154 ground 0 as zeroingot
736 @ignore zeroingot
737 endwhile
738 while findtype 4225 ground 0 as zeroleather
739 @ignore zeroleather
740 endwhile
741 while findtype 7127 ground 0 as zeroboard
742 @ignore zeroboard
743 endwhile
744 while findtype 7154 ground 2419 as zeroingot
745 @ignore zeroingot
746 endwhile
747 while findtype 4225 ground 2419 as zeroleather
748 @ignore zeroleather
749 endwhile
750 while findtype 7127 ground 2419 as zeroboard
751 @ignore zeroboard
752 endwhile
753 while findtype 7154 ground 2406 as zeroingot
754 @ignore zeroingot
755 endwhile
756 while findtype 4225 ground 2406 as zeroleather
757 @ignore zeroleather
758 endwhile
759 while findtype 7127 ground 2406 as zeroboard
760 @ignore zeroboard
761 endwhile
762 while findtype 7154 ground 2413 as zeroingot
763 @ignore zeroingot
764 endwhile
765 while findtype 4225 ground 2413 as zeroleather
766 @ignore zeroleather
767 endwhile
768 while findtype 7127 ground 2413 as zeroboard
769 @ignore zeroboard
770 endwhile
771 while findtype 7154 ground 2418 as zeroingot
772 @ignore zeroingot
773 endwhile
774 while findtype 4225 ground 2418 as zeroleather
775 @ignore zeroleather
776 endwhile
777 while findtype 7127 ground 2418 as zeroboard
778 @ignore zeroboard
779 endwhile
780 while findtype 7154 ground 2213 as zeroingot
781 @ignore zeroingot
782 endwhile
783 while findtype 4225 ground 2213 as zeroleather
784 @ignore zeroleather
785 endwhile
786 while findtype 7127 ground 2213 as zeroboard
787 @ignore zeroboard
788 endwhile
789 if index > 0 and findtype "54230|44985|glass display|20049|Pig Iron|blackrock fragment|gargish fragment|18705|55247|49482|53694|54570|53696|53876|50612|55420|53280|53473|54831|50278|49528|bottle set|entrail bucket|mounted stalaghorn|sea glass bulb|juggling daggers|st patricks cross|divination orb|mirror display|murder of crows|charmed cobra|prodigy fiddle|wilting rose belljar|scale of balance|screaming mandrake|statue of the siren|the final hour|55204|specimen jars|bird cage|widows grief|54684|27612|49223|54591|54601|54718|19948|58325|19959|19822|49730|49729|19944|19949|47613|47612|47611|47610|47611|3986|3966|cathedral tapestry|Darkscale tapestry|large painting|landscape painting|portrait painting|figurine|statue|20291|44987|49730|47107|18653|45127|20103|47103|29363|47105|29361|43453|5899|47109|45250|41509|43447|18657|4025|51308|45156|51304|45214|28769|28799|28803|28765|45211|45248|51259|45220|51328|45218|3842|51327|45222|45241|51336|11858|51375|45282|54722|45255|45246|28795|44983|45235|45251|45238|51258|51314|28761|45236|51260|54718|18400|58325|45252|18656|47111|3839|45239|45242|45254|45281|45247|42241|45216|28775|51321|3838|51318|5901|5905|45259|5903|48407|51302|4248|27611|15296|43166|5359|5981|4026|3985|25359|17686|3836|17087|5356|29030|24434|22336|29036|3843|29025|51098|29034|8826|51094|576|3827|22326|45315|3891|2539|39898|39896|39892|39918|39911|39916|39897|39905|39891|39917|39912|39909|39889|31047|31017|31049|31019|31055|31051|31053|31025|31027|31031|31041|54717|31021|31011|31023|31029|31043|31003|31035|31033|31045|31037|31002|20006|31169|31006|30999|31012|31009|30996|7109|7107|31128|31188|20014|31014|31004|31142|31001|31000|37181|31010|30998|31172|30988|30997|31038|31141|7947|20008|31005|31191|31008|31007|30994|30993|31182|30989|20012|31186|31178|31015|30991|20010|20016|31184|31190|30990|30995|31176|31180|30992|31130|5207|7031|7026|7034|7033|7027|7035|7029|5078|5063|5059|5105|5060|5138|5129|5201|5142|5143|5076|5106|7610|5139|5090|5103|5132|7177|5061|7181|7179|3920|5042|5127|5117|5185|5125|3938|5177|3937|5044|5121|3915|3909|3568|3932|5123|5144|5119|5056|5135|5187|5074|5089|3934|3913|3917|3721|5075|5046|5049|7170|5146|5205|5203|5115|5204|5040|5179|5070|5182|5085|5181|3719|7173|5131|3911|5101|7175|7169|3713|5112|22187|9917|3859|3862|3878|3865|3856|3873|3877|3834|3742|3762|3740|3763|10245|3572|3573|3571|3885|12686|19985|19981|19984|19982|19983|19991|19989|19986|19987|19988|19994|19995|19992|19993|19990|19980|19977|19976|19978|19979|43423|7154|4225|7127|3861" ground -1 -1 index as lootlocation
790 overhead "*loot*" 2091 lootlocation
791 @ignore lootlocation
792 endif
793 if warmode and findtype 4239|4240 ground -1 -1 2
794 break
795 endif
796 endfor
797 @clearignore
798 settimer lootsensetimer 0
799 endif
800 while findtype 3827 ground 0 as zeroscroll
801 @ignore zeroscroll
802 endwhile
803 while findtype 7154 ground 0 as zeroingot
804 @ignore zeroingot
805 endwhile
806 while findtype 4225 ground 0 as zeroleather
807 @ignore zeroleather
808 endwhile
809 while findtype 7127 ground 0 as zeroboard
810 @ignore zeroboard
811 endwhile
812 while findtype 7154 ground 2419 as zeroingot
813 @ignore zeroingot
814 endwhile
815 while findtype 4225 ground 2419 as zeroleather
816 @ignore zeroleather
817 endwhile
818 while findtype 7127 ground 2419 as zeroboard
819 @ignore zeroboard
820 endwhile
821 while findtype 7154 ground 2406 as zeroingot
822 @ignore zeroingot
823 endwhile
824 while findtype 4225 ground 2406 as zeroleather
825 @ignore zeroleather
826 endwhile
827 while findtype 7127 ground 2406 as zeroboard
828 @ignore zeroboard
829 endwhile
830 while findtype 7154 ground 2413 as zeroingot
831 @ignore zeroingot
832 endwhile
833 while findtype 4225 ground 2413 as zeroleather
834 @ignore zeroleather
835 endwhile
836 while findtype 7127 ground 2413 as zeroboard
837 @ignore zeroboard
838 endwhile
839 while findtype 7154 ground 2418 as zeroingot
840 @ignore zeroingot
841 endwhile
842 while findtype 4225 ground 2418 as zeroleather
843 @ignore zeroleather
844 endwhile
845 while findtype 7127 ground 2418 as zeroboard
846 @ignore zeroboard
847 endwhile
848 while findtype 7154 ground 2213 as zeroingot
849 @ignore zeroingot
850 endwhile
851 while findtype 4225 ground 2213 as zeroleather
852 @ignore zeroleather
853 endwhile
854 while findtype 7127 ground 2213 as zeroboard
855 @ignore zeroboard
856 endwhile
857 while not casting and not targetexists and findtype "54230|44985|glass display|20049|Pig Iron|blackrock fragment|gargish fragment|18705|55247|49482|53694|54570|53696|53876|50612|55420|53280|53473|54831|50278|49528|bottle set|entrail bucket|mounted stalaghorn|sea glass bulb|juggling daggers|st patricks cross|divination orb|mirror display|murder of crows|charmed cobra|prodigy fiddle|wilting rose belljar|scale of balance|screaming mandrake|statue of the siren|the final hour|55204|specimen jars|bird cage|widows grief|54684|27612|49223|54591|54601|54718|19948|58325|19959|19822|49730|49729|19944|19949|47613|47612|47611|47610|47611|3986|3966|cathedral tapestry|Darkscale tapestry|large painting|landscape painting|portrait painting|figurine|statue|20291|44987|49730|47107|18653|45127|20103|47103|29363|47105|29361|43453|5899|47109|45250|41509|43447|18657|4025|51308|45156|51304|45214|28769|28799|28803|28765|45211|45248|51259|45220|51328|45218|3842|51327|45222|45241|51336|11858|51375|45282|54722|45255|45246|28795|44983|45235|45251|45238|51258|51314|28761|45236|51260|54718|18400|58325|45252|18656|47111|3839|45239|45242|45254|45281|45247|42241|45216|28775|51321|3838|51318|5901|5905|45259|5903|48407|51302|4248|27611|15296|43166|5359|5981|4026|3985|25359|17686|3836|17087|5356|29030|24434|22336|29036|3843|29025|51098|29034|8826|51094|576|3827|22326|45315|3891|2539|39898|39896|39892|39918|39911|39916|39897|39905|39891|39917|39912|39909|39889|31047|31017|31049|31019|31055|31051|31053|31025|31027|31031|31041|54717|31021|31011|31023|31029|31043|31003|31035|31033|31045|31037|31002|20006|31169|31006|30999|31012|31009|30996|7109|7107|31128|31188|20014|31014|31004|31142|31001|31000|37181|31010|30998|31172|30988|30997|31038|31141|7947|20008|31005|31191|31008|31007|30994|30993|31182|30989|20012|31186|31178|31015|30991|20010|20016|31184|31190|30990|30995|31176|31180|30992|31130|5207|7031|7026|7034|7033|7027|7035|7029|5078|5063|5059|5105|5060|5138|5129|5201|5142|5143|5076|5106|7610|5139|5090|5103|5132|7177|5061|7181|7179|3920|5042|5127|5117|5185|5125|3938|5177|3937|5044|5121|3915|3909|3568|3932|5123|5144|5119|5056|5135|5187|5074|5089|3934|3913|3917|3721|5075|5046|5049|7170|5146|5205|5203|5115|5204|5040|5179|5070|5182|5085|5181|3719|7173|5131|3911|5101|7175|7169|3713|5112|22187|9917|3859|3862|3878|3865|3856|3873|3877|3834|3742|3762|3740|3763|10245|3572|3573|3571|3885|12686|19985|19981|19984|19982|19983|19991|19989|19986|19987|19988|19994|19995|19992|19993|19990|19980|19977|19976|19978|19979|43423|7154|4225|7127|3861" ground -1 -1 2 as eatloot
858 hotkey 'Grab Item'
859 target eatloot
860 while queued
861 //donothing
862 endwhile
863 endwhile
864 endif
865endif
866
867if dead
868 overhead "I need a new body..." 88
869 stop
870endif
871loop