Back to "id" tags

Item Recycle Bot by daklue

Description: Item Recycle Bot is a ID Bot that will stay online and identify items that are dropped in a chest. Will recycle items not wanted and will move items you want to keep to a different chest.

1# Item Recycle Bot By DaKlue
2# V 2.0 
3# UO Outlands Wildlands Addition. 
4
5#####################################
6# Choose what you want to save...
7# You may edit these variables below...
8#####################################
9
10# will drink the essence juice at end of script
11@setvar! jase_AutoConsumeArcaneEssence 0
12# will move resources to a diffrent chest at end of recycle phase
13@setvar! jase_AutoMoveResourcesFromBag 0
14
15# cooldowns amd que times
16@setvar! globalTimeout 5000
17@setvar! globalQueTime 1000
18
19# accuracy
20@setvar! jase_save_supremely 1
21@setvar! jase_save_exceedingly 1
22@setvar! jase_save_eminently 0 
23@setvar! jase_save_surpassingly 0
24@setvar! jase_save_accurate 0
25
26# damage
27@setvar! jase_save_vanquishing 1
28@setvar! jase_save_power 1
29@setvar! jase_save_force 0
30@setvar! jase_save_might 0
31@setvar! jase_save_ruin 0
32
33# slayers
34@setvar! jase_save_slaying 1
35
36# protection
37@setvar! jase_save_invulnerability 1
38@setvar! jase_save_fortification 1
39@setvar! jase_save_hardening 0
40@setvar! jase_save_guarding 0
41@setvar! jase_save_defense 0
42
43# this is your save box
44if not varexist itemsGoInHere 
45    overhead 'Please select your chest to keep good items.' 88
46    @setvar! itemsGoInHere
47    wft 500
48endif 
49# this is your box where unidentifed items are held
50if not varexist messySourceContainer 
51    overhead 'Please select your chest where you store unidentified items.' 88
52    @setvar! messySourceContainer
53    wft 500
54endif
55# this is for a resource container where you store ingot leather scrolls ect...
56if not varexist resourceContainer 
57    overhead 'Please select your chest where you store your resources.' 88
58    @setvar! resourceContainer
59    wft 500
60endif
61
62if skill "Item Identification" = 120
63    // will do container
64elseif skill "Item Identification" >= 30
65    // will do item id skill
66elseif findtype "wand" backpack as idWandHopefully
67    // will try to use wand
68else
69    overhead "Jase says: Not able to ID items.." 34
70    overhead "Jase says: Need skill or wand" 77
71    sysmsg "Jase says: Not able to ID items.." 34
72    sysmsg "Jase says: Need skill or wand" 77
73    stop
74endif
75
76if not findtype 4032|4032|3997|7864|4148|4136 backpack
77    overhead "Jase says: Not able to recycle items.." 34
78    overhead "Jase says: Need tinker tool, sewing kit or saw" 77
79    sysmsg "Jase says: Not able to recycle items.." 34
80    sysmsg "Jase says: Need tinker tool, sewing kit or saw" 77
81    stop
82endif
83
84##################################################################################################################
85##
86## Don't edit below this line
87##
88##################################################################################################################
89while not dead
90@setvar! jase_currentItem 0
91
92# Where items get stored.. leave these here for now
93@setvar! jase_Archery_Storage itemsGoInHere
94@setvar! jase_Fencing_Storage itemsGoInHere
95@setvar! jase_Macing_Storage itemsGoInHere
96@setvar! jase_Mage_Storage itemsGoInHere
97@setvar! jase_Music_Storage itemsGoInHere
98@setvar! jase_Shield_Storage itemsGoInHere
99@setvar! jase_Swords_Storage itemsGoInHere
100@setvar! jase_Wrestling_Storage itemsGoInHere
101@setvar! jase_RegularLeather_Storage itemsGoInHere
102@setvar! jase_StuddedLeather_Storage itemsGoInHere
103@setvar! jase_BoneLeather_Storage itemsGoInHere
104@setvar! jase_Ringmail_Storage itemsGoInHere
105@setvar! jase_Chainmail_Storage itemsGoInHere
106@setvar! jase_Plate_Storage itemsGoInHere
107@setvar! jase_Arcane_Storage itemsGoInHere
108
109@clearignore
110
111# Ignore basic items
112while findtype 3834|3922 messySourceContainer 0 as item
113    @ignore item
114endwhile
115
116
117# Swords - puts items into jase_Swords_Storage
118while findtype 3909|3911|3913|3915|3917|3934|3937|5046|5049|5115|5119|5182|5185|5187|30988|31128|31190 messySourceContainer as item
119    getlabel item desc
120    overhead "Item: {{desc}}" 88
121    @setvar! saveItem 0
122    @setvar! ignoreItem 1
123    if jase_save_slaying = 1 and "slaying" in desc
124        @setvar! saveItem 1
125    elseif jase_save_supremely = 1 and "supremely" in desc
126        @setvar! saveItem 1
127    elseif jase_save_exceedingly = 1 and "exceedingly" in desc
128        @setvar! saveItem 1
129    elseif jase_save_eminently = 1 and "eminently" in desc
130        @setvar! saveItem 1
131    elseif jase_save_surpassingly = 1 and "surpassingly" in desc
132        @setvar! saveItem 1
133    elseif jase_save_accurate = 1 and "accurate" in desc
134        @setvar! saveItem 1
135    elseif jase_save_vanquishing = 1 and "vanquishing" in desc
136        @setvar! saveItem 1
137    elseif jase_save_power = 1 and "power" in desc
138        @setvar! saveItem 1
139    elseif jase_save_force = 1 and "force" in desc
140        @setvar! saveItem 1
141    elseif jase_save_might = 1 and "might" in desc
142        @setvar! saveItem 1
143    elseif jase_save_ruin = 1 and "ruin" in desc
144        @setvar! saveItem 1
145    endif
146
147    if "unidentified" in desc
148        @setvar! jase_currentItem item
149        if skill "Item Identification" = 120
150            useskill "itemId"
151            wft 500
152            target messySourceContainer
153            wait 2000
154            @setvar! ignoreItem 0
155        elseif skill "Item Identification" >= 30
156            useskill "itemId"
157            wft 500
158            target item
159            wait 2000
160            @setvar! ignoreItem 0
161        elseif findtype "wand" backpack as idWandHopefully
162            dclick idWandHopefully
163            wft 500
164            target item
165            @setvar! ignoreItem 0
166        endif
167    endif
168
169    if saveItem = 1
170        overhead "Saving: {{desc}}" 77
171        wait globalTimeout
172        say "Saving an item." 77
173        @setvar! jase_currentItem 0
174        lift item
175        drop jase_Swords_Storage 0 0 0
176        wait 650
177        @ignore item
178    endif
179
180    if ignoreItem = 1
181        lift item
182        wait globalQueTime
183        drop backpack 0 0 0
184        wait globalQueTime
185        overhead "Recycleing: {{desc}}" 77
186        say "Recycleing an item." 77
187        if find jase_currentItem backpack
188            if not gumpexists 949095101
189                if findtype 4032|3997|7864|4148|4136 backpack as recyclerItemKit
190                    dclick recyclerItemKit
191                    waitforgump 949095101 5000
192                endif
193            endif
194            if gumpexists 949095101      
195                gumpresponse 3 949095101
196                wft 500
197                target jase_currentItem
198             endif
199         endif
200         @ignore item
201    endif
202endwhile
203
204# Macing - puts items into jase_Macing_Storage
205if jase_Macing_Storage != 0 and jase_Macing_Storage != itemsGoInHere
206    dclick jase_Macing_Storage
207    wait 650
208endif
209while findtype 3568|3713|3721|3932|5040|5044|5112|5127|5177|5179|5181|30991|30999|31000|31001|31014|31178|31180|31182 messySourceContainer as item
210    getlabel item desc
211    overhead "Item: {{desc}}" 88
212    @setvar! saveItem 0
213    @setvar! ignoreItem 1
214    if jase_save_slaying = 1 and "slaying" in desc
215        @setvar! saveItem 1
216    elseif jase_save_supremely = 1 and "supremely" in desc
217        @setvar! saveItem 1
218    elseif jase_save_exceedingly = 1 and "exceedingly" in desc
219        @setvar! saveItem 1
220    elseif jase_save_eminently = 1 and "eminently" in desc
221        @setvar! saveItem 1
222    elseif jase_save_surpassingly = 1 and "surpassingly" in desc
223        @setvar! saveItem 1
224    elseif jase_save_accurate = 1 and "accurate" in desc
225        @setvar! saveItem 1
226    elseif jase_save_vanquishing = 1 and "vanquishing" in desc
227        @setvar! saveItem 1
228    elseif jase_save_power = 1 and "power" in desc
229        @setvar! saveItem 1
230    elseif jase_save_force = 1 and "force" in desc
231        @setvar! saveItem 1
232    elseif jase_save_might = 1 and "might" in desc
233        @setvar! saveItem 1
234    elseif jase_save_ruin = 1 and "ruin" in desc
235        @setvar! saveItem 1
236    endif
237
238    if "unidentified" in desc
239        @setvar! jase_currentItem item
240        if skill "Item Identification" = 120
241            useskill "itemId"
242            wft 500
243            target messySourceContainer
244            wait 2000
245            @setvar! ignoreItem 0
246        elseif skill "Item Identification" >= 30
247            useskill "itemId"
248            wft 500
249            target item
250            wait 2000
251            @setvar! ignoreItem 0
252        elseif findtype "wand" backpack as idWandHopefully
253            dclick idWandHopefully
254            wft 500
255            target item
256            @setvar! ignoreItem 0
257        endif
258    endif
259
260    if saveItem = 1
261        overhead "Saving: {{desc}}" 77
262        wait globalTimeout
263        say "Saving an item." 77    
264        @setvar! jase_currentItem 0
265        lift item
266        drop jase_Macing_Storage 0 0 0
267        wait 650
268        @ignore item
269    endif
270
271    if ignoreItem = 1
272        lift item
273        wait globalQueTime
274        drop backpack 0 0 0
275        wait globalQueTime
276        overhead "Recycleing: {{desc}}" 77
277        say "Recycleing an item." 77
278        if find jase_currentItem backpack
279            if not gumpexists 949095101
280                if findtype 4032|3997|7864|4148|4136 backpack as recyclerItemKit
281                    dclick recyclerItemKit
282                    waitforgump 949095101 5000
283                endif
284            endif
285            if gumpexists 949095101      
286                gumpresponse 3 949095101
287                wft 500
288                target jase_currentItem
289             endif
290         endif
291         @ignore item
292    endif
293endwhile
294
295# Fencing - puts items into jase_Fencing_Storage
296if jase_Fencing_Storage != 0 and jase_Fencing_Storage != itemsGoInHere
297    dclick jase_Fencing_Storage
298    wait 650
299endif
300while findtype 3719|3922|3938|5121|5123|5125|30989|30992|30996|30997|30998|31176|31188 messySourceContainer as item
301    getlabel item desc
302    overhead "Item: {{desc}}" 88
303    @setvar! saveItem 0
304    @setvar! ignoreItem 1
305    if jase_save_slaying = 1 and "slaying" in desc
306        @setvar! saveItem 1
307    elseif jase_save_supremely = 1 and "supremely" in desc
308        @setvar! saveItem 1
309    elseif jase_save_exceedingly = 1 and "exceedingly" in desc
310        @setvar! saveItem 1
311    elseif jase_save_eminently = 1 and "eminently" in desc
312        @setvar! saveItem 1
313    elseif jase_save_surpassingly = 1 and "surpassingly" in desc
314        @setvar! saveItem 1
315    elseif jase_save_accurate = 1 and "accurate" in desc
316        @setvar! saveItem 1
317    elseif jase_save_vanquishing = 1 and "vanquishing" in desc
318        @setvar! saveItem 1
319    elseif jase_save_power = 1 and "power" in desc
320        @setvar! saveItem 1
321    elseif jase_save_force = 1 and "force" in desc
322        @setvar! saveItem 1
323    elseif jase_save_might = 1 and "might" in desc
324        @setvar! saveItem 1
325    elseif jase_save_ruin = 1 and "ruin" in desc
326        @setvar! saveItem 1
327    endif
328
329    if "unidentified" in desc
330        @setvar! jase_currentItem item
331        if skill "Item Identification" = 120
332            useskill "itemId"
333            wft 500
334            target messySourceContainer
335            wait 2000
336            @setvar! ignoreItem 0
337        elseif skill "Item Identification" >= 30
338            useskill "itemId"
339            wft 500
340            target item
341            wait 2000
342            @setvar! ignoreItem 0
343        elseif findtype "wand" backpack as idWandHopefully
344            dclick idWandHopefully
345            wft 500
346            target item
347            @setvar! ignoreItem 0
348        endif
349    endif
350
351    if saveItem = 1
352        overhead "Saving: {{desc}}" 77
353        wait globalTimeout
354        say "Saving an item." 77
355        @setvar! jase_currentItem 0
356        lift item
357        drop jase_Fencing_Storage 0 0 0
358        wait 650
359        @ignore item
360    endif
361
362    if ignoreItem = 1
363        lift item
364        wait globalQueTime
365        drop backpack 0 0 0
366        wait globalQueTime
367        overhead "Recycleing: {{desc}}" 77
368        say "Recycleing an item." 77
369        if find jase_currentItem backpack
370            if not gumpexists 949095101
371                if findtype 4032|3997|7864|4148|4136 backpack as recyclerItemKit
372                    dclick recyclerItemKit
373                    waitforgump 949095101 5000
374                endif
375            endif
376            if gumpexists 949095101      
377                gumpresponse 3 949095101
378                wft 500
379                target jase_currentItem
380             endif
381         endif
382         @ignore item
383    endif
384endwhile
385
386# Archery - puts items into jase_Archery_Storage
387if jase_Archery_Storage != 0 and jase_Archery_Storage != itemsGoInHere
388    dclick jase_Archery_Storage
389    wait 650
390endif
391while findtype 3920|5042|5117|30990|30993|30994|30995|31184|31186 messySourceContainer as item
392    getlabel item desc
393    overhead "Item: {{desc}}" 88
394    @setvar! saveItem 0
395    @setvar! ignoreItem 1
396    if jase_save_slaying = 1 and "slaying" in desc
397        @setvar! saveItem 1
398    elseif jase_save_supremely = 1 and "supremely" in desc
399        @setvar! saveItem 1
400    elseif jase_save_exceedingly = 1 and "exceedingly" in desc
401        @setvar! saveItem 1
402    elseif jase_save_eminently = 1 and "eminently" in desc
403        @setvar! saveItem 1
404    elseif jase_save_surpassingly = 1 and "surpassingly" in desc
405        @setvar! saveItem 1
406    elseif jase_save_accurate = 1 and "accurate" in desc
407        @setvar! saveItem 1
408    elseif jase_save_vanquishing = 1 and "vanquishing" in desc
409        @setvar! saveItem 1
410    elseif jase_save_power = 1 and "power" in desc
411        @setvar! saveItem 1
412    elseif jase_save_force = 1 and "force" in desc
413        @setvar! saveItem 1
414    elseif jase_save_might = 1 and "might" in desc
415        @setvar! saveItem 1
416    elseif jase_save_ruin = 1 and "ruin" in desc
417        @setvar! saveItem 1
418    endif
419
420    if "unidentified" in desc
421        @setvar! jase_currentItem item
422        if skill "Item Identification" = 120
423            useskill "itemId"
424            wft 500
425            target messySourceContainer
426            wait 2000
427            @setvar! ignoreItem 0
428        elseif skill "Item Identification" >= 30
429            useskill "itemId"
430            wft 500
431            target item
432            wait 2000
433            @setvar! ignoreItem 0
434        elseif findtype "wand" backpack as idWandHopefully
435            dclick idWandHopefully
436            wft 500
437            target item
438            @setvar! ignoreItem 0
439        endif
440    endif
441
442    if saveItem = 1
443       overhead "Saving: {{desc}}" 77
444        wait globalTimeout
445        say "Saving an item." 77    
446        @setvar! jase_currentItem 0
447        lift item
448        drop jase_Archery_Storage 0 0 0
449        wait 650
450        @ignore item
451    endif
452
453    if ignoreItem = 1
454        lift item
455        wait globalQueTime
456        drop backpack 0 0 0
457        wait globalQueTime
458        overhead "Recycleing: {{desc}}" 77
459        say "Recycleing an item." 77
460        if find jase_currentItem backpack
461            if not gumpexists 949095101
462                if findtype 4032|3997|7864|4148|4136 backpack as recyclerItemKit
463                    dclick recyclerItemKit
464                    waitforgump 949095101 5000
465                endif
466            endif
467            if gumpexists 949095101      
468                gumpresponse 3 949095101
469                wft 500
470                target jase_currentItem
471             endif
472         endif
473         @ignore item
474    endif
475endwhile
476
477# Shield - puts items into jase_Shield_Storage
478if jase_Shield_Storage != 0 and jase_Shield_Storage != itemsGoInHere
479    dclick jase_Shield_Storage
480    wait 650
481endif
482while findtype 7026|7027|7029|7031|7033|7034|7035|7107|7109|31002|31130 messySourceContainer as item
483    getlabel item desc
484    overhead "Item: {{desc}}" 88
485    @setvar! saveItem 0
486    @setvar! ignoreItem 1
487    if jase_save_invulnerability = 1 and "invulnerability" in desc
488        @setvar! saveItem 1
489    elseif jase_save_fortification = 1 and "fortification" in desc
490        @setvar! saveItem 1
491    elseif jase_save_hardening = 1 and "hardening" in desc
492        @setvar! saveItem 1
493    elseif jase_save_guarding = 1 and "guarding" in desc
494        @setvar! saveItem 1
495    elseif jase_save_defense = 1 and "defense" in desc
496        @setvar! saveItem 1
497    endif
498
499    if "unidentified" in desc
500        @setvar! jase_currentItem item
501        if skill "Item Identification" = 120
502            useskill "itemId"
503            wft 500
504            target messySourceContainer
505            wait 2000
506            @setvar! ignoreItem 0
507        elseif skill "Item Identification" >= 30
508            useskill "itemId"
509            wft 500
510            target item
511            wait 2000
512            @setvar! ignoreItem 0
513        elseif findtype "wand" backpack as idWandHopefully
514            dclick idWandHopefully
515            wft 500
516            target item
517            @setvar! ignoreItem 0
518        endif
519    endif
520
521    if saveItem = 1
522        overhead "Saving: {{desc}}" 77
523        wait globalTimeout
524        say "Saving an item." 77
525        @setvar! jase_currentItem 0
526        lift item
527        drop jase_Shield_Storage 0 0 0
528        wait 650
529        @ignore item
530    endif
531
532    if ignoreItem = 1
533        lift item
534        wait globalQueTime
535        drop backpack 0 0 0
536        wait globalQueTime
537        overhead "Recycleing: {{desc}}" 77
538        say "Recycleing an item." 77
539        if find jase_currentItem backpack
540            if not gumpexists 949095101
541                if findtype 4032|3997|7864|4148|4136 backpack as recyclerItemKit
542                    dclick recyclerItemKit
543                    waitforgump 949095101 5000
544                endif
545            endif
546            if gumpexists 949095101      
547                gumpresponse 3 949095101
548                wft 500
549                target jase_currentItem
550             endif
551         endif
552         @ignore item
553    endif
554endwhile
555
556# Mage - puts items into jase_Mage_Storage
557if jase_Mage_Storage != 0 and jase_Mage_Storage != itemsGoInHere
558    dclick jase_Mage_Storage
559    wait 650
560endif
561while findtype 3570|3571|3572|3573|3834 messySourceContainer as item
562    getlabel item desc
563    overhead "Item: {{desc}}" 88
564    @setvar! saveItem 0
565    @setvar! ignoreItem 1
566    if jase_save_slaying = 1 and "slaying" in desc
567        @setvar! saveItem 1
568    elseif jase_save_supremely = 1 and "supremely" in desc
569        @setvar! saveItem 1
570    elseif jase_save_exceedingly = 1 and "exceedingly" in desc
571        @setvar! saveItem 1
572    elseif jase_save_eminently = 1 and "eminently" in desc
573        @setvar! saveItem 1
574    elseif jase_save_surpassingly = 1 and "surpassingly" in desc
575        @setvar! saveItem 1
576    elseif jase_save_accurate = 1 and "accurate" in desc
577        @setvar! saveItem 1
578    elseif jase_save_vanquishing = 1 and "vanquishing" in desc
579        @setvar! saveItem 1
580    elseif jase_save_power = 1 and "power" in desc
581        @setvar! saveItem 1
582    elseif jase_save_force = 1 and "force" in desc
583        @setvar! saveItem 1
584    elseif jase_save_might = 1 and "might" in desc
585        @setvar! saveItem 1
586    elseif jase_save_ruin = 1 and "ruin" in desc
587        @setvar! saveItem 1
588    endif
589
590    if "unidentified" in desc
591        @setvar! jase_currentItem item
592        if skill "Item Identification" = 120
593            useskill "itemId"
594            wft 500
595            target messySourceContainer
596            wait 2000
597            @setvar! ignoreItem 0
598        elseif skill "Item Identification" >= 30
599            useskill "itemId"
600            wft 500
601            target item
602            wait 2000
603            @setvar! ignoreItem 0
604        elseif findtype "wand" backpack as idWandHopefully
605            dclick idWandHopefully
606            wft 500
607            target item
608            @setvar! ignoreItem 0
609        endif
610    endif
611
612    if saveItem = 1
613        overhead "Saving: {{desc}}" 77
614        wait globalTimeout
615        say "Saving an item." 77
616        @setvar! jase_currentItem 0
617        lift item
618        drop jase_Mage_Storage 0 0 0
619        wait 650
620        @ignore item
621    endif
622
623    if ignoreItem = 1
624        lift item
625        wait globalQueTime
626        drop backpack 0 0 0
627        wait globalQueTime
628        overhead "Recycleing: {{desc}}" 77
629        say "Recycleing an item." 77
630        if find jase_currentItem backpack
631            if not gumpexists 949095101
632                if findtype 4032|3997|7864|4148|4136 backpack as recyclerItemKit
633                    dclick recyclerItemKit
634                    waitforgump 949095101 5000
635                endif
636            endif
637            if gumpexists 949095101      
638                gumpresponse 3 949095101
639                wft 500
640                target jase_currentItem
641             endif
642         endif
643         @ignore item
644    endif
645endwhile
646
647# Wrestling - puts items into jase_Wrestling_Storage
648if jase_Wrestling_Storage != 0 and jase_Wrestling_Storage != itemsGoInHere
649    dclick jase_Wrestling_Storage
650    wait 650
651endif
652while findtype 22187|31141|31142 messySourceContainer as item
653    getlabel item desc
654    overhead "Item: {{desc}}" 88
655    @setvar! saveItem 0
656    @setvar! ignoreItem 1
657    if jase_save_slaying = 1 and "slaying" in desc
658        @setvar! saveItem 1
659    elseif jase_save_supremely = 1 and "supremely" in desc
660        @setvar! saveItem 1
661    elseif jase_save_exceedingly = 1 and "exceedingly" in desc
662        @setvar! saveItem 1
663    elseif jase_save_eminently = 1 and "eminently" in desc
664        @setvar! saveItem 1
665    elseif jase_save_surpassingly = 1 and "surpassingly" in desc
666        @setvar! saveItem 1
667    elseif jase_save_accurate = 1 and "accurate" in desc
668        @setvar! saveItem 1
669    elseif jase_save_vanquishing = 1 and "vanquishing" in desc
670        @setvar! saveItem 1
671    elseif jase_save_power = 1 and "power" in desc
672        @setvar! saveItem 1
673    elseif jase_save_force = 1 and "force" in desc
674        @setvar! saveItem 1
675    elseif jase_save_might = 1 and "might" in desc
676        @setvar! saveItem 1
677    elseif jase_save_ruin = 1 and "ruin" in desc
678        @setvar! saveItem 1
679    endif
680
681    if "unidentified" in desc
682        @setvar! jase_currentItem item
683        if skill "Item Identification" = 120
684            useskill "itemId"
685            wft 500
686            target messySourceContainer
687            wait 2000
688            @setvar! ignoreItem 0
689        elseif skill "Item Identification" >= 30
690            useskill "itemId"
691            wft 500
692            target item
693            wait 2000
694            @setvar! ignoreItem 0
695        elseif findtype "wand" backpack as idWandHopefully
696            dclick idWandHopefully
697            wft 500
698            target item
699            @setvar! ignoreItem 0
700        endif
701    endif
702
703    if saveItem = 1
704        overhead "Saving: {{desc}}" 77
705        wait globalTimeout
706        say "Saving an item." 77
707        @setvar! jase_currentItem 0
708        lift item
709        drop jase_Wrestling_Storage 0 0 0
710        wait 650
711        @ignore item
712    endif
713
714    if ignoreItem = 1
715        lift item
716        wait globalQueTime
717        drop backpack 0 0 0
718        wait globalQueTime
719        overhead "Recycleing: {{desc}}" 77
720        say "Recycleing an item." 77
721        if find jase_currentItem backpack
722            if not gumpexists 949095101
723                if findtype 4032|3997|7864|4148|4136 backpack as recyclerItemKit
724                    dclick recyclerItemKit
725                    waitforgump 949095101 5000
726                endif
727            endif
728            if gumpexists 949095101      
729                gumpresponse 3 949095101
730                wft 500
731                target jase_currentItem
732             endif
733         endif
734         @ignore item
735    endif
736endwhile
737
738# Arcane  - puts items into jase_Arcane_Storage
739if jase_Arcane_Storage != 0 and jase_Arcane_Storage != itemsGoInHere
740    dclick jase_Arcane_Storage
741    wait 650
742endif
743while findtype 31017|31019|31021|31023|31025|31027|31029|31031|31033|31035|31037|31038|31041|31043|31045|31047|31049|31051|31053|31055 messySourceContainer as item
744    getlabel item desc
745    overhead "Item: {{desc}}" 88
746    @setvar! saveItem 0
747    @setvar! ignoreItem 1
748    if jase_save_slaying = 1 and "slaying" in desc
749        @setvar! saveItem 1
750    elseif jase_save_supremely = 1 and "supremely" in desc
751        @setvar! saveItem 1
752    elseif jase_save_exceedingly = 1 and "exceedingly" in desc
753        @setvar! saveItem 1
754    elseif jase_save_eminently = 1 and "eminently" in desc
755        @setvar! saveItem 1
756    elseif jase_save_surpassingly = 1 and "surpassingly" in desc
757        @setvar! saveItem 1
758    elseif jase_save_accurate = 1 and "accurate" in desc
759        @setvar! saveItem 1
760    elseif jase_save_vanquishing = 1 and "vanquishing" in desc
761        @setvar! saveItem 1
762    elseif jase_save_power = 1 and "power" in desc
763        @setvar! saveItem 1
764    elseif jase_save_force = 1 and "force" in desc
765        @setvar! saveItem 1
766    elseif jase_save_might = 1 and "might" in desc
767        @setvar! saveItem 1
768    elseif jase_save_ruin = 1 and "ruin" in desc
769        @setvar! saveItem 1
770    endif
771
772    if "unidentified" in desc
773        @setvar! jase_currentItem item
774        if skill "Item Identification" = 120
775            useskill "itemId"
776            wft 500
777            target messySourceContainer
778            wait 2000
779            @setvar! ignoreItem 0
780        elseif skill "Item Identification" >= 30
781            useskill "itemId"
782            wft 500
783            target item
784            wait 2000
785            @setvar! ignoreItem 0
786        elseif findtype "wand" backpack as idWandHopefully
787            dclick idWandHopefully
788            wft 500
789            target item
790            @setvar! ignoreItem 0
791        endif
792    endif
793
794    if saveItem = 1
795        overhead "Saving: {{desc}}" 77
796        wait globalTimeout
797        say "Saving an item." 77
798        @setvar! jase_currentItem 0
799        lift item
800        drop jase_Arcane_Storage 0 0 0
801        wait 650
802        @ignore item
803    endif
804
805    if ignoreItem = 1
806        lift item
807        wait globalQueTime
808        drop backpack 0 0 0
809        wait globalQueTime
810        overhead "Recycleing: {{desc}}" 77
811        say "Recycleing an item." 77
812        if find jase_currentItem backpack
813            if not gumpexists 949095101
814                if findtype 4032|3997|7864|4148|4136 backpack as recyclerItemKit
815                    dclick recyclerItemKit
816                    waitforgump 949095101 5000
817                endif
818            endif
819            if gumpexists 949095101      
820                gumpresponse 3 949095101
821                wft 500
822                target jase_currentItem
823             endif
824         endif
825         @ignore item
826    endif
827endwhile
828
829# Music - puts items into jase_Music_Storage
830if jase_Music_Storage != 0 and jase_Music_Storage != itemsGoInHere
831    dclick jase_Music_Storage
832    wait 650
833endif
834while findtype 3740|3742|3762|3763|10245|20006|20008|20010|20012|20014|20016 messySourceContainer as item
835    getlabel item desc
836    overhead "Item: {{desc}}" 88
837    @setvar! saveItem 0
838    @setvar! ignoreItem 1
839    if jase_save_slaying = 1 and "enticement" in desc
840        @setvar! saveItem 1
841    elseif jase_save_supremely = 1 and "supremely" in desc
842        @setvar! saveItem 1
843    elseif jase_save_exceedingly = 1 and "exceedingly" in desc
844        @setvar! saveItem 1
845    elseif jase_save_eminently = 1 and "eminently" in desc
846        @setvar! saveItem 1
847    elseif jase_save_surpassingly = 1 and "surpassingly" in desc
848        @setvar! saveItem 1
849    elseif jase_save_accurate = 1 and "accurate" in desc
850        @setvar! saveItem 1
851    elseif jase_save_vanquishing = 1 and "vanquishing" in desc
852        @setvar! saveItem 1
853    elseif jase_save_power = 1 and "power" in desc
854        @setvar! saveItem 1
855    elseif jase_save_force = 1 and "force" in desc
856        @setvar! saveItem 1
857    elseif jase_save_might = 1 and "might" in desc
858        @setvar! saveItem 1
859    elseif jase_save_ruin = 1 and "ruin" in desc
860        @setvar! saveItem 1
861    endif
862
863    if "unidentified" in desc
864        @setvar! jase_currentItem item
865        if skill "Item Identification" = 120
866            useskill "itemId"
867            wft 500
868            target messySourceContainer
869            wait 2000
870            @setvar! ignoreItem 0
871        elseif skill "Item Identification" >= 30
872            useskill "itemId"
873            wft 500
874            target item
875            wait 2000
876            @setvar! ignoreItem 0
877        elseif findtype "wand" backpack as idWandHopefully
878            dclick idWandHopefully
879            wft 500
880            target item
881            @setvar! ignoreItem 0
882        endif
883    endif
884
885    if saveItem = 1
886        overhead "Saving: {{desc}}" 77
887        wait globalTimeout
888        say "Saving an item." 77
889        @setvar! jase_currentItem 0
890        lift item
891        drop jase_Music_Storage 0 0 0
892        wait 650
893        @ignore item
894    endif
895
896    if ignoreItem = 1
897        lift item
898        wait globalQueTime
899        drop backpack 0 0 0
900        wait globalQueTime
901        overhead "Recycleing: {{desc}}" 77
902        say "Recycleing an item." 77
903        if find jase_currentItem backpack
904            if not gumpexists 949095101
905                if findtype 4032|3997|7864|4148|4136 backpack as recyclerItemKit
906                    dclick recyclerItemKit
907                    waitforgump 949095101 5000
908                endif
909            endif
910            if gumpexists 949095101      
911                gumpresponse 3 949095101
912                wft 500
913                target jase_currentItem
914             endif
915         endif
916         @ignore item
917    endif
918endwhile
919
920# Armor list - will sort based on item desc
921while 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 messySourceContainer as item
922    getlabel item desc
923    overhead "Item: {{desc}}" 88
924    @setvar! saveItem 0
925    @setvar! ignoreItem 1
926
927    if jase_save_invulnerability = 1 and "invulnerability" in desc
928        @setvar! saveItem 1
929    elseif jase_save_fortification = 1 and "fortification" in desc
930        @setvar! saveItem 1
931    elseif jase_save_hardening = 1 and "hardening" in desc
932        @setvar! saveItem 1
933    elseif jase_save_guarding = 1 and "guarding" in desc
934        @setvar! saveItem 1
935    elseif jase_save_defense = 1 and "defense" in desc
936        @setvar! saveItem 1
937    endif
938    
939    if "unidentified" in desc
940        @setvar! jase_currentItem item
941        if skill "Item Identification" = 120
942            useskill "itemId"
943            wft 500
944            target messySourceContainer
945            wait 2000
946            @setvar! ignoreItem 0
947        elseif skill "Item Identification" >= 30
948            useskill "itemId"
949            wft 500
950            target item
951            wait 2000
952            @setvar! ignoreItem 0
953        elseif findtype "wand" backpack as idWandHopefully
954            dclick idWandHopefully
955            wft 500
956            target item
957            @setvar! ignoreItem 0
958        endif
959    endif
960
961    if saveItem = 1
962        overhead "Saving: {{desc}}" 77
963        wait globalTimeout
964        say "Saving an item." 77
965        @setvar! jase_currentItem 0
966        if "plate" in desc
967            @setvar! saveItem jase_Plate_Storage
968        elseif "chain" in desc
969            @setvar! saveItem jase_Chainmail_Storage
970        elseif "ring" in desc
971            @setvar! saveItem jase_Ringmail_Storage
972        elseif "bone" in desc
973            @setvar! saveItem jase_BoneLeather_Storage
974        elseif "studded" in desc
975            @setvar! saveItem jase_BoneLeather_Storage
976        elseif "leather" in desc
977            @setvar! saveItem jase_RegularLeather_Storage
978        endif
979        if saveItem = 1 or saveItem = 0
980            overhead "Unknown save location for {{desc}}" 34
981        endif
982        lift item
983        drop saveItem 0 0 0
984        wait globalTimeout
985        @ignore item
986    endif
987
988    if ignoreItem = 1
989        lift item
990        wait globalQueTime
991        drop backpack 0 0 0
992        wait globalQueTime
993        overhead "Recycleing: {{desc}}" 77
994        say "Recycleing an item." 77
995        if find jase_currentItem backpack
996            if not gumpexists 949095101
997                if findtype 4032|3997|7864|4148|4136 backpack as recyclerItemKit
998                    dclick recyclerItemKit
999                    waitforgump 949095101 5000
1000                endif
1001            endif
1002            if gumpexists 949095101      
1003                gumpresponse 3 949095101
1004                wft 500
1005                target jase_currentItem
1006             endif
1007         endif
1008         @ignore item
1009    endif
1010endwhile
1011    wait 650
1012gumpclose 949095101
1013
1014if not timerexists "botTimer"
1015    createtimer "botTimer"
1016    settimer "botTimer" 0
1017endif
1018if timer botTimer >= 60000
1019    wait 1000
1020    say "ID BOT ONLINE!" 88
1021    wait 500
1022    settimer "botTimer" 0
1023endif
1024
1025if jase_AutoConsumeArcaneEssence = 1 and findtype 12686 backpack 2609 as item
1026    dclick item
1027    wft 500
1028    target self
1029endif
1030
1031if jase_AutoMoveResourcesFromBag = 1 and findtype 3827|4225|7154|7127 backpack as item
1032    lift item 
1033    wait globalQueTime
1034    drop resourceContainer
1035    wait globalQueTime
1036endif
1037@clearignore
1038endwhile