Recall, Recycle & Restock (Tmapping) by neverstopswing
Description: Enter your own serials number in for the variables. The tomechest needs ID wands inside of it otherwise the recycling portion of this script will fail.
1@setvar! tomechest
2@setvar! tmaptome
3@setvar! aspecttome
4@setvar! sstome
5@setvar! lumbertome
6@setvar! skinningtome
7@setvar! oretome
8@setvar! fishingtome
9@setvar! arcanetome
10@setvar! clothtome
11@setvar! dyestome
12@setvar! cardtome
13@setvar! lootchest
14@setvar! magicitemchest
15@setvar! globalTimeout 650
16
17if findtype "wooden chest" ground -1 -1 2 as chest
18 menu chest 1
19 overhead 'Chest Destroyed!'
20endif
21if findtype "metal chest" ground -1 -1 2 as chest
22 menu chest 1
23 overhead 'Chest Destroyed!'
24endif
25
26target clear
27if weight < 464
28 if weight < 394
29 hotkey 'Recall'
30 overhead 'Recalling!'
31 waitfortarget
32 targettype 'runetome'
33 endif
34 if weight >= 394
35 hotkey 'Drink Strength'
36 wait 1000
37 hotkey 'Recall'
38 overhead 'Recalling!'
39 waitfortarget
40 targettype 'runetome'
41 endif
42endif
43if weight >= 464
44 overhead 'Too heavy to recall!'
45 hotkey 'Gate Travel'
46 overhead 'Gating'
47 waitfortarget
48 targettype 'runetome'
49 wait 100
50 if findtype 3948 'ground' 0 1 2 as 'bluegate'
51 dclick 'bluegate'
52 waitforgump 3899019871
53 gumpresponse 2
54 cast 'Dispel Field'
55 waitfortarget
56 target self
57 endif
58endif
59
60
61if not findbuff 'Food Satisfaction'
62 wait globalTimeout
63 dclicktype 'tray'
64endif
65if not findbuff 'Reactive Armor'
66 wait globalTimeout
67 cast 'Reactive Armor'
68 wait 500
69endif
70if not findbuff 'Magic Reflection'
71 wait globalTimeout
72 cast 'Magic Reflection'
73 wait 1500
74endif
75
76overhead 'LootDump.Exe starting...'
77menu tmaptome 0
78menu aspecttome 0
79menu sstome 0
80menu lumbertome 0
81menu skinningtome 0
82menu oretome 0
83menu fishingtome 0
84menu arcanetome 0
85menu clothtome 0
86menu dyestome 0
87menu cardtome 0
88overhead 'Tomes Finished'
89
90dclick tmaptome
91waitforgump 1863945839
92gumpresponse 26
93waitforgump 1863945839
94if insysmsg 'No map of that type is currently being stored.'
95 clearsysmsg
96 gumpresponse 25
97 waitforgump 1863945839
98 if insysmsg 'No map of that type is currently being stored.'
99 clearsysmsg
100 gumpresponse 24
101 waitforgump 1863945839
102 if insysmsg 'No map of that type is currently being stored.'
103 clearsysmsg
104 gumpresponse 23
105 waitforgump 1863945839
106 if insysmsg 'No map of that type is currently being stored.'
107 clearsysmsg
108 gumpresponse 22
109 waitforgump 1863945839
110 if insysmsg 'No map of that type is currently being stored.'
111 clearsysmsg
112 gumpresponse 21
113 waitforgump 1863945839
114 if insysmsg 'No map of that type is currently being stored.'
115 clearsysmsg
116 gumpresponse 20
117 waitforgump 1863945839
118 if insysmsg 'No map of that type is currently being stored.'
119 overhead 'No maps left!'
120 endif
121 endif
122 endif
123 endif
124 endif
125 endif
126endif
127gumpclose
128wait globalTimeout
129dclicktype 'map'
130
131while findtype 'card|bag of seeds|raw turkey|feather|void orb|research materials|carpet|wooden chest|metal chest|soul jar|deed|sandals|thigh boots|boots|shoes' backpack as Loot
132 overhead 'Dumping Loot'
133 lift Loot 100
134 drop lootchest -1 -1 0
135 wait globalTimeout
136endwhile
137
138if findtype "storage shelf" ground -1 -1 2 as shelf
139 overhead 'Shelf Restocking'
140 menu shelf 0
141 wft globalTimeout
142 target self
143 wait 200
144 gumpclose 3232825965
145endif
146wait 250
147if findtype "bank deposit safe" ground -1 -1 2 as safe
148 while findtype "gold coin" backpack as gold
149 overhead 'Dumping gold'
150 lift gold 60000
151 drop safe -1 -1 -2
152 endwhile
153endif
154wait 250
155if findtype "resource container" ground -1 -1 2 as resource
156 overhead 'Dumping Stockpile'
157 menu resource 0
158 wft globalTimeout
159 target self
160 wait 200
161endif
162if findtype "garden shelf" ground -1 -1 2 as gshelf
163 overhead 'Dumping Seeds'
164 menu gshelf 0
165 wft globalTimeout
166 target self
167 wait 200
168endif
169wait 250
170target clear
171if findtype "ornate elven chest" ground -1 -1 2 as recycler
172 overhead 'Dumping Recycler'
173 menu recycler 1
174 getlabel recycler desc
175 if "125 items" in desc
176 overhead 'Recycler Full!'
177 dclick tomechest
178 wait globalTimeout
179 if findtype 'wand' tomechest as wand
180 target clear
181 lift wand
182 drop backpack
183 dclick wand
184 wft
185 target recycler
186 lift wand
187 drop tomechest
188 endif
189 wait globalTimeout
190 dclick recycler
191 waitforgump 4045111101
192 gumpresponse 6
193 waitforgump 4045111101
194 gumpresponse 6
195 wait 1000
196 gumpclose
197 wait 1000
198 if findtype 12686 recycler as essence
199 overhead 'Dumping Essence'
200 lift essence 60000
201 drop tomechest -1 -1 -2
202 endif
203 while findtype 24434|43206|29363|43166|22336|29348|17087|3985|8826|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 recycler as item
204 getlabel item checkForBlessed
205 if "blessed" in checkForBlessed
206 overhead "Ignoring {{checkForBlessed}}" 34
207 @ignore item
208 else
209 lift item 60000
210 drop magicitemchest -1 -1 -2
211 wait globalTimeout
212 endif
213 endwhile
214 if findtype "resource container" ground -1 -1 2 as resource
215 menu resource 0
216 waitfortarget
217 target recycler
218 wait globalTimeout
219 menu recycler 1
220 endif
221 endif
222endif
223
224if findtype "storage shelf" ground -1 -1 2 as shelf
225 menu shelf 1
226 overhead 'READY TO GO'
227endif