Back to "b" tags

Bapeth's Butler by barryroser

Description: This script will use an alt character to sort your shipping crate into your one-tile loot dump setup. If you have a house it can be used to Expedite your ship crate from an inn room to your house, where it will sort the loot into your one-tile setup and buff the closest friendly character.

1# Bapeths Butler 
2#
3# March 26th 2025 - Ship crate code changed for new unlockable ship crate tile
4#
5# Video link on how to use : (not made yet)
6#
7# This script will buff the closest friendly character, sort items from shipping crates, recycle items, and sort items
8# If you ever need to reset storage items, tomes, containers etc... simply delete the variables in Script Options
9#
10# "***REQUIRED***"
11#
12# This script should be used on ALT account with and ALT character with the following skills:
13#    
14# "120 Item ID" (Hard requirement must have)
15# "120 Inscription" (Is not needed, but the higher this skill is the longer your buffs last)
16#
17# Items this script uses are as follows:
18#    
19# All of these items should be locked down/secured in your inn room or house
20# Do not put any of these items inside containers
21#    
22# "Two containers of any kind"
23# "A rune tome"
24# "A rare cloth tome"
25# "A dyes tome"
26# "An arcane rune tome"
27# "A treasure map tome"
28# "A ship upgrade tome"
29# "A skill mastery tome"
30# "A collectible card tome"
31# "An ore map tome"
32# "A skinning map tome"
33# "A lumber map tome"
34# "A fishing map tome"
35# "A storage shelf"
36# "A bank deposit box"
37# "A garden shelf"
38# "A resource stockpile"
39# "A magic item recycler"
40# "A magic item vault"
41# "A repair bench"
42#
43# Script starts here
44
45if not varexist firsttimedumper
46    @setvar firsttimedumper backpack
47    overhead "Welcome to Bapeths One Tile Item Eater and Ship Crate Expeditor..." 156
48    pause 8000
49    overhead "This script uses many required storage items within a 2 tile radius..." 1172
50    pause 9000
51    overhead "Please ensure that you have all required items locked down and/or secured within 2 tiles of your character before using the script..." 156
52    pause 10000
53    overhead "This script should be used with an alt character on an alt account, and, should have 120 Item ID skill..." 156
54    pause 10000
55    overhead "If you do not have 120 Item ID or are missing items from the required list, stop the script now and get those things..." 1172
56    pause 10000
57    overhead "Inscription skill is recommended to have, the higher it is the longer your buffs will last..." 156
58    pause 10000
59    overhead "When you are ready, place your character on your one-tile dump spot and play the script"  156
60    stop
61endif
62
63if not varexist lootchestdump
64    overhead "Set Main Loot Container" 88
65    hotkey "Cancel Current Target"
66    setlasttarget 
67    wft 500
68    while targetexists      
69        //donothing
70    endwhile
71    @setvar "lootchestdump" lasttarget 
72    overhead "Loot Container Set" 77
73endif
74if not varexist lootchestdump2
75    overhead "Set Second Loot Container" 88
76    hotkey "Cancel Current Target"
77    setlasttarget 
78    wft 500
79    while targetexists      
80        //donothing
81    endwhile
82    @setvar "lootchestdump2" lasttarget 
83    overhead "Loot Container Set" 77
84endif
85
86if not varexist rareclothtome
87    if findtype "book" ground 1495 -1 2 as book
88        @setvar "rareclothtome" book
89    endif
90endif
91if not varexist dyestome
92    if findtype "book" ground 1494 -1 2 as book
93        @setvar "dyestome" book
94    endif
95endif
96if not varexist arcanerunetome
97    if findtype "book" ground 2085 -1 2 as book
98        @setvar "arcanerunetome" book
99    endif
100endif
101if not varexist treasuremaptome
102    if findtype "book" ground 2990 -1 2 as book
103        @setvar "treasuremaptome" book
104    endif
105endif
106if not varexist shipupgradetome
107    if findtype "book" ground 2877 -1 2 as book
108        @setvar "shipupgradetome" book
109    endif
110endif
111if not varexist skillmasterytome
112    if findtype "book" ground 2963 -1 2 as book
113        @setvar "skillmasterytome" book
114    endif
115endif
116if not varexist collectablecardtome
117    if findtype "book" ground 2141 -1 2 as book
118        @setvar "collectablecardtome" book
119    endif
120endif
121if not varexist oremaptome
122    if findtype "book" ground 2796 -1 2 as book
123        @setvar "oremaptome" book
124    endif
125endif
126if not varexist skinningmaptome
127    if findtype "book" ground 2651 -1 2 as book
128        @setvar "skinningmaptome" book
129    endif
130endif
131if not varexist lumbermaptome
132    if findtype "book" ground 2799 -1 2 as book
133        @setvar "lumbermaptome" book
134    endif
135endif
136if not varexist fishingmaptome
137    if findtype "book" ground 2722 -1 2 as book
138        @setvar "fishingmaptome" book
139    endif
140endif
141if not varexist myshelf
142    if findtype "storage shelf" ground -1 -1 2 as shelf
143        @setvar "myshelf" shelf
144    endif
145endif
146if not varexist repbench
147    if findtype "repair bench" ground -1 -1 2 as rbench
148        @setvar "repbench" rbench
149    endif
150endif
151if not varexist gardenshelf
152    if findtype "barrel planter shelf|garden shelf" ground -1 -1 2 as gshelf
153    @setvar "gardenshelf" gshelf
154    endif
155endif
156if not varexist respile
157    if findtype "resource container" ground -1 -1 2 as pile
158    @setvar "respile" pile
159    endif
160endif
161if not varexist magicrecycler
162    if findtype "magic item recycler|ornate elven chest" ground -1 -1 2 as recycle
163        @setvar "magicrecycler" recycle
164    endif
165endif
166if not varexist magicchest
167    if findtype "sm magic item vault|magic item chest" ground -1 -1 2 as mchest
168        @setvar "magicchest" mchest
169    endif
170endif
171
172if not timerexists bufftimer
173    createtimer bufftimer
174    settimer bufftimer 33000
175endif
176clearsysmsg 
177hotkey "Next Friend Target"
178pause 600
179if insysmsg "No one matching that"
180    //donothing
181elseif timer bufftimer >= 33000
182    say "Hey bud, need a buff?" 78
183    settimer bufftimer 0
184endif
185    
186gumpresponse 6
187getlabel backpack ping
188gumpclose 4045111101
189getlabel backpack ping
190
191if not hidden
192    hotkey 'Set Grab Item HotBag'
193    wft 500
194    target backpack
195    say "[belch"
196    while cooldown "Hiding"
197        //donothing
198    endwhile
199    if skill "Item ID" = 120
200        clearsysmsg 
201        while not insysmsg "What do you wish to appraise"
202            skill "itemidentification"
203        endwhile
204        wft 500
205        target "magicrecycler"
206        getlabel backpack ping
207        pause 500
208        if not dead
209            dclick "magicrecycler"
210            waitforgump 4045111101 500
211            gumpresponse 10
212            waitforgump 4045111101 500
213            pause 500
214            if ingump "Begin" 4045111101
215                gumpresponse 6
216                waitforgump 4045111101 500
217                pause 350
218            endif
219            if ingump "Confirm" 4045111101 
220                gumpresponse 6
221                waitforgump 4045111101 500
222                pause 500
223                getlabel backpack ping
224            endif
225        endif 
226        if gumpexists 4045111101
227            while ingump "Begin" 4045111101
228                gumpresponse 6
229                waitforgump 4045111101 500
230                pause 350
231                if ingump "No recyclable items found"
232                    menu magicchest 0
233                    wft 500
234                    target "magicrecycler"
235                    gumpclose 4045111101
236                    break
237                endif
238            endwhile
239        endif
240    endif
241    dclick "myshelf"
242    waitforgump 3232825965 500
243    gumpresponse 7
244    waitforgump 3232825965 500
245    gumpclose 3232825965
246    if mana >= 20 and skill "Magery" >= 60
247        cast "bless"
248        wft 2500
249        hotkey "Next Friend Target"
250        lasttarget 
251        clearall 
252        pause 350
253        cast "arch protection"
254        wft 2500
255        target self
256        clearall 
257    endif
258    say "SALLY FOURTH!!!" 88
259    while not hidden
260        skill "hiding"
261        cooldown "Hiding" 10000
262    endwhile
263endif
264if findtype 3645|3644 ground -1 -1 2 as shipcrate
265    while cooldown "World Save"
266        //donothing
267    endwhile
268    hotkey 'Set Grab Item HotBag'
269    wft 500
270    target backpack
271    pause 300
272    dclick shipcrate
273    getlabel backpack ping
274    
275    while findtype "gold coin" shipcrate as bgold
276        lift bgold 60000
277        drop lootchestdump -1 -1 0
278        while queued
279            pause 600
280        endwhile
281    endwhile
282    while findtype "doubloon" shipcrate as bdoubloon
283        lift bdoubloon 60000
284        drop lootchestdump -1 -1 0
285        while queued
286            pause 600
287        endwhile
288    endwhile
289    while findtype "cathedral tapestry|Darkscale tapestry|large painting|landscape painting|portrait painting|hieroglyph|figurine|statue|44987|49730|47107|18653|45127|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|51375|45282|54722|45255|45246|28795|44983|45235|45251|45238|51258|51314|28761|45236|51260|54718|18400|45252|18656|47111|3839|45239|45242|45254|45281|45247|42241|45216|28775|2594|51321|3838|51318|5901|5905|5903|48407|51302|4248|27611|15296|43166|5359|5981|4026|3985|25359|17686|3836|17087|5356|29030|24434|22336|29036|3843|29025|51098|8826|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|3922|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|3861|3821" shipcrate as bitem
290        hotkey 'Grab Item' 
291        target bitem
292        while queued
293            wait 600
294        endwhile
295        if insysmsg "That container cannot hold"
296            break
297        endif
298    endwhile
299    //Dumping all items
300    menu respile 0
301    waitfortarget 1000
302    target 'self'
303    menu gardenshelf 0
304    waitfortarget 1000
305    target 'self'
306    menu rareclothtome 0
307    menu dyestome 0
308    menu arcanerunetome 0
309    menu treasuremaptome 0
310    menu shipupgradetome 0
311    menu skillmasterytome 0
312    menu collectablecardtome 0
313    menu oremaptome 0
314    menu skinningmaptome 0
315    menu lumbermaptome 0
316    menu fishingmaptome 0
317    menu magicrecycler 1
318    while findtype "void orb" backpack as bvoid
319        lift bvoid 60000
320        drop lootchestdump -1 -1 0
321        while queued
322            pause 600
323        endwhile
324    endwhile
325
326    while findtype "research materials" backpack as bresearch
327        lift bresearch 60000
328        drop lootchestdump -1 -1 0
329        while queued
330            pause 600
331        endwhile
332    endwhile
333
334    while findtype "deed" backpack as bdeed
335        lift bdeed 60000
336        drop lootchestdump -1 -1 0
337        while queued
338            pause 600
339        endwhile
340    endwhile
341
342    while findtype "bag of gems" backpack as bpirateboot
343        lift bpirateboot 60000
344        drop lootchestdump2 -1 -1 0
345        while queued
346            pause 600
347        endwhile
348    endwhile
349
350    while findtype "12686" backpack as bessence
351        lift bessence 60000
352        drop magicrecycler -1 -1 0
353        while queued
354            pause 600
355        endwhile
356    endwhile
357
358    while findtype "black market goods" backpack as bmg
359        lift bmg 60000
360        drop lootchestdump -1 -1 0
361        while queued
362            pause 600
363        endwhile
364    endwhile
365    
366    while findtype "redline bottle" backpack as redlinebot
367        lift redlinebot 60000
368        drop lootchestdump -1 -1 0
369        while queued
370            pause 600
371        endwhile
372    endwhile
373    
374    while findtype "redline bottle" backpack as redlinebot
375        lift redlinebot 60000
376        drop lootchestdump -1 -1 0
377        while queued
378            pause 600
379        endwhile
380    endwhile
381
382    while findtype "card" backpack as eventitem
383        lift eventitem 60000
384        drop lootchestdump2 -1 -1 0
385        while queued
386            pause 600
387        endwhile
388    endwhile
389    
390    if skill "Item ID" = 120
391        clearsysmsg 
392        while not insysmsg "What do you wish to appraise"
393            skill "itemidentification"
394        endwhile
395        wft 500
396        target "magicrecycler"
397        getlabel backpack ping
398        pause 500
399        if not dead
400            dclick "magicrecycler"
401            waitforgump 4045111101 500
402            gumpresponse 10
403            waitforgump 4045111101 500
404            pause 500
405            if ingump "Begin" 4045111101
406                gumpresponse 6
407                waitforgump 4045111101 500
408                pause 350
409            endif
410            if ingump "Confirm" 4045111101 
411                gumpresponse 6
412                waitforgump 4045111101 500
413                pause 500
414                getlabel backpack ping
415            endif
416        endif 
417        if gumpexists 4045111101
418            while ingump "Begin" 4045111101
419                gumpresponse 6
420                waitforgump 4045111101 500
421                pause 350
422                if ingump "No recyclable items found"
423                    menu magicchest 0
424                    wft 500
425                    target "magicrecycler"
426                    gumpclose 4045111101
427                    break
428                endif
429            endwhile
430        endif
431    endif
432    
433    hotkey 'Grab Item' 
434    wft 500
435    target shipcrate
436    
437    dclick "myshelf"
438    waitforgump 3232825965 500
439    gumpresponse 7
440    waitforgump 3232825965 500
441    gumpclose 3232825965
442    
443    clearsysmsg 
444    hotkey "Next Friend Target"
445    pause 600
446    if insysmsg "No one matching that"
447        //donothing
448    elseif timer bufftimer >= 33000
449        say "Hey bud, need a buff?" 78
450        settimer bufftimer 0
451    endif
452    if mana >= 20 and not hidden and skill "Magery" >= 60
453        cast "bless"
454        wft 2500
455        hotkey "Next Friend Target"
456        lasttarget 
457        clearall 
458        pause 350
459        cast "arch protection"
460        wft 2500
461        target self
462        clearall 
463        say "SALLY FOURTH!!!" 88
464    endif
465    
466    while not hidden
467        skill "Hiding"
468    endwhile
469endif
470loop