Chest Picker by AreYouKidden🐲
Description from the author:
@setvar 'PauseTime' 750
overhead 'Select Chest to be Picked'
@setvar 'LockedBox'
@clearsysmsg
if not find 'LootBox' 'self'
overhead 'Select where to loot to'
setvar 'LootBox'
endif
@setvar 'LockCheck' 0
dclick 'LockedBox'
pause 'PauseTime'
if insysmsg 'It appears to be locked'
@setvar 'LockCheck' 1
endif
if 'LockCheck' = 1
gumpresponse 7
overhead 'Removing Traps..' 20
while not insysmsg 'You have successfully cleared it of traps' and not insysmsg 'That appears to be devoid of traps'
if insysmsg 'You make some progress towards clearing it of traps'
overhead 'Progress!' 88
pause 200
@clearsysmsg
gumpresponse 7
endif
if insysmsg 'You fail to make any progress towards removing traps'
overhead 'Failed!' 32
pause 200
@clearsysmsg
gumpresponse 7
endif
endwhile
overhead 'Traps Cleared!' 63
pause 'PauseTime'
gumpresponse 4
overhead 'Picking Lock..' 20
pause 200
while not insysmsg 'You successfully pick the lock.'
if insysmsg 'You make some progress on the lock.'
overhead 'Progress!' 88
pause 200
@clearsysmsg
gumpresponse 4
endif
if insysmsg 'You fail to make any progress on the lock'
overhead 'Failed!' 32
pause 200
@clearsysmsg
gumpresponse 4
endif
endwhile
overhead 'Picking Success!' 63
endif
if 'LockCheck' = 0
overhead 'Chest not Locked!' 32
endif
restock 10
waitfortarget
target 'LockedBox'
pause 'PauseTime'
# script 'Stealth Wiz'Used in conjunction with restock agent 10 in order to auto pick chests (dungeon or tmap), then loot immediately afterwards.