Anti-theft looting box by dennozz
#Anti-theft looting box ver.1.00
#********** INFORMATION **********#
#Made by @dennozz on discord.
#If you have any questions, suggestions or concerns please message me via discord
#Inspired/learned by other scrips in https://outlands.uorazorscripts.com/
#IMPORTANT: You need 1 wooden box and 1 copper key (you can craft it with 50 carpentry and 50 tinkering)
#This script will auto store all your loot into a wooden box and lock it.
#This script already stores a bunch of valuable items like cores, ss, research mats, etc.
#OPTIONAL : If you want to add more items modify the line code #37 -> `while findtype 1234|0000|0000`
# COPY and PASTE the item ID you wish to add
@setvar! maxwaittimeinms 650
@setvar! messageCD 1500
@settimer! messageTimer messageCD
while weight > maxweight
if findtype "gold coin" backpack as item
lift item 500
droprelloc 0 0
wait 200
if insysmsg "cannot drop anything"
drop backpack -1 -1 -1
endif
wait maxwaittimeinms
overhead "* gold dropped *" 55
endif
endwhile
if findtype 'wooden box' backpack as chest
if findtype 4110 backpack as key
#------ ADD more items below here ------# v
while findtype 11858|20309|37181|27612|29030|576|2472|2475|2594|2597|2744|2750|2760|2771|2778|2799|3648|3649|3650|3651|3708|3712|3735|3736|3737|3738|3827|3836|3838|3839|3842|3843|3985|4026|4248|5356|5359|5981|8826|12686|15296|15297|17087|17686|19717|22244|22336|23996|23997|24343|24434|29025|29036|29040|29832|29833|43166|43179|43206|48405|48407 backpack any any 1 as item
getlabel item itemLabel
if "blessed" in itemLabel
#skip
@ignore item
else
getlabel chest chestLabel
if "items" in chestLabel
#nothing
else
dclick key
wait 325
target chest
wait 325
overhead "[Box Opened]" 44
endif
if timer messageTimer > messageCD
overhead "moving item.." 11
settimer messageTimer 0
endif
lift item 1000
drop chest
wait maxwaittimeinms
endif
endwhile
getlabel chest chestLabel
while "items" in chestLabel
dclick key
wait 325
target chest
wait 325
getlabel chest chestLabel
endwhile
overhead "[Box Closed]" 65
sysmsg "[Box Closed]" 65
else
overhead "no copper key found" 34
wait maxwaittimeinms
endif
else
overhead "no wooden box found" 34
wait maxwaittimeinms
endif
removetimer messageTimer