Created: 10/20/2022, 01:28:37 AM Updated: 10/20/2022, 01:28:37 AM View Change History
1
2
3@setvar! globalTimeout 650
4
5if not varexist readyToShovel
6 @setvar! readyToShovel 1
7endif
8
9@setvar! readyToShovel 0
10if readyToShovel = 1
11 if findtype "shovel" backpack as item
12 dclick item
13 wait 200
14 if paralyzed
15 @setvar! readyToShovel 0
16 endif
17 endif
18 wait 1500
19 replay
20endif
21
22while paralyzed
23
24wait 50
25endwhile
26if not hidden
27 useskill 'hiding'
28 wait 200
29 if not hidden
30 while not targetexists
31 cast 'Invisibility'
32 wait 50
33 endwhile
34 if targetexists
35 target 'self'
36 endif
37 endif
38endif
39
40if not varexist chestWeWannaWork
41 @setvar! chestWeWannaWork 0
42endif
43if not timerexists chestOpenTimer
44 createtimer chestOpenTimer
45 settimer chestOpenTimer 3500
46endif
47
48if dead
49 overhead "RIP" 34
50 wait 5000
51 loop
52endif
53
54
55if findtype "metal chest|wooden chest" ground -1 -1 2 as chest
56
57 overhead "finding monsters"
58 hotkey 'Target Closest Grey Monster'
59 wait 200
60 if insysmsg "No one matching" or not find lasttarget ground -1 -1 4
61 if chestWeWannaWork = chest
62
63 else
64 dclick chest
65 wait 200
66 @setvar! chestWeWannaWork chest
67 endif
68 endif
69
70 if gumpexists 736038070
71
72 if not hidden
73 useskill 'hiding'
74 wait 200
75 if not hidden
76 while not targetexists
77 cast 'Invisibility'
78 wait 50
79 endwhile
80 if targetexists
81 target 'self'
82 endif
83 endif
84 endif
85
86 sysmsg "Working chest..." 88
87 if timer chestOpenTimer >= 3500
88 if ingump "Cleared of Traps" 736038070
89 if findtype "lockpicks" backpack as picky
90 gumpresponse 4 736038070
91 else
92 overhead "No lockpicks left!" 34
93 endif
94 else
95 if findtype "drill" backpack as drilly
96 gumpresponse 7 736038070
97 wait 200
98 if insysmsg "You do not have any trap tools of that material on hand."
99 gumpresponse 5 736038070
100 endif
101 else
102 overhead "No trap tools left!" 34
103 endif
104 endif
105 settimer chestOpenTimer 0
106 endif
107 wait 200
108 else
109
110
111 while find chest ground -1 -1 2 and findtype 5356|24434|43206|29363|43166|22336|29348|17087|3985|8826|3827|29030|3836|5981|4248|5359|3839|3838|3843|2597|29036|48407|3834|3865|3859|3885|3856|3878|3877|3873|3861|3862|576|5123|7177|7027|3920|5131|5179|5075|3980|5060|5076|5042|10245|3938|3913|7169|3909|5063|5089|3981|7170|7033|3976|3762|5040|5103|5117|7181|7029|3568|6264|3742|5139|6263|7026|5125|3740|5121|3973|3974|5204|5105|5185|5078|5115|7175|5059|7034|3713|3915|5112|5070|5049|5119|5205|5046|3962|3934|7035|3911|7179|5106|5143|3573|3719|5177|7610|5181|3917|5132|3963|7031|5207|5056|5085|3763|5129|5187|3721|3972|5138|3570|5101|5061|5074|5142|5182|5146|6265|5090|5203|5044|5144|3932|5201|5127|3572|7173|5135|3937|3571|22326|27611|9917|3821|5356|8455|5362|45315|8454|22187|5901|7163|3617|3903|12686 chest as item
112 getlabel item lootDesc
113 overhead lootDesc
114 wait 50
115 hotkey 'Grab Item'
116 target item
117 while queued
118 wait 50
119 endwhile
120 endwhile
121
122
123 while find chest ground -1 -1 2 and findtype 7981|7982|7983|7984|7985|7986|7987|7988|7989|7990|7991|7992|7993|7994|7995|7996|7997|7998|7999|8000|8001|8002|8003|8004|8005|8006|8007|8008|8009|8010|8011|8012|8013|8014|8015|8016|8017|8018|8019|8020|8021|8022|8023|8024|8025|8026|8027|8028|8029|8030|8031|8032|8033|8034|8035|8036|8037|8038|8039|8040|8041|8042|8033|8044 chest as item
124 getlabel item lootDesc
125 overhead lootDesc
126 wait 50
127 hotkey 'Grab Item'
128 target item
129 while queued
130 wait 50
131 endwhile
132 endwhile
133
134 if findtype "reagent satchel" self as satchel
135 menu satchel 0
136 wait 200
137 endif
138
139
140 if findtype 12215 self as satchel
141 menu satchel 0
142 wait 200
143 endif
144
145 getlabel chestWeWannaWork chestDesc
146 if "0 items, 0 stones" in chestDesc
147 @clearignore
148 while findtype "map" backpack as item
149 getlabel item desc
150 if "completed" in desc
151 lift item
152 drop chestWeWannaWork -1 -1 -1
153 wait globalTimeout
154 endif
155 @ignore item
156 endwhile
157 @clearignore
158 menu chestWeWannaWork 1
159 script "RecallHomeAfterChest"
160 endif
161
162 endif
163endif
164
165
166wait 200
167loop