Back to "b" tags

Bapeth's Modern Dungeon Picker by barryroser

Description: This script will put dungeon lockpicking and pilfering on cruise control.

Please read the description at the top of the script. Enjoy!

1# "***Bapeths Modern Dungeon Picker***"
2# Jan 25 2025 (Loot list update + misc)
3#
4# "***READ THIS***READ THIS***READ THIS***READ THIS***"
5#
6# "***REQUIRED SETTINGS***"
7#
8# "In Game Dungeon Chest Menu"
9# "Continuous Lockpicking" and "Continuous Remove Trap" must be checked in the lockpicking gump menu
10# This gump menu appears when you attempt to open a chest
11#
12# "Auto Loot Control"
13# This script uses razor "Auto-Queue Object Delay" setting
14# Make sure this setting is turned ON in the razor Options tab > Targeting & Queues sub-tab
15# And set "object delay to 503" AUTO LOOTING WILL BE SLOW IF YOU DONT DO THIS!
16#
17# "Cooldowns"
18# This script uses four cooldowns called "Hiding" "Stealth" "Stealing" and "Move" (Stealing only for Pilfering)
19# Create these in the in-game options menu under Cooldowns and they must be spelled correctly
20# Sometimes a full game restart is needed if cooldowns are edited
21# The "Move" Cooldown should be set to "0.3 seconds"
22#
23# "***OPTIONAL SETTINGS***"
24#
25# "Time Sense Container Search"
26# Enable this option to display and loot containers in "Time Dungeon"
27# The "Time Codex" acts like a switch to turn this setting on/off, open your codex while the script is playing to activate switch
28# Stop the script if you need to interact with the Time Codex normally
29#
30# "Auto Switch Flipper"
31# This is for green wall switches in "Time Dungeon" - Requires "Time Sense to be turned on"
32# Go into warmode when standing near a wall switch and the script will flip the switch and return to peacemode
33#
34# "Time Sense Dungeon Locked Doors"
35# Toggle "WARMODE ON" when within range of a locked "Time Dungeon Door" to automatically lockpick it (Time Sense must be enabled with Time Codex Switch)
36# This will use any random lockpick type you have in your pack
37#
38# "Smoke Bomb Cooldown" for pilfering only (use a separate script for regular smoke bombing)
39# Create a cooldown called "Smoke Bomb" (note the space), must be spelled exactly like that
40# Default cooldown is set to minimum cooldown time of 60 seconds (This assumes you have 3 points in "Without a Trace")
41# This can be edited by searching (ctrl + f) "60000" and replacing it with your personal cooldown timer that matches your thieves codex
42# Possible timers for smoke bomb are "60000", "80000", "100000", or "120000" (this is milliseconds)
43#
44# "Wizard Hat Stealth Trick" - prevents you from stumbling over a player/mob while moving in stealth
45# It is recommended to have in your pack a "Blessed and Aspected Armored Magical Wizard Hat" (Purchasable at prev vendor)
46# Alternatively you can buy a cheap "Magical Wizards Hat" from the Mage NPC in town (non-aspectable)
47# This is for the stealth part of the script
48# It will quick swap your hat and reduce your stamina
49# If your hat ever gets stuck in a "spam loop"
50# Go to Script tab > Options subtab and delete "bwiz" "bmain" and "nonaspectedwiz"
51#
52# "Auto Pilfer"
53# Toggle "WARMODE ON" for "AUTO-PILFER" - It is best to use the "TAB" button and ensure that "TAB" is set to toggle in UO options
54# To enable this feature: open the "thieves codex" while the script is playing - this will act like a switch to turn auto-pilfer on/off
55
56# "Hide/Stealth Blocking"
57# Toggle "WARMODE ON" to block the scripts smart hide/stealth feature (use for "Boss Room Custodians" and saving cooldown time)
58#
59# "Auto Chest Protection"
60# "ACP" feature will instantly cast (Minimum "50 Magery" required to use)
61# Wall of stone, Earth Elemental, Tele + Rope, or Reveal when you are detected
62# Does not work when player is revealed by the reveal spell
63# Toggle "Wall" "Earth" "Tele" "Reveal" or "None" by doubleclicking an "Atlas"
64# Type "[Atlas" in game to spawn a free weightless "Atlas" in your bag
65# Hotkey "Grants the player an Atlas" in razor hotkey tab if you dont want to doubleclick
66#
67# "Auto Frost Shell Protection"
68# Create a cooldown in game called "Aspect"
69# Frost shell is a powerful 5 second "cheat death" effect that can be instantly enabled for the cost of 5 essence through "activating the Frost Aspect"
70# The script will automatically hot swap to "Frost Aspect" when you are Detected by another player (skill not spell), or, if you fall to 35 or less HP
71# It is highly reccomended that you make a manual hotkey for "say [AspectArmor Frost"
72# You may want to activate "Frost Armor" on your own terms outside of the scope of the script
73# To toggle Auto Frost Shell Protection feature on/off "open the party menu" while the script is playing - the party menu acts like a switch (if you require the party menu for normal means, stop the script first before using)
74#
75# "Auto-Recycler"
76# This feature will auto recycle bad items and keep the good ones - To use this feature:
77# 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)
78# The recycle will happen when the player begins picking a fresh chest (Double Click Scissors to activate auto recycle manually)
79#
80# "Loot-Sense & Vacuum Mode"
81# This function will overhead display *loot* above items on the ground and pick them up as you pass by (2 tiles)
82# Be aware that this may make you overweight from large gold piles from time to time
83# To toggle this feature on/off (default is off) "Double click a Wizard Grimoire"
84#
85# "Auto Detect & Skin Corpses"
86# If you have a skinning knife and 50 or more "Forensic Evaluation"
87# While in Peace Mode the script will show corpses and auto skin them when in range
88# To toggle this feature on/off double click your skinning knife while the script is playing
89#
90# "Extra Features"
91# If you have any of the following items, the script will auto-use them when convenient and necessary;
92# Cure Potion, Cleansing Brew (use warmode), Trapped Pouch, Strength Potion (when weakened by another player), Refresh Potion
93# If you are "over weight" the script will now "auto-dump" leather and piles of 444 gold until you are unburdened
94#
95# "Lootbag"
96# Set by using the razor hotkey "Set Grab Item Hotbag"
97#
98# "Auto Stealth"
99# This is an in game setting that is reccomended to be turned ON
100# Toggle this on and off by typing [AutoStealth in game
101#
102# "Spam Reduction"
103# Options tab > Targeting & Queues subtab > Uncheck "Attack/Target name overhead"
104# Filters tab > Text & Messages subtab > Check "Filter Repeating Razor Messages" ONLY
105# 
106# "Summoners Name Your Elemental"                                                         
107# See "line 150 & 158" if you would like to custom name your earth elemental(s)
108# Default is "LootGolem"
109#
110# -------------------------------"Recommended Builds"-------------------------------
111# --"Pilfer Ninja"------"Chest Ninja**"------"Summoner Picker"----"Pilfer Skinner"--
112# Detect Hidden - 120  Detect Hidden - 120  Detect Hidden - 120  Forensic Eval-- 120
113# Lockpicking ----120  Lockpicking ----120  Lockpicking ----120  Stealth ------- 120
114# Stealth ------- 120  Stealth ------- 100  Stealth ------- 120  Hiding -------- 100
115# Hiding -------- 100  Hiding -------- 100  Hiding -------- 100  Stealing ------ 100
116# Magery --------- 80  Magery --------- 80  Magery -------- 100  Meditation ---- 100
117# Camping -------- 80  Camping ------- 120  Camping -------- 80  Magery --------- 80
118# Stealing ------ 100  Stealing ------- 80  Spirit Speak --- 80  Snooping ------- 67 (or 100 to steal from players)
119#                                                                Focus ---------- 33 (0 if Stealing is 100)
120# "Recommended Aspects, Links, and Codex/Tome"
121# Harvest or Fortune Aspect (high end tools needed for Fortune and or low level aspect)
122# Special/Rare loot Chance Links (Max 20) & Chest Success Chances/Progress Links (Max 10)
123# If you Summon "Spirit Pact" and "Earthpull" upgrades are recommended (Summoner Tome)
124# If you Lockpick "Overlooked" and "Without a Trace" is recommended (Thieves Codex)
125# If you Pilfer "Extortion" is recommended (Thieves Codex)
126# "** Bapeths current main build"
127#
128# "Notes on Rares"
129# Not all "Rares" are on the auto loot list
130# Keep an eye out for unlooted rares
131# I update the list as I find them
132#
133# "Notes on error" 
134# "Screen transitions" and "teleporting far distances" will on occasion error the script 
135# This is a bug in razor, simply play the script again if this happens
136# It helps to make a habit of replaying the script often to ensure its always playing
137# I recommend, if you know how to, loop this script into your other commonly used scripts
138#
139# "Notes on loop-in"
140# You will likley want to use other scripts while playing, and, it is advised to keep this script running at all times
141# In order to achieve this you can "loop-in" this script on the back end of any other script you are using
142# To learn more about this ask about it in the scripts=and-macros discord channel for Outlands discord
143# You can also seach for scripts Bapeth has made that are pre-looped, such as "Bapeths Dungeon Rope + Tele" 
144#
145# "Script Starts Here"
146
147if 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  
148    if noto sum1 = "friend"
149        # Name your summon if you like (no spaces must be unique)
150        rename sum1 "LootGolem"
151    endif
152elseif not find "bsummon1" ground and findtype "LootGolem" ground as sum1
153    @setvar "bsummon1" sum1
154endif
155if 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  
156    if noto sum2 = "friend"
157        # Name your summon if you like (no spaces must be unique)
158        rename sum2 "LootGolems"
159    endif
160elseif not find "bsummon2" gorund and findtype "LootGolems" ground as sum2
161    @setvar "bsummon2" sum2
162endif
163
164if findtype 5912 self and not varexist "bwiz" and findlayer self head as regularhat
165    getlabel regularhat desc
166    if "magical" in desc
167        dclick regularhat
168        pause 500
169        getlabel backpack ping
170        replay
171    endif
172endif
173if not find "bwiz" self and findtype 5912 backpack as wizhat
174    getlabel wizhat desc
175    if "restyled" in desc
176        @ignore wizhat
177        replay
178    elseif "armored" in desc
179        @setvar "bwiz" wizhat
180    elseif "magical" in desc
181        @setvar "bwiz" wizhat
182        @setvar "nonaspectedwiz" wizhat
183    endif
184endif
185if varexist "bwiz" and find "bwiz" backpack
186    if not find "bmain" self and findlayer self head as hat
187        @setvar "bmain" hat
188    endif
189    if not varexist "bmain"
190        overhead "I need a primary hat or helm to wear.." 88
191        pause 2000
192        overhead "Anything will do, just not a magical wizard hat..." 88
193        stop
194    endif
195endif
196
197if skill "Lockpicking" >= 50 and not findtype "lockpicks" backpack and not timerexists lockpickcheck
198    overhead "I have no Lockpicks..." 38
199    createtimer lockpickcheck
200endif
201if timerexists lockpickcheck
202    if timer lockpickcheck > 21000
203        overhead "I have no Lockpicks..." 38
204        settimer lockpickcheck 0
205    endif
206endif
207if findtype "lockpicks" backpack
208    removetimer lockpickcheck
209endif
210
211if skill "Detect" >= 50 and not findtype "drill" backpack and not timerexists drillcheck
212    overhead "I have no Removal Tool..." 38
213    createtimer drillcheck
214endif
215if timerexists drillcheck
216    if timer drillcheck > 21000
217        overhead "I have no Removal Tool..." 38
218        settimer drillcheck 0
219    endif
220endif
221if findtype "drill" backpack
222    removetimer drillcheck
223endif
224
225if not timerexists frostshelltimer
226    createtimer frostshelltimer
227    settimer frostshelltimer 5000
228endif
229if timerexists frostshellswitch and timer frostshelltimer > 5000 and not cooldown "Aspect" and hp <= 35
230    say "[AspectArmor Frost"
231    getlabel backpack ping
232    if insysmsg "Your armor is already of that aspect"
233        //donothing
234    else
235        cooldown "Aspect" 30000
236        overhead "--Frost Shell Primed--" 2234
237    endif
238    settimer frostshelltimer 0
239endif
240
241if not timerexists frostshellswitch
242    if gumpexists 3527489586
243        gumpclose 3527489586
244        createtimer frostshellswitch
245        overhead "--Auto Shell Enabled--" 2085
246    endif
247endif
248if timerexists frostshellswitch
249    if gumpexists 3527489586
250        gumpclose 3527489586
251        removetimer frostshellswitch
252        overhead "--Auto Shell Disabled--" 1779
253    endif
254endif
255
256if not timerexists checkaspect
257    createtimer checkaspect
258    settimer checkaspect 60000
259elseif timer checkaspect >= 60000 
260    if findlayer self innertorso as aspectarm
261        getlabel aspectarm desc
262        if "aspect" in desc
263            if "air" in desc
264                overhead "<Air Active>" 2263
265            elseif "arcane aspect" in desc
266                overhead "<Arcane Active>" 1560
267            elseif "artisan aspect" in desc
268                overhead "<Artisan Active>" 2096
269            elseif "blood aspect" in desc
270                overhead "<Blood Active>" 2087
271            elseif "command aspect" in desc
272                overhead "<Command Active>" 1782
273            elseif "death aspect" in desc
274                overhead "<Death Active>" 2155
275            elseif "discipline aspect" in desc
276                overhead "<Discipline Active>" 2490
277            elseif "earth aspect" in desc
278                overhead "<Earth Active>" 2767
279            elseif "eldritch aspect" in desc
280                overhead "<Eldritch Active>" 2615
281            elseif "fire aspect" in desc
282                overhead "<Fire Active>" 2635
283            elseif "fortune aspect" in desc
284                overhead "<Fortune Active>" 2843
285            elseif "frost aspect" in desc
286                overhead "<Frost Active>" 2234
287            elseif "gadget aspect" in desc
288                overhead "<Gadget Active>" 2669
289            elseif "harvest aspect" in desc
290                overhead "<Harvest Active>" 2086
291            elseif "holy aspect" in desc
292                overhead "<Holy Active>" 2153
293            elseif "lightning aspect" in desc
294                overhead "<Lightning Active>" 2650
295            elseif "lyric aspect" in desc
296                overhead "<Lyric Active>" 2241
297            elseif "madness aspect" in desc
298                overhead "<Madness Active>" 1060
299            elseif "poison aspect" in desc
300                overhead "<Poison Active>" 2897
301            elseif "shadow aspect" in desc
302                overhead "<Shadow Active>" 1790
303            elseif "void aspect" in desc
304                overhead "<Void Active>" 2599
305            elseif "water aspect" in desc
306                overhead "<Water Active>" 1788
307            elseif "war aspect" in desc
308                overhead "<War Active>" 2503
309            endif
310        else 
311            overhead "No aspect enabled" 45
312        endif
313    endif
314    settimer checkaspect 0
315endif
316
317if timerexists ots
318    removetimer ots
319endif
320
321if timerexists bchestopen
322    removetimer bchestopen
323endif
324
325if not timerexists tab
326    createtimer tab
327endif
328
329if not timerexists getpilf
330    createtimer getpilf
331endif
332
333if not timerexists spellinvis
334    createtimer spellinvis
335    settimer spellinvis 1200
336endif
337
338if not timerexists ACPcheck
339    createtimer ACPcheck
340endif
341
342if skill "Magery" >= 80
343    if timerexists reflect and not findbuff "Magic Reflection"
344        if timer reflect > 30000
345            overhead "--Cast Reflect--" 2122
346            settimer reflect 12000
347        endif
348    endif
349    if findbuff "Magic Reflection" and timerexists reflect
350        removetimer reflect
351    endif
352    if not findbuff "Magic Reflection" and not timerexists reflect
353        createtimer reflect
354    endif
355endif
356
357if skill "Magery" >= 20
358    if timerexists reactive and not findbuff "Reactive Armor"
359        if timer reactive > 30000
360            overhead "--Cast Reactive--" 2117
361            settimer reactive 13500
362        endif
363    endif
364    if findbuff "Reactive Armor" and timerexists reactive
365        removetimer reactive
366    endif
367    if not findbuff "Reactive Armor" and not timerexists reactive
368        createtimer reactive
369    endif
370endif
371
372if skill "Magery" >= 40
373    if timerexists protection and not findbuff "Protection"
374        if timer protection > 30000
375            overhead "--Cast Protection--" 2122
376            settimer protection 9000
377        endif
378    endif
379    if findbuff "Protection" and timerexists protection
380        removetimer protection
381    endif
382    if not findbuff "Protection" and not timerexists protection
383        createtimer protection
384    endif
385endif
386
387if warmode and not hidden and not timerexists brew and not targetexists and findbuff "Bleed" and findtype 50675 backpack as cbrew
388    clearsysmsg 
389    while queued
390        //donothing
391    endwhile
392    dclick cbrew
393    getlabel backpack ping
394    if insysmsg "You drink a cleansing brew"
395        createtimer brew
396    endif
397elseif warmode and not hidden and not timerexists brew and not targetexists and findbuff "Diseased" and findtype 50675 backpack as cbrew
398    while queued
399        //donothing
400    endwhile
401    dclick cbrew
402    getlabel backpack ping
403    if insysmsg "You drink a cleansing brew"
404        createtimer brew
405    endif
406endif
407if timerexists brew
408    if timer brew >= 120000
409        removetimer brew
410    endif
411endif
412
413if not hidden and not casting and findbuff "Weaken" and not targetexists and findtype "White Potion" backpack as stpot
414    while queued
415        //donothing
416    endwhile
417    dclick stpot
418endif
419
420if not timerexists topupstr
421    createtimer topupstr
422    settimer topupstr 30000
423elseif timer topupstr >= 30000 and not hidden and not casting and str = 100 and findtype "White Potion" backpack as stpot
424    while queued
425        //donothing
426    endwhile
427    overhead "--Drink Strength--" 2041
428    settimer topupstr 0
429endif
430
431if not timerexists topupres
432    createtimer topupres
433    settimer topupres 30000
434elseif timer topupres >= 30000 and not hidden and not casting and not findbuff "Magic Resist Potion" and findtype "Black Potion" backpack as respot
435    while queued
436        //donothing
437    endwhile
438    overhead "--Drink Resist--" 2031
439    settimer topupres 0
440endif
441
442if not targetexists and not hidden and not casting and stam <= 4 and findtype "Red Potion" backpack as redpot
443    while queued
444        //donothing
445    endwhile
446    dclick redpot
447endif
448
449if not hidden and paralyzed and not targetexists and findtype "pouch" backpack 38
450    say "[Pouch"
451endif
452
453if not hidden and not casting and poisoned and not targetexists and findtype "Orange Potion" backpack as curepot
454    while queued
455        //donothing
456    endwhile
457    dclick curepot
458endif
459
460if not timerexists chestsensetimer
461    createtimer chestsensetimer
462    settimer chestsensetimer 200
463endif
464if not timerexists timesenseswitch and timer chestsensetimer >= 200
465    if not gumpexists 736038070 and skill "Lockpicking" >= 50 
466        for 18
467        if index > 0 and findtype 3651|3649|3648|3650|3708|2475 ground -1 -1 index as chest
468                getlabel chest desc
469                if "lock" in desc
470                    overhead "{{desc}}" 2085 chest
471                    break
472                else 
473                    overhead "{{desc}}" 1779 chest
474                    @ignore chest
475                endif
476            endif
477        endfor
478        @clearignore
479    endif
480    settimer chestsensetimer 0
481endif
482
483if not timerexists timesenseswitch
484    if gumpexists 3352257441
485        gumpclose 3352257441
486        createtimer timesenseswitch
487        overhead "--Time Sense Enabled--" 88
488    endif
489endif
490if timerexists timesenseswitch
491    if gumpexists 3352257441
492        gumpclose 3352257441
493        removetimer timesenseswitch
494        overhead "--Time Sense Disabled--" 38
495    endif
496endif
497if timerexists timesenseswitch and not targetexists and not casting
498    if not timerexists bappykeytimer
499        createtimer bappykeytimer
500        settimer bappykeytimer 5500
501    elseif timer bappykeytimer >= 5500 and findtype "4112" backpack as bappykey
502        overhead "*key*" 78 bappykey
503        settimer bappykeytimer 0
504    endif
505    if not timerexists timesensecontainer
506        createtimer timesensecontainer
507        settimer timesensecontainer 1000
508    endif
509    if timer timesensecontainer >= 1000
510        for 18
511            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
512                getlabel dungeonfloorcontainers desc
513                overhead "*search*" 88 dungeonfloorcontainers
514                @ignore dungeonfloorcontainers
515            endif
516            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
517                break
518            endif
519            if warmode and findtype "barred metal door|metal door|iron gate" ground -1 -1 2
520                break
521            endif
522            if warmode and findtype 4239|4240 ground -1 -1 2
523                break
524            endif
525        endfor
526        @clearignore
527        settimer timesensecontainer 0
528    endif
529    if not timerexists switchandstufftimer
530        createtimer switchandstufftimer
531        settimer switchandstufftimer 1000
532    endif
533    if timer switchandstufftimer >= 1000
534        for 18
535            if index > 0 and findtype 4239|4240  ground -1 -1 index as switchandstuff
536                getlabel switchandstuff desc
537                overhead "*switch*" 78 switchandstuff
538                @ignore switchandstuff
539            endif
540        endfor
541        @clearignore
542        settimer switchandstufftimer 0
543    endif
544    @clearignore 
545    if warmode and findtype 4239|4240 ground -1 -1 2 as timewallswitch
546        dclick timewallswitch
547        warmode off
548        getlabel backpack ping
549    endif
550    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
551        @setvar "baptimecontainer" timecontainer
552        while queued
553            //donothing
554        endwhile
555        getlabel timecontainer desc
556        if "the remains of" in desc
557            overhead "*avatar corpse*" 45 timecontainer
558        else
559            dclick timecontainer
560            pause 500
561            getlabel backpack ping
562            if gumpexists 736038070 and findtype 5373 backpack
563                gumpresponse 4
564            endif
565            @ignore timecontainer
566            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
567                while queued
568                    //donothing
569                endwhile
570                dclick innercontainer
571                pause 500
572                getlabel backpack ping
573                @ignore innercontainer
574            endwhile
575            @unignore timecontainer
576        endif
577        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
578            getlabel checkunid desc
579            if "unidentified" in desc
580                hotkey 'Grab Item' 
581                target checkunid
582                overhead "*looting*" 2091 timecontainer
583                while queued
584                    //donothing
585                endwhile
586            else 
587                @ignore checkunid
588            endif
589            if insysmsg "That container cannot hold more weight."
590                break
591            endif
592            if not find "baptimecontainer" ground -1 -1 2
593                break
594            endif
595        endwhile
596        while findtype 3827 timecontainer 0 as zeroscroll
597            @ignore zeroscroll
598        endwhile
599        while findtype 7154 timecontainer 0 as zeroingot
600            @ignore zeroingot
601        endwhile
602        while findtype 4225 timecontainer 0 as zeroleather
603            @ignore zeroleather
604        endwhile
605        while findtype 7127 timecontainer 0 as zeroboard
606            @ignore zeroboard
607        endwhile
608        while findtype 7154 timecontainer 2419 as zeroingot
609            @ignore zeroingot
610        endwhile
611        while findtype 4225 timecontainer 2419 as zeroleather
612            @ignore zeroleather
613        endwhile
614        while findtype 7127 timecontainer 2419 as zeroboard
615            @ignore zeroboard
616        endwhile
617        while findtype 7154 timecontainer 2406 as zeroingot
618            @ignore zeroingot
619        endwhile
620        while findtype 4225 timecontainer 2406 as zeroleather
621            @ignore zeroleather
622        endwhile
623        while findtype 7127 timecontainer 2406 as zeroboard
624            @ignore zeroboard
625        endwhile
626        while findtype 7154 timecontainer 2413 as zeroingot
627            @ignore zeroingot
628        endwhile
629        while findtype 4225 timecontainer 2413 as zeroleather
630            @ignore zeroleather
631        endwhile
632        while findtype 7127 timecontainer 2413 as zeroboard
633            @ignore zeroboard
634        endwhile
635        while findtype 7154 timecontainer 2418 as zeroingot
636            @ignore zeroingot
637        endwhile
638        while findtype 4225 timecontainer 2418 as zeroleather
639            @ignore zeroleather
640        endwhile
641        while findtype 7127 timecontainer 2418 as zeroboard
642            @ignore zeroboard
643        endwhile
644        while findtype 7154 timecontainer 2213 as zeroingot  
645            @ignore zeroingot
646        endwhile
647        while findtype 4225 timecontainer 2213 as zeroleather
648            @ignore zeroleather
649        endwhile
650        while findtype 7127 timecontainer 2213 as zeroboard
651            @ignore zeroboard
652        endwhile
653        while findtype 5901|5899|5903|5905 timecontainer as timefootwear
654            getlabel timefootwear desc
655            if "(hue" in desc
656                break
657            else 
658                @ignore timefootwear
659            endif
660        endwhile
661        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|7127|4225|12686|19985|19981|19984|19982|19983|19991|19989|19986|19987|19988|19994|19995|19992|19993|19990|19980|19977|19976|19978|7154|19979|43423|7154|4225|7127|3861|3821" timecontainer as bitem
662            hotkey 'Grab Item' 
663            target bitem
664            overhead "*looting*" 2091 timecontainer
665            while queued
666                //donothing
667            endwhile
668            if insysmsg "That container cannot hold more weight."
669                break
670            endif
671            if not find "baptimecontainer" ground -1 -1 2
672                break
673            endif
674        endwhile
675        @ignore timecontainer
676    endwhile
677endif
678if skill "Lockpicking" >= 20 and timerexists timesenseswitch and warmode and findtype "barred metal door|metal door|iron gate" ground -1 -1 2
679    if findtype 5373 backpack as picks
680        clearsysmsg 
681        overhead "Which door shall I pick?" 88
682        hotkey "Set Last Target"
683        wft 1000
684        while targetexists 
685            if not findtype "barred metal door|metal door|iron gate" ground -1 -1 2
686                break
687            endif
688        endwhile
689        @setvar "bapdoorpick" lasttarget 
690        overhead "Time is of the essence..." 88
691        for 2000
692            if not timerexists doorpicktimer
693                createtimer doorpicktimer
694                settimer doorpicktimer 3150
695            endif
696            if timer doorpicktimer >= 3150
697                dclick picks
698                wft 1000
699                target bapdoorpick
700                overhead "*picking*" 1060 bapdoorpick
701                getlabel backpack ping
702                settimer doorpicktimer 0
703            endif
704            if insysmsg "That is not locked"
705                warmode "off"
706                getlabel backpack ping
707                break
708            endif
709            if insysmsg "Target cannot be seen"
710                warmode "off"
711                getlabel backpack ping
712                break
713            endif
714            if insysmsg "You pick the lock!"
715                overhead "What lay beyond this door..." 87
716                dclick bapdoorpick
717                warmode "off"
718                getlabel backpack ping
719                break
720            endif
721            if not findtype 5373 backpack
722                overhead "Argh, it was my last pick..." 38
723                warmode "off"
724                getlabel backpack ping
725                break
726            endif
727            if not findtype "barred metal door" ground -1 -1 2
728                warmode "off"
729                getlabel backpack ping
730                break
731            endif
732            if not warmode 
733                break
734            endif
735            if insysmsg "You have worn out your tool"
736                overhead "This tool is worn out!" 805
737            endif
738            if not findtype 5373 backpack
739                break
740            endif
741            if timerexists frostshellswitch and timer frostshelltimer > 5000 and not cooldown "Aspect" and hp <= 35
742                say "[AspectArmor Frost"
743                getlabel backpack ping
744                if insysmsg "Your armor is already of that aspect"
745                    //donothing
746                else
747                    cooldown "Aspect" 30000
748                    overhead "--Frost Shell Primed--" 2234
749                endif
750                settimer frostshelltimer 0
751            endif
752            if not cooldown "Move" and not hidden and not cooldown "Hiding" and not cooldown "Stealth" and not cooldown "Stealing" and skill "Hiding" >= 80
753                skill "Hiding"
754                warmode on
755                getlabel backpack ping
756                if hidden
757                    getlabel backpack ping
758                    cooldown "Hiding" 10000
759                endif
760            endif
761            if not cooldown "Move" and findbuff "Invisibility" and not cooldown "Hiding" and not cooldown "Stealth" and not cooldown "Stealing" and skill "Hiding" >= 80
762                skill "Hiding"
763                warmode on
764                getlabel backpack ping
765                if hidden
766                    getlabel backpack ping
767                    cooldown "Hiding" 10000
768                    removetimer ots
769                endif
770            endif
771            if hidden and not cooldown "Hiding" and not cooldown "Stealth" and not timerexists ots and skill "Stealth" >= 80
772                skill "Stealth"
773                getlabel backpack ping
774                if not timerexists ots
775                    createtimer ots
776                endif
777            endif
778            if insysmsg "move quietly"
779                getlabel backpack ping
780                cooldown "Stealth" 10000
781            endif
782            if not cooldown "Move" and hidden and not cooldown "Hiding" and not cooldown "Stealth" and insysmsg "hide first" and skill "Hiding" >= 80
783                pause 1000
784                getlabel backpack ping
785                skill "Hiding"
786                getlabel backpack ping
787                if hidden
788                    getlabel backpack ping
789                    cooldown "Hiding" 10000
790                endif
791                removetimer ots
792            endif
793            if varexist "bwiz" and find "bwiz" backpack and find "bmain" self
794                if not targetexists and not casting and skill "Stealth" >= 80 and hidden and stam = maxstam
795                    while queued
796                        //donothing
797                    endwhile
798                    dclick "bwiz"
799                    while queued
800                        //donothing
801                    endwhile
802                    pause 30
803                    dclick "bmain"
804                    pause 500
805                    getlabel backpack ping
806                endif
807                if not targetexists and not casting and not findlayer self head and find "bmain" self
808                    while queued
809                        //donothing
810                    endwhile
811                    dclick "bmain"
812                    pause 500
813                    getlabel backpack ping
814                endif
815            endif
816            if varexist "bwiz" and find "bmain" self
817                if not targetexists and not casting and not find "bwiz" backpack
818                    while queued
819                        //donothing
820                    endwhile
821                    dclick "bmain"
822                    pause 500
823                    getlabel backpack ping
824                endif
825            endif
826        endfor
827     else 
828         overhead "I am out of lockpicks!" 38
829         warmode "off"
830         getlabel backpack ping
831     endif
832endif
833
834if not timerexists autopilferswitch
835    if gumpexists 2955404556
836        gumpclose 2955404556
837        createtimer autopilferswitch
838        overhead "--Auto Pilfer Enabled--" 88
839    endif
840endif
841if timerexists autopilferswitch
842    if gumpexists 2955404556
843        gumpclose 2955404556
844        removetimer autopilferswitch
845        overhead "--Auto Pilfer Disabled--" 38
846    endif
847endif
848if timerexists autopilferswitch and skill "Stealing" >= 80 and warmode and not targetexists 
849    if timer getpilf >= 600
850        settimer getpilf 0
851        for 12
852            hotkey 'Target Closest Murderer Monster'
853            hotkey 'Next Grey Monster Target'
854            @setvar pilfertarget lasttarget
855            if find pilfertarget ground -1 -1 2
856                overhead "*pilfer target*" 2091 pilfertarget
857                break
858            endif
859        endfor
860    endif
861    if hidden
862        while find pilfertarget ground -1 -1 2
863            if not cooldown "Hiding" and not cooldown "Stealth" and not cooldown "Stealing"
864                clearsysmsg 
865                if not targetexists 
866                    if not timerexists repeatinvis and findbuff "Invisibility"
867                        settimer spellinvis 0
868                    endif
869                    hotkey 'Cancel Current Target'
870                    skill "Stealing"
871                    wft 1000
872                    target pilfertarget
873                    hotkey 'Cancel Current Target'
874                endif
875                getlabel backpack ping
876                break
877            endif
878            if not warmode 
879                break
880            endif
881        endwhile 
882        if insysmsg "You Steal"
883            overhead "The goods are mine!" 2091
884            cooldown "Stealing" 5000
885            removetimer repeatinvis
886            if not hidden
887                if skill "Stealth" >= 80 and not cooldown "Smoke bomb" and not cooldown "Hiding" and not cooldown "Stealth" and findtype 52149 backpack as sbombs
888                    while queued
889                        //donothing
890                    endwhile
891                    dclick sbombs
892                    getlabel backpack ping
893                    if hidden
894                        if not cooldown "Smoke bomb"
895                            cooldown "Smoke bomb" 60000
896                        endif
897                    else 
898                        overhead "I teleported too recently to Smoke..." 45
899                    endif
900                endif
901                if timer spellinvis >= 1200 and not hidden and skill "Magery" >= 80 and mana >= 20
902                    hotkey 'Cancel Current Target'
903                    cast "Invisibility"
904                    wft 3000
905                    target self
906                    warmode on
907                    warmode off
908                    hotkey 'Cancel Current Target'
909                endif
910            endif
911        endif
912        if insysmsg "The creature is barren"
913            overhead "Another thief beat me to it..." 1779
914            cooldown "Stealing" 5000
915        endif
916        if insysmsg "That is too far away"
917            overhead "Argh, not close enough..." 1779
918            cooldown "Stealing" 5000
919        endif
920        if insysmsg "Target cannot be seen"
921            overhead "Argh, I cant see it..." 1779
922            cooldown "Stealing" 5000
923        endif
924        if insysmsg "You have already stolen"
925            overhead "I have already pilfered this..." 1779
926            cooldown "Stealing" 5000
927        endif
928        if insysmsg "You fail"
929            overhead "Argh, I failed to Pilfer..." 1779
930            cooldown "Stealing" 5000
931            if skill "Stealth" >= 80 and not cooldown "Smoke bomb" and not cooldown "Hiding" and not cooldown "Stealth" and findtype 52149 backpack as sbombs
932                while queued
933                    //donothing
934                endwhile
935                dclick sbombs
936                getlabel backpack ping
937                if hidden
938                    if not cooldown "Smoke bomb"
939                        cooldown "Smoke bomb" 60000
940                    endif
941                else 
942                    overhead "I teleported too recently to Smoke..." 45
943                endif
944            endif
945            if timer spellinvis >= 1200 and not hidden and skill "Magery" >= 80 and mana >= 20
946                hotkey 'Cancel Current Target'
947                cast "Invisibility"
948                wft 3000
949                target self
950                warmode on
951                warmode off
952                hotkey 'Cancel Current Target'
953                createtimer repeatinvis
954            endif
955        endif
956    elseif not hidden
957        while find pilfertarget ground -1 -1 2
958            if not cooldown "Hiding" and not cooldown "Stealth" and not cooldown "Stealing"
959                clearsysmsg 
960                if not targetexists 
961                    skill "Stealing"
962                    wft 1000
963                    target pilfertarget
964                    hotkey 'Cancel Current Target'
965                endif
966                getlabel backpack ping
967                break
968            endif
969        endwhile 
970        if insysmsg "retaliate"
971            overhead "Argh, I failed to Pilfer" 1779
972            cooldown "Stealing" 5000
973            if not hidden and findtype "yellow potion" backpack as healpot
974                while queued
975                    //donothing
976                endwhile
977                dclick healpot
978            endif
979        endif
980        if insysmsg "You Steal"
981            overhead "The goods are mine!" 2091
982            cooldown "Stealing" 5000
983        endif
984        if insysmsg "The creature is barren"
985            overhead "Another thief beat me to it..." 1779
986            cooldown "Stealing" 5000
987        endif
988        if insysmsg "That is too far away"
989            overhead "Argh, not close enough..." 1779
990            cooldown "Stealing" 5000
991        endif
992        if insysmsg "Target cannot be seen"
993            overhead "Argh, I cant see it..." 1779
994            cooldown "Stealing" 5000
995        endif
996        if insysmsg "You have already stolen"
997            overhead "I have already pilfered this..." 1779
998            cooldown "Stealing" 5000
999        endif
1000    endif
1001endif
1002
1003if gumpexists 736038070
1004    gumpclose 736038070
1005endif
1006
1007if not casting and skill "Lockpicking" >= 50 and findtype 3651|3649|3648|3650|3708|2475 ground -1 -1 2 as bchest and not targetexists
1008    clearsysmsg 
1009    if not warmode 
1010        warmode on
1011        warmode off
1012    endif
1013    while queued
1014        //donothing
1015    endwhile
1016    dclick bchest
1017    @setvar "bchest" lastobject
1018    getlabel bchest desc
1019    if "(locked and trapped)" in desc
1020        createtimer activaterecycle
1021    endif
1022    waitforgump 736038070 1000
1023    if gumpexists 736038070 and not ingump "Cleared Of Traps" 736038070
1024        while gumpexists 736038070
1025            gumpresponse 7
1026            waitforgump 736038070 1000
1027            if insysmsg "You attempt to remove traps"
1028                clearsysmsg
1029                break
1030            endif
1031            if insysmsg "That appears to be devoid"
1032                clearsysmsg
1033                break
1034            endif
1035            if not findtype 3651|3649|3648|3650|3708|2475 ground -1 -1 2
1036                removetimer activaterecycle
1037                break
1038            endif
1039            if not cooldown "Move" and not hidden and not cooldown "Hiding" and not cooldown "Stealth" and not cooldown "Stealing" and not warmode and skill "Hiding" >= 80
1040                skill "Hiding"
1041                getlabel backpack ping
1042                if hidden
1043                    getlabel backpack ping
1044                    cooldown "Hiding" 10000
1045                endif
1046            endif
1047        endwhile
1048        if not hidden
1049            if followers >= 1
1050                if find "bsummon1"
1051                    menu bsummon1 2
1052                    wft 1000
1053                    target self
1054                    getlabel backpack ping
1055                    if find "bsummon2"
1056                        menu bsummon2 2
1057                        wft 1000
1058                        target self  
1059                    endif
1060                elseif find "bsummon2"
1061                    menu bsummon2 2
1062                    wft 1000
1063                    target self
1064                    getlabel backpack ping
1065                    if find "bsummon1"
1066                        menu bsummon1 2
1067                        wft 1000
1068                        target self  
1069                    endif
1070                endif
1071            endif
1072            if not cooldown "Move" and not warmode and not cooldown "Hiding" and not cooldown "Stealth" and skill "Hiding" >= 80
1073                warmode on
1074                warmode off
1075                skill "Hiding"
1076                getlabel backpack ping
1077                if hidden
1078                    getlabel backpack ping
1079                    cooldown "Hiding" 10000
1080                endif
1081            endif
1082        endif
1083        overhead "*disarming*" 1060 bchest
1084        while not dead
1085            if timerexists frostshellswitch and timer frostshelltimer > 5000 and not cooldown "Aspect" and hp <= 35
1086                say "[AspectArmor Frost"
1087                getlabel backpack ping
1088                if insysmsg "Your armor is already of that aspect"
1089                    //donothing
1090                else
1091                    cooldown "Aspect" 30000
1092                    overhead "--Frost Shell Primed--" 2234
1093                endif
1094                settimer frostshelltimer 0
1095            endif
1096            if not cooldown "Move" and not hidden and not cooldown "Hiding" and not cooldown "Stealth" and not cooldown "Stealing" and not warmode and skill "Hiding" >= 80
1097                warmode on
1098                warmode off
1099                skill "Hiding"
1100                getlabel backpack ping
1101                if hidden
1102                    getlabel backpack ping
1103                    cooldown "Hiding" 10000
1104                endif
1105            endif
1106            if not cooldown "Move" and findbuff "Invisibility" and not cooldown "Hiding" and not cooldown "Stealth" and not cooldown "Stealing" and not warmode and skill "Hiding" >= 80
1107                skill "Hiding"
1108                getlabel backpack ping
1109                if hidden
1110                    getlabel backpack ping
1111                    cooldown "Hiding" 10000
1112                    removetimer ots
1113                endif
1114            endif
1115            if not warmode and hidden and not cooldown "Hiding" and not cooldown "Stealth" and not timerexists ots and skill "Stealth" >= 80
1116                skill "Stealth"
1117                getlabel backpack ping
1118                if not timerexists ots
1119                    createtimer ots
1120                endif
1121            endif
1122            if insysmsg "move quietly"
1123                getlabel backpack ping
1124                cooldown "Stealth" 10000
1125            endif
1126            if not cooldown "Move" and hidden and not cooldown "Hiding" and not cooldown "Stealth" and insysmsg "hide first" and skill "Hiding" >= 80
1127                pause 1000
1128                getlabel backpack ping
1129                skill "Hiding"
1130                getlabel backpack ping
1131                if hidden
1132                    getlabel backpack ping
1133                    cooldown "Hiding" 10000
1134                endif
1135                removetimer ots
1136            endif
1137            if insysmsg  "You have successfully cleared it of traps"
1138                overhead "*tick*" 2091 bchest
1139                break
1140            endif
1141            if not findtype 3651|3649|3648|3650|3708|2475 ground -1 -1 2
1142                removetimer activaterecycle
1143                break
1144            endif
1145            if find "bchest" ground -1 -1 2
1146# Note for author:
1147# The break here will not work on special Urkton Chests or possibly new Time Dungeon chests.
1148# It is not a big deal as this part is only for a specific sceanario in which another player
1149# opens a chest while you are trying to snatch their chest.  It will break into looting instantly.
1150# I still want to figure out a better way here.
1151                getlabel bchest desc
1152                if "wooden" in desc
1153                    //do nothing
1154                elseif "metal" in desc
1155                    //do nothing
1156                elseif "lock" in desc
1157                    //do nothing
1158                else 
1159                    overhead "*pop*" 2091 bchest
1160                    break
1161                endif
1162            endif
1163            if ingump "Cleared Of Traps" 736038070
1164                overhead "*tick*" 2091 bchest
1165                break
1166            endif
1167            if timer tab > 1000
1168                if not warmode 
1169                    warmode on
1170                    warmode off
1171                endif
1172                settimer tab 0
1173            endif
1174            if insysmsg "You make some progress towards clearing it of traps"
1175                overhead "*clink*" 810 bchest
1176            endif
1177            if insysmsg "You have worn out your tool"
1178                overhead "This tool is worn out!" 805
1179            endif
1180            if ingump "Shrines" 341416395
1181                if not timerexists "Wacp" and skill "Magery" >= 50
1182                    gumpclose 341416395
1183                    overhead "Wall of Stone ACP ------Enabled------" 2031
1184                    createtimer "Wall"
1185                    createtimer "Wacp"
1186                    removetimer "Nacp"
1187                    removetimer "Eacp"
1188                    removetimer "Tacp"
1189                    removetimer "Racp"
1190                    removetimer "Elemental"
1191                    removetimer "Tele"
1192                    removetimer "None"
1193                    removetimer "Reveal" 
1194                elseif not timerexists "Eacp" and skill "Spirit Speak" >= 80 and skill "Magery" >= 100
1195                    gumpclose 341416395
1196                    overhead "Earth Elemental ACP ------Enabled------" 1501
1197                    createtimer "Elemental"
1198                    createtimer "Eacp"
1199                    removetimer "Nacp"
1200                    removetimer "Tacp"
1201                    removetimer "Racp"
1202                    removetimer "Wall"
1203                    removetimer "Tele"
1204                    removetimer "None"
1205                    removetimer "Reveal" 
1206                elseif not timerexists "Tacp" and skill "Magery" >= 50
1207                    gumpclose 341416395
1208                    overhead "Teleport + Rope ACP ------Enabled------" 1272
1209                    createtimer "Tele"
1210                    createtimer "Tacp"
1211                    removetimer "Nacp"
1212                    removetimer "Racp"
1213                    removetimer "Wall"
1214                    removetimer "Elemental"
1215                    removetimer "None" 
1216                    removetimer "Reveal"  
1217                elseif not timerexists "Racp" and skill "Magery" >= 80
1218                    gumpclose 341416395
1219                    overhead "Reveal Spellcast ACP ------Enabled------" 2040
1220                    createtimer "Racp"
1221                    createtimer "Reveal"
1222                    removetimer "Nacp"
1223                    removetimer "Wall"
1224                    removetimer "Elemental"
1225                    removetimer "Tele"  
1226                    removetimer "None"    
1227                elseif not timerexists "Nacp"
1228                    gumpclose 341416395
1229                    overhead "Auto Chest Protection ------Disabled------" 38
1230                    createtimer "Nacp"
1231                    removetimer "Eacp"
1232                    removetimer "Tacp"
1233                    removetimer "Wacp"
1234                    removetimer "Wall"
1235                    removetimer "Elemental"
1236                    removetimer "Tele"
1237                    removetimer "Reveal" 
1238                endif
1239            endif
1240            if insysmsg "You have been revealed!" 
1241                if timerexists "Tele" and mana >= 9
1242                    say "[Anger"
1243                    cast 'Teleport'
1244                    if findtype "rope" backpack as rope
1245                        dclick rope
1246                    else 
1247                        overhead "I am out of rope..." 34
1248                    endif
1249                    removetimer "Tacp"
1250                    removetimer "Tele"
1251                    createtimer "Eacp"
1252                    createtimer "Nacp"
1253                    createtimer "Wacp"
1254                    createtimer "Racp"
1255                    dclicktype "atlas" backpack
1256                elseif timerexists "Wall" and mana >= 9
1257                    say "[Anger"
1258                    cast 'Wall of Stone'
1259                    removetimer "Wacp"
1260                    removetimer "Wall"
1261                    createtimer "Eacp"
1262                    createtimer "Nacp"
1263                    createtimer "Tacp"
1264                    createtimer "Racp"
1265                    dclicktype "atlas" backpack
1266                elseif timerexists "Elemental" and mana >= 50
1267                    say "[Anger"
1268                    cast 'Earth Elemental'
1269                    removetimer "Eacp"
1270                    removetimer "Elemental"
1271                    createtimer "Wacp"
1272                    createtimer "Nacp"
1273                    createtimer "Tacp"
1274                    createtimer "Racp"
1275                    dclicktype "atlas" backpack
1276                elseif timerexists "Reveal" and mana >= 20
1277                    say "[Anger"
1278                    cast 'Reveal'
1279                    removetimer "Racp"
1280                    removetimer "Reveal"
1281                    createtimer "Wacp"
1282                    createtimer "Nacp"
1283                    createtimer "Tacp"
1284                    createtimer "Eacp"
1285                    dclicktype "atlas" backpack
1286                else
1287                    say "[Anger"
1288                endif
1289                if timerexists frostshellswitch and not cooldown "Aspect"
1290                    say "[AspectArmor Frost"
1291                    getlabel backpack ping
1292                    if insysmsg "Your armor is already of that aspect"
1293                        //donothing
1294                    else
1295                        cooldown "Aspect" 30000
1296                        overhead "--Frost Shell Primed--" 2234
1297                    endif
1298                    settimer frostshelltimer 0
1299                endif
1300            endif
1301            if timer ACPcheck > 42000
1302                if timerexists "Tele"
1303                    overhead "Teleport ACP active" 1272
1304                endif
1305                if timerexists "Wall"
1306                    overhead "Wall ACP active" 2031
1307                endif
1308                if timerexists "Elemental"
1309                    overhead "Elemental ACP active" 1501
1310                endif
1311                if timerexists "Reveal"
1312                    overhead "Reveal ACP active" 2040
1313                endif
1314                settimer ACPcheck 0
1315            endif
1316            if insysmsg "Another player"
1317                gumpclose 736038070
1318                dclick bchest
1319                waitforgump 736038070 1000
1320                gumpresponse 7
1321                waitforgump 736038070 1000
1322            endif
1323            if hidden and timerexists activaterecycle and findtype "sewing kit|saw|pen and ink|tongs|tool kit" backpack as breakdowntool
1324                if findtype 20496 backpack as IDwand
1325                    clearsysmsg 
1326                    if findtype 3834 backpack 0 as bbook
1327                        @ignore bbook
1328                    endif
1329                    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
1330                        getlabel IDitem desc
1331                        if "unidentified" in desc
1332                            while queued
1333                                //donothing
1334                            endwhile
1335                            dclick IDwand
1336                            wft 1000
1337                            target IDitem
1338                            waitforsysmsg "You identify the item." 1000
1339                            getlabel IDitem desc
1340                            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
1341                                @ignore IDitem
1342                                overhead "This one is worth keeping..." 2091
1343                                overhead "*strong magic*" 2091 IDitem
1344                                say "[surprise" 2091
1345                            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
1346                                overhead "*trash*" 1779 IDitem
1347                                while not gumpexists 949095101
1348                                    while queued
1349                                        //donothing
1350                                    endwhile
1351                                    dclick breakdowntool
1352                                    waitforgump 949095101 1000
1353                                endwhile
1354                                while not ingump "Recycle Single Item" 949095101
1355                                    gumpresponse 2
1356                                    waitforgump 949095101 1000
1357                                endwhile                                
1358                                gumpresponse 3
1359                                waitforgump 949095101 1000
1360                                target IDitem
1361                                getlabel backpack ping
1362                                pause 300
1363                                gumpclose 949095101
1364                            else
1365                                @ignore IDitem
1366                            endif
1367                        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
1368                            @ignore IDitem
1369                        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
1370                            overhead "*trash*" 1779 IDitem
1371                            while not gumpexists 949095101
1372                                while queued
1373                                    //donothing
1374                                endwhile
1375                                dclick breakdowntool
1376                                waitforgump 949095101 1000
1377                            endwhile
1378                            while not ingump "Recycle Single Item" 949095101
1379                                gumpresponse 2
1380                                waitforgump 949095101 1000
1381                            endwhile                                
1382                            gumpresponse 3
1383                            waitforgump 949095101 1000
1384                            target IDitem
1385                            getlabel backpack ping
1386                            pause 300
1387                            gumpclose 949095101
1388                        else
1389                            @ignore IDitem
1390                        endif
1391                        if not findtype 20496 backpack
1392                            break
1393                        endif
1394                    endwhile
1395                    if gumpexists 949095101
1396                        gumpclose 949095101
1397                    endif
1398                endif
1399                if targetexists 
1400                    hotkey "Cancel Current Target"
1401                endif
1402            endif
1403            if varexist "bwiz" and find "bwiz" backpack and find "bmain" self
1404                if not targetexists and not casting and skill "Stealth" >= 80 and hidden and stam = maxstam
1405                    while queued
1406                        //donothing
1407                    endwhile
1408                    dclick "bwiz"
1409                    while queued
1410                        //donothing
1411                    endwhile
1412                    pause 30
1413                    dclick "bmain"
1414                    pause 500
1415                    getlabel backpack ping
1416                endif
1417                if not targetexists and not casting and not findlayer self head and find "bmain" self
1418                    while queued
1419                        //donothing
1420                    endwhile
1421                    dclick "bmain"
1422                    pause 500
1423                    getlabel backpack ping
1424                endif
1425            endif
1426            if varexist "bwiz" and find "bmain" self
1427                if not targetexists and not casting and not find "bwiz" backpack
1428                    while queued
1429                        //donothing
1430                    endwhile
1431                    dclick "bmain"
1432                    pause 500
1433                    getlabel backpack ping
1434                endif
1435            endif
1436        endwhile
1437        waitforgump 736038070 1000
1438    endif
1439    if not casting and gumpexists 736038070 and ingump "Cleared Of Traps" 736038070
1440        while gumpexists 736038070
1441            dclick bchest
1442            gumpresponse 4
1443            waitforgump 736038070 1000
1444            if insysmsg "You attempt to pick the lock"
1445                clearsysmsg
1446                break
1447            endif
1448            if insysmsg "It appears to be unlocked"
1449                clearsysmsg
1450                break
1451            endif
1452            if not cooldown "Move" and not hidden and not cooldown "Hiding" and not cooldown "Stealth" and not cooldown "Stealing" and not warmode and skill "Hiding" >= 80
1453                skill "Hiding"
1454                getlabel backpack ping
1455                if hidden
1456                    getlabel backpack ping
1457                    cooldown "Hiding" 10000
1458                endif
1459            endif
1460        endwhile
1461        if not hidden
1462            if followers >= 1
1463                if find "bsummon1"
1464                    menu bsummon1 2
1465                    wft 1000
1466                    target self
1467                    getlabel backpack ping
1468                    if find "bsummon2"
1469                        menu bsummon2 2
1470                        wft 1000
1471                        target self  
1472                    endif
1473                elseif find "bsummon2"
1474                    menu bsummon2 2
1475                    wft 1000
1476                    target self
1477                    getlabel backpack ping
1478                    if find "bsummon1"
1479                        menu bsummon1 2
1480                        wft 1000
1481                        target self  
1482                    endif
1483                endif
1484            endif
1485            if not cooldown "Move" and not warmode and not cooldown "Hiding" and not cooldown "Stealth" and skill "Hiding" >= 80
1486                warmode on
1487                warmode off
1488                skill "Hiding"
1489                getlabel backpack ping
1490                if hidden
1491                    getlabel backpack ping
1492                    cooldown "Hiding" 10000
1493                endif
1494            endif
1495        endif
1496        overhead "*picking*" 1060 bchest
1497        while not dead
1498            if timerexists frostshellswitch and timer frostshelltimer > 5000 and not cooldown "Aspect" and hp <= 35
1499                say "[AspectArmor Frost"
1500                getlabel backpack ping
1501                if insysmsg "Your armor is already of that aspect"
1502                    //donothing
1503                else
1504                    cooldown "Aspect" 30000
1505                    overhead "--Frost Shell Primed--" 2234
1506                endif
1507                settimer frostshelltimer 0
1508            endif
1509            if not cooldown "Move" and not hidden and not cooldown "Hiding" and not cooldown "Stealth" and not cooldown "Stealing" and not warmode and skill "Hiding" >= 80
1510                warmode on
1511                warmode off
1512                skill "Hiding"
1513                getlabel backpack ping
1514                if hidden
1515                    getlabel backpack ping
1516                    cooldown "Hiding" 10000
1517                endif
1518            endif
1519            if not cooldown "Move" and findbuff "Invisibility" and not cooldown "Hiding" and not cooldown "Stealth" and not cooldown "Stealing" and not warmode and skill "Hiding" >= 80
1520                skill "Hiding"
1521                getlabel backpack ping
1522                if hidden
1523                    getlabel backpack ping
1524                    cooldown "Hiding" 10000
1525                    removetimer ots
1526                endif
1527            endif
1528            if not warmode and hidden and not cooldown "Hiding" and not cooldown "Stealth" and not timerexists ots and skill "Stealth" >= 80
1529                skill "Stealth"
1530                getlabel backpack ping
1531                if not timerexists ots
1532                    createtimer ots
1533                endif
1534            endif
1535            if insysmsg "move quietly"
1536                getlabel backpack ping
1537                cooldown "Stealth" 10000
1538            endif
1539            if not cooldown "Move" and hidden and not cooldown "Hiding" and not cooldown "Stealth" and insysmsg "hide first" and skill "Hiding" >= 80
1540                pause 1000
1541                getlabel backpack ping
1542                skill "Hiding"
1543                getlabel backpack ping
1544                if hidden
1545                    getlabel backpack ping
1546                    cooldown "Hiding" 10000
1547                endif
1548                removetimer ots
1549            endif
1550            if insysmsg "You successfully pick the lock"
1551                overhead "*pop*" 2091 bchest
1552                break
1553            endif
1554            if not findtype 3651|3649|3648|3650|3708|2475 ground -1 -1 2
1555                removetimer activaterecycle
1556                break
1557            endif
1558            if find "bchest" ground -1 -1 2
1559# Note for author:
1560# The break here will not work on special Urkton Chests or possibly new Time Dungeon chests.
1561# It is not a big deal as this part is only for a specific sceanario in which another player
1562# opens a chest while you are trying to snatch their chest.  It will break into looting instantly.
1563# I still want to figure out a better way here.
1564                getlabel bchest desc
1565                if "wooden" in desc
1566                    //do nothing
1567                elseif "metal" in desc
1568                    //do nothing
1569                elseif "lock" in desc
1570                    //do nothing
1571                else 
1572                    overhead "*pop*" 2091 bchest
1573                    break
1574                endif
1575            endif
1576            if timer tab > 1000
1577                if not warmode 
1578                    warmode on
1579                    warmode off
1580                endif
1581                settimer tab 0
1582            endif
1583            if insysmsg "You make some progress on the lock"
1584                overhead "*click*" 810 bchest
1585            endif
1586            if insysmsg "You have worn out your tool"
1587                overhead "This tool is worn out!" 805
1588            endif
1589            if varexist "bwiz" and find "bwiz" backpack and find "bmain" self and not find "nonaspectedwiz" backpack 
1590                if not targetexists and not casting and skill "Stealth" >= 80 and hidden and stam = maxstam
1591                    while queued
1592                        //donothing
1593                    endwhile
1594                    dclick "bwiz"
1595                    while queued
1596                        //donothing
1597                    endwhile
1598                    pause 30
1599                    dclick "bmain"
1600                    pause 500
1601                    getlabel backpack ping
1602                endif
1603                if not targetexists and not casting and not findlayer self head and find "bmain" self
1604                    while queued
1605                        //donothing
1606                    endwhile
1607                    dclick "bmain"
1608                    pause 500
1609                    getlabel backpack ping
1610                endif
1611            endif
1612            if varexist "bwiz" and find "bmain" self
1613                if not targetexists and not casting and not find "bwiz" backpack
1614                    while queued
1615                        //donothing
1616                    endwhile
1617                    dclick "bmain"
1618                    pause 500
1619                    getlabel backpack ping
1620                endif
1621            endif
1622            if ingump "Shrines" 341416395
1623                if not timerexists "Wacp" and skill "Magery" >= 50
1624                    gumpclose 341416395
1625                    overhead "Wall of Stone ACP ------Enabled------" 2031
1626                    createtimer "Wall"
1627                    createtimer "Wacp"
1628                    removetimer "Nacp"
1629                    removetimer "Eacp"
1630                    removetimer "Tacp"
1631                    removetimer "Racp"
1632                    removetimer "Elemental"
1633                    removetimer "Tele"
1634                    removetimer "None"
1635                    removetimer "Reveal" 
1636                elseif not timerexists "Eacp" and skill "Spirit Speak" >= 80 and skill "Magery" >= 100
1637                    gumpclose 341416395
1638                    overhead "Earth Elemental ACP ------Enabled------" 1501
1639                    createtimer "Elemental"
1640                    createtimer "Eacp"
1641                    removetimer "Nacp"
1642                    removetimer "Tacp"
1643                    removetimer "Racp"
1644                    removetimer "Wall"
1645                    removetimer "Tele"
1646                    removetimer "None"
1647                    removetimer "Reveal" 
1648                elseif not timerexists "Tacp" and skill "Magery" >= 50
1649                    gumpclose 341416395
1650                    overhead "Teleport + Rope ACP ------Enabled------" 1272
1651                    createtimer "Tele"
1652                    createtimer "Tacp"
1653                    removetimer "Nacp"
1654                    removetimer "Racp"
1655                    removetimer "Wall"
1656                    removetimer "Elemental"
1657                    removetimer "None" 
1658                    removetimer "Reveal"  
1659                elseif not timerexists "Racp" and skill "Magery" >= 80
1660                    gumpclose 341416395
1661                    overhead "Reveal Spellcast ACP ------Enabled------" 2040
1662                    createtimer "Racp"
1663                    createtimer "Reveal"
1664                    removetimer "Nacp"
1665                    removetimer "Wall"
1666                    removetimer "Elemental"
1667                    removetimer "Tele"  
1668                    removetimer "None"    
1669                elseif not timerexists "Nacp"
1670                    gumpclose 341416395
1671                    overhead "Auto Chest Protection ------Disabled------" 38
1672                    createtimer "Nacp"
1673                    removetimer "Eacp"
1674                    removetimer "Tacp"
1675                    removetimer "Wacp"
1676                    removetimer "Wall"
1677                    removetimer "Elemental"
1678                    removetimer "Tele"
1679                    removetimer "Reveal" 
1680                endif
1681            endif
1682            if insysmsg "You have been revealed!" 
1683                if timerexists "Tele" and mana >= 9
1684                    say "[Anger"
1685                    cast 'Teleport'
1686                    if findtype "rope" backpack as rope
1687                        dclick rope
1688                    else 
1689                        overhead "I am out of rope..." 34
1690                    endif
1691                    removetimer "Tacp"
1692                    removetimer "Tele"
1693                    createtimer "Eacp"
1694                    createtimer "Nacp"
1695                    createtimer "Wacp"
1696                    createtimer "Racp"
1697                    dclicktype "atlas" backpack
1698                elseif timerexists "Wall" and mana >= 9
1699                    say "[Anger"
1700                    cast 'Wall of Stone'
1701                    removetimer "Wacp"
1702                    removetimer "Wall"
1703                    createtimer "Eacp"
1704                    createtimer "Nacp"
1705                    createtimer "Tacp"
1706                    createtimer "Racp"
1707                    dclicktype "atlas" backpack
1708                elseif timerexists "Elemental" and mana >= 50
1709                    say "[Anger"
1710                    cast 'Earth Elemental'
1711                    removetimer "Eacp"
1712                    removetimer "Elemental"
1713                    createtimer "Wacp"
1714                    createtimer "Nacp"
1715                    createtimer "Tacp"
1716                    createtimer "Racp"
1717                    dclicktype "atlas" backpack
1718                elseif timerexists "Reveal" and mana >= 20
1719                    say "[Anger"
1720                    cast 'Reveal'
1721                    removetimer "Racp"
1722                    removetimer "Reveal"
1723                    createtimer "Wacp"
1724                    createtimer "Nacp"
1725                    createtimer "Tacp"
1726                    createtimer "Eacp"
1727                    dclicktype "atlas" backpack
1728                else
1729                    say "[Anger"
1730                endif
1731                if timerexists frostshellswitch and not cooldown "Aspect"
1732                    say "[AspectArmor Frost"
1733                    getlabel backpack ping
1734                    if insysmsg "Your armor is already of that aspect"
1735                        //donothing
1736                    else
1737                        cooldown "Aspect" 30000
1738                        overhead "--Frost Shell Primed--" 2234
1739                    endif
1740                    settimer frostshelltimer 0
1741                endif
1742            endif
1743            if timer ACPcheck > 42000
1744                if timerexists "Tele"
1745                    overhead "Teleport ACP active" 1272
1746                endif
1747                if timerexists "Wall"
1748                    overhead "Wall ACP active" 2031
1749                endif
1750                if timerexists "Elemental"
1751                    overhead "Elemental ACP active" 1501
1752                endif
1753                if timerexists "Reveal"
1754                    overhead "Reveal ACP active" 2040
1755                endif
1756                settimer ACPcheck 0
1757            endif
1758            if insysmsg "Another player"
1759                gumpclose 736038070
1760                dclick bchest
1761                waitforgump 736038070 1000
1762                gumpresponse 4
1763                waitforgump 736038070 1000
1764            endif
1765        endwhile
1766    endif
1767endif
1768
1769if gumpexists 949095101
1770    gumpclose 949095101
1771endif
1772
1773if find "bchest" ground -1 -1 2 as bchest and not targetexists 
1774    clearsysmsg 
1775    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|2594|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|7127|4225|12686|19985|19981|19984|19982|19983|19991|19989|19986|19987|19988|19994|19995|19992|19993|19990|19980|19977|19976|19978|7154|19979|43423|7154|4225|7127|3861|3821" bchest as bitem
1776        if not timerexists bchestopen
1777            createtimer bchestopen
1778            overhead "The treasure is mine!" 2091
1779        endif
1780        hotkey 'Grab Item' 
1781        target bitem
1782        while queued
1783            //donothing
1784        endwhile
1785        if not findtype 3651|3649|3648|3650|3708|2475 ground -1 -1 2
1786            break
1787        endif
1788        if insysmsg "That container cannot hold more weight."
1789            break
1790        endif
1791    endwhile
1792    if varexist "bwiz" and find "bwiz" backpack and find "bmain" self
1793        if not targetexists and not casting and skill "Stealth" >= 80 and hidden and stam = maxstam
1794            while queued
1795                //donothing
1796            endwhile
1797            dclick "bwiz"
1798            while queued
1799                //donothing
1800            endwhile
1801            pause 30
1802            dclick "bmain"
1803            pause 500
1804            getlabel backpack ping
1805        endif
1806        if not targetexists and not casting and not findlayer self head and find "bmain" self
1807            while queued
1808                //donothing
1809            endwhile
1810            dclick "bmain"
1811            pause 500
1812            getlabel backpack ping
1813        endif
1814    endif
1815    if varexist "bwiz" and find "bmain" self
1816        if not targetexists and not casting and not find "bwiz" backpack
1817            while queued
1818                //donothing
1819            endwhile
1820            dclick "bmain"
1821            pause 500
1822            getlabel backpack ping
1823        endif
1824    endif
1825endif
1826
1827if ingump "Shrines" 341416395
1828    if not timerexists "Wacp" and skill "Magery" >= 50
1829        gumpclose 341416395
1830        overhead "Wall of Stone ACP ------Enabled------" 2031
1831        createtimer "Wall"
1832        createtimer "Wacp"
1833        removetimer "Nacp"
1834        removetimer "Eacp"
1835        removetimer "Tacp"
1836        removetimer "Racp"
1837        removetimer "Elemental"
1838        removetimer "Tele"
1839        removetimer "None"
1840        removetimer "Reveal" 
1841    elseif not timerexists "Eacp" and skill "Spirit Speak" >= 80 and skill "Magery" >= 100
1842        gumpclose 341416395
1843        overhead "Earth Elemental ACP ------Enabled------" 1501
1844        createtimer "Elemental"
1845        createtimer "Eacp"
1846        removetimer "Nacp"
1847        removetimer "Tacp"
1848        removetimer "Racp"
1849        removetimer "Wall"
1850        removetimer "Tele"
1851        removetimer "None"
1852        removetimer "Reveal" 
1853    elseif not timerexists "Tacp" and skill "Magery" >= 50
1854        gumpclose 341416395
1855        overhead "Teleport + Rope ACP ------Enabled------" 1272
1856        createtimer "Tele"
1857        createtimer "Tacp"
1858        removetimer "Nacp"
1859        removetimer "Racp"
1860        removetimer "Wall"
1861        removetimer "Elemental"
1862        removetimer "None" 
1863        removetimer "Reveal"  
1864    elseif not timerexists "Racp" and skill "Magery" >= 80
1865        gumpclose 341416395
1866        overhead "Reveal Spellcast ACP ------Enabled------" 2040
1867        createtimer "Racp"
1868        createtimer "Reveal"
1869        removetimer "Nacp"
1870        removetimer "Wall"
1871        removetimer "Elemental"
1872        removetimer "Tele"  
1873        removetimer "None"    
1874    elseif not timerexists "Nacp"
1875        gumpclose 341416395
1876        overhead "Auto Chest Protection ------Disabled------" 38
1877        createtimer "Nacp"
1878        removetimer "Eacp"
1879        removetimer "Tacp"
1880        removetimer "Wacp"
1881        removetimer "Wall"
1882        removetimer "Elemental"
1883        removetimer "Tele"
1884        removetimer "Reveal" 
1885    endif
1886endif
1887if insysmsg "You have been revealed!" 
1888    if timerexists "Tele" and mana >= 9
1889        say "[Anger"
1890        cast 'Teleport'
1891        if findtype "rope" backpack as rope
1892            dclick rope
1893        else 
1894            overhead "I am out of rope..." 34
1895        endif
1896        removetimer "Tacp"
1897        removetimer "Tele"
1898        createtimer "Eacp"
1899        createtimer "Nacp"
1900        createtimer "Wacp"
1901        createtimer "Racp"
1902        dclicktype "atlas" backpack
1903    elseif timerexists "Wall" and mana >= 9
1904        say "[Anger"
1905        cast 'Wall of Stone'
1906        removetimer "Wacp"
1907        removetimer "Wall"
1908        createtimer "Eacp"
1909        createtimer "Nacp"
1910        createtimer "Tacp"
1911        createtimer "Racp"
1912        dclicktype "atlas" backpack
1913    elseif timerexists "Elemental" and mana >= 50
1914        say "[Anger"
1915        cast 'Earth Elemental'
1916        removetimer "Eacp"
1917        removetimer "Elemental"
1918        createtimer "Wacp"
1919        createtimer "Nacp"
1920        createtimer "Tacp"
1921        createtimer "Racp"
1922        dclicktype "atlas" backpack
1923    elseif timerexists "Reveal" and mana >= 20
1924        say "[Anger"
1925        cast 'Reveal'
1926        removetimer "Racp"
1927        removetimer "Reveal"
1928        createtimer "Wacp"
1929        createtimer "Nacp"
1930        createtimer "Tacp"
1931        createtimer "Eacp"
1932        dclicktype "atlas" backpack
1933    else
1934        say "[Anger"
1935    endif
1936    if timerexists frostshellswitch and not cooldown "Aspect"
1937        say "[AspectArmor Frost"
1938        getlabel backpack ping
1939        if insysmsg "Your armor is already of that aspect"
1940            //donothing
1941        else
1942            cooldown "Aspect" 30000
1943            overhead "--Frost Shell Primed--" 2234
1944        endif
1945        settimer frostshelltimer 0
1946    endif
1947endif
1948
1949if not findtype 3651|3649|3648|3650|3708|2475 ground -1 -1 2
1950    removetimer activaterecycle
1951    if varexist "bwiz" and find "bwiz" backpack and find "bmain" self
1952        if not targetexists and not casting and skill "Stealth" >= 80 and hidden and stam = maxstam
1953            while queued
1954                //donothing
1955            endwhile
1956            dclick "bwiz"
1957            while queued
1958                //donothing
1959            endwhile
1960            pause 30
1961            dclick "bmain"
1962            pause 500
1963            getlabel backpack ping
1964        endif
1965        if not targetexists and not casting and not findlayer self head and find "bmain" self
1966            while queued
1967                //donothing
1968            endwhile
1969            dclick "bmain"
1970            pause 500
1971            getlabel backpack ping
1972        endif
1973    endif
1974    if varexist "bwiz" and find "bmain" self
1975        if not targetexists and not casting and not find "bwiz" backpack
1976            while queued
1977                //donothing
1978            endwhile
1979            dclick "bmain"
1980            pause 500
1981            getlabel backpack ping
1982        endif
1983    endif
1984endif
1985
1986if timer ACPcheck > 42000
1987    if timerexists "Tele"
1988        overhead "Teleport ACP active" 1272
1989    endif
1990    if timerexists "Wall"
1991        overhead "Wall ACP active" 2031
1992    endif
1993    if timerexists "Elemental"
1994        overhead "Elemental ACP active" 1501
1995    endif
1996    if timerexists "Reveal"
1997        overhead "Reveal ACP active" 2040
1998    endif
1999    settimer ACPcheck 0
2000endif
2001
2002if not timerexists lootvacuumswitch
2003    if gumpexists 1281623709
2004        gumpclose 1281623709
2005        createtimer lootvacuumswitch
2006        settimer lootvacuumswitch 15000
2007        overhead "--Loot Vacuum Enabled--" 2085
2008    endif
2009endif
2010if timerexists lootvacuumswitch
2011    if gumpexists 1281623709
2012        gumpclose 1281623709
2013        removetimer lootvacuumswitch
2014        overhead "--Loot Vacuum Disabled--" 1779
2015    endif
2016endif
2017while diffweight <= 0 and findtype "gold coin" backpack as dropgold
2018    if not hidden and stam <= 4 and findtype "Red Potion" backpack as redpot
2019        while queued
2020            //donothing
2021        endwhile
2022        dclick redpot
2023    endif
2024    overhead "My cup runneth over..." 1194
2025    if findtype 4225 backpack 0 as garbleather
2026        drop backpack
2027        lift garbleather 59999
2028        drop 0
2029        while queued
2030            //donothing
2031        endwhile
2032    endif
2033    drop backpack
2034    lift dropgold 444
2035    drop 0
2036    while queued
2037        //donothing
2038    endwhile
2039    settimer lootvacuumswitch 0
2040endwhile
2041if timerexists lootvacuumswitch
2042    if timer lootvacuumswitch >= 9000
2043        if not timerexists lootsensetimer
2044            createtimer lootsensetimer
2045            settimer lootsensetimer 1000
2046        endif
2047        if not findtype 4239|4240 ground -1 -1 2 and timer lootsensetimer >= 1000
2048            for 18
2049                while findtype 3827 ground 0 as zeroscroll
2050                    @ignore zeroscroll
2051                endwhile
2052                while findtype 7154 ground 0 as zeroingot
2053                    @ignore zeroingot
2054                endwhile
2055                while findtype 4225 ground 0 as zeroleather
2056                    @ignore zeroleather
2057                endwhile
2058                while findtype 7127 ground 0 as zeroboard
2059                    @ignore zeroboard
2060                endwhile
2061                while findtype 7154 ground 2419 as zeroingot
2062                    @ignore zeroingot
2063                endwhile
2064                while findtype 4225 ground 2419 as zeroleather
2065                    @ignore zeroleather
2066                endwhile
2067                while findtype 7127 ground 2419 as zeroboard
2068                    @ignore zeroboard
2069                endwhile
2070                while findtype 7154 ground 2406 as zeroingot
2071                    @ignore zeroingot
2072                endwhile
2073                while findtype 4225 ground 2406 as zeroleather
2074                    @ignore zeroleather
2075                endwhile
2076                while findtype 7127 ground 2406 as zeroboard
2077                    @ignore zeroboard
2078                endwhile
2079                while findtype 7154 ground 2413 as zeroingot
2080                    @ignore zeroingot
2081                endwhile
2082                while findtype 4225 ground 2413 as zeroleather
2083                    @ignore zeroleather
2084                endwhile
2085                while findtype 7127 ground 2413 as zeroboard
2086                    @ignore zeroboard
2087                endwhile
2088                while findtype 7154 ground 2418 as zeroingot
2089                    @ignore zeroingot
2090                endwhile
2091                while findtype 4225 ground 2418 as zeroleather
2092                    @ignore zeroleather
2093                endwhile
2094                while findtype 7127 ground 2418 as zeroboard
2095                    @ignore zeroboard
2096                endwhile
2097                while findtype 7154 ground 2213 as zeroingot  
2098                    @ignore zeroingot
2099                endwhile
2100                while findtype 4225 ground 2213 as zeroleather
2101                    @ignore zeroleather
2102                endwhile
2103                while findtype 7127 ground 2213 as zeroboard
2104                    @ignore zeroboard
2105                endwhile
2106                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
2107                    overhead "*loot*" 2091 lootlocation
2108                    @ignore lootlocation
2109                endif
2110                if warmode and findtype 4239|4240 ground -1 -1 2
2111                    break
2112                endif
2113            endfor
2114            @clearignore 
2115            settimer lootsensetimer 0
2116        endif
2117        while findtype 3827 ground 0 as zeroscroll
2118            @ignore zeroscroll
2119        endwhile
2120        while findtype 7154 ground 0 as zeroingot
2121            @ignore zeroingot
2122        endwhile
2123        while findtype 4225 ground 0 as zeroleather
2124            @ignore zeroleather
2125        endwhile
2126        while findtype 7127 ground 0 as zeroboard
2127            @ignore zeroboard
2128        endwhile
2129        while findtype 7154 ground 2419 as zeroingot
2130            @ignore zeroingot
2131        endwhile
2132        while findtype 4225 ground 2419 as zeroleather
2133            @ignore zeroleather
2134        endwhile
2135        while findtype 7127 ground 2419 as zeroboard
2136            @ignore zeroboard
2137        endwhile
2138        while findtype 7154 ground 2406 as zeroingot
2139            @ignore zeroingot
2140        endwhile
2141        while findtype 4225 ground 2406 as zeroleather
2142            @ignore zeroleather
2143        endwhile
2144        while findtype 7127 ground 2406 as zeroboard
2145            @ignore zeroboard
2146        endwhile
2147        while findtype 7154 ground 2413 as zeroingot
2148            @ignore zeroingot
2149        endwhile
2150        while findtype 4225 ground 2413 as zeroleather
2151            @ignore zeroleather
2152        endwhile
2153        while findtype 7127 ground 2413 as zeroboard
2154            @ignore zeroboard
2155        endwhile
2156        while findtype 7154 ground 2418 as zeroingot
2157            @ignore zeroingot
2158        endwhile
2159        while findtype 4225 ground 2418 as zeroleather
2160            @ignore zeroleather
2161        endwhile
2162        while findtype 7127 ground 2418 as zeroboard
2163            @ignore zeroboard
2164        endwhile
2165        while findtype 7154 ground 2213 as zeroingot  
2166            @ignore zeroingot
2167        endwhile
2168        while findtype 4225 ground 2213 as zeroleather
2169            @ignore zeroleather
2170        endwhile
2171        while findtype 7127 ground 2213 as zeroboard
2172            @ignore zeroboard
2173        endwhile
2174        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
2175            hotkey 'Grab Item' 
2176            target eatloot
2177            while queued
2178                //donothing
2179            endwhile 
2180        endwhile
2181    endif
2182endif
2183if not timerexists skinnerswitch
2184    if insysmsg "What corpse or location do you wish to carve?"
2185        hotkey "Cancel Current Target"
2186        createtimer skinnerswitch
2187        overhead "--Skinner Mode Enabled--" 2085
2188    endif
2189endif
2190
2191if timerexists skinnerswitch
2192    if insysmsg "What corpse or location do you wish to carve?"
2193        hotkey "Cancel Current Target"
2194        removetimer skinnerswitch
2195        overhead "--Skinner Mode Disabled--" 1779
2196    endif
2197endif
2198if not hidden and not casting and findtype "Elven Spellblade" backpack
2199    if not warmode and timerexists skinnerswitch
2200        if not timerexists corpsetimer
2201            createtimer corpsetimer
2202            settimer corpsetimer 2000
2203        endif
2204        if timer corpsetimer >= 2000
2205            for 18
2206                if index > 0 and findtype "corpse" ground -1 -1 index as corpselocation
2207                    overhead "corpse" 76 corpselocation
2208                    @ignore corpselocation
2209                endif
2210            endfor
2211            @clearignore 
2212            settimer corpsetimer 0
2213        endif
2214        if not find "bknife" backpack and findtype "Elven Spellblade" backpack as newknife
2215            @setvar "bknife" newknife
2216        endif
2217        while findtype "corpse" ground -1 -1 2 as bcorpse
2218            getlabel bcorpse desc
2219            if "the remains of" in desc
2220                overhead "avatar corpse" 45 bcorpse
2221                @ignore bcorpse
2222            else 
2223                while queued
2224                    //do nothing
2225                endwhile
2226                dclick "bknife"
2227                wft 500
2228                target bcorpse
2229                getlabel backpack ping
2230                pause 500
2231                if insysmsg "You carve materials from the corpse"
2232                    overhead "*fresh cut*" 2085 bcorpse
2233                    @ignore bcorpse
2234                elseif insysmsg "That corpse has already been carved"
2235                    overhead "*carved*" 1779 bcorpse
2236                    @ignore bcorpse
2237                endif
2238            endif
2239        endwhile
2240        clearsysmsg 
2241    endif
2242endif
2243if insysmsg "What should I use these scissors on?" and findtype "sewing kit|saw|pen and ink|tongs|tool kit" backpack as breakdowntool
2244    hotkey "Cancel Current Target"
2245    if findtype 20496 backpack as IDwand
2246        clearsysmsg 
2247        if findtype 3834 backpack 0 as bbook
2248            @ignore bbook
2249        endif
2250        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
2251            getlabel IDitem desc
2252            if "unidentified" in desc
2253                while queued
2254                    //donothing
2255                endwhile
2256                dclick IDwand
2257                wft 1000
2258                target IDitem
2259                waitforsysmsg "You identify the item." 1000
2260                getlabel IDitem desc
2261                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
2262                    @ignore IDitem
2263                    overhead "This one is worth keeping..." 2091
2264                    overhead "*strong magic*" 2091 IDitem
2265                    say "[surprise" 2091
2266                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
2267                    overhead "*trash*" 1779 IDitem
2268                    while not gumpexists 949095101
2269                        while queued
2270                            //donothing
2271                        endwhile
2272                        dclick breakdowntool
2273                        waitforgump 949095101 1000
2274                    endwhile
2275                    while not ingump "Recycle Single Item" 949095101
2276                        gumpresponse 2
2277                        waitforgump 949095101 1000
2278                    endwhile                                
2279                    gumpresponse 3
2280                    waitforgump 949095101 1000
2281                    target IDitem
2282                    getlabel backpack ping
2283                    pause 300
2284                    gumpclose 949095101
2285                else
2286                    @ignore IDitem
2287                endif
2288            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
2289                @ignore IDitem
2290            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
2291                overhead "*trash*" 1779 IDitem
2292                while not gumpexists 949095101
2293                    while queued
2294                        //donothing
2295                    endwhile
2296                    dclick breakdowntool
2297                    waitforgump 949095101 1000
2298                endwhile
2299                while not ingump "Recycle Single Item" 949095101
2300                    gumpresponse 2
2301                    waitforgump 949095101 1000
2302                endwhile                                
2303                gumpresponse 3
2304                waitforgump 949095101 1000
2305                target IDitem
2306                getlabel backpack ping
2307                pause 300
2308                gumpclose 949095101
2309            else
2310                @ignore IDitem
2311            endif
2312            if not findtype 20496 backpack
2313                break
2314            endif
2315        endwhile
2316        if gumpexists 949095101
2317            gumpclose 949095101
2318        endif
2319    endif
2320    if targetexists 
2321        hotkey "Cancel Current Target"
2322    endif
2323endif
2324if dead     
2325    overhead "I need a new body..." 88
2326    stop
2327endif
2328loop