Skip to content
Outlands Hub

Razor script

Lockpicking using Restock

by zerotokraken · 53 lines
Download

Compatibility unverified

This community Razor script has not been tested in game by the Hub. Read its setup and client requirements before use.

ThievingOrganizingLockpicking
Lockpicking using Restock.razor
1# This is an automated backup - check out https://outlands.uorazorscripts.com/script/5e2c9b8b-a601-4834-a861-2dc1b09a9ff3 for latest2# Automation by Jaseowns3## Script: Lockpicking using Restock4## Created by: zerotokraken#05#############################################6 7@setvar PauseTime 7508@clearsysmsg9 10if findtype "metal chest|wooden chest" ground -1 -1 2 as LockedBox11    @setvar 'LockCheck' 012    dclick LockedBox13    if not hidden14        cast 'Invisibility'15        wft16        target self17    endif18    pause PauseTime19    if insysmsg 'It appears to be locked'20        @setvar 'LockCheck' 121    endif22    if 'LockCheck' = 123        gumpresponse 424        overhead 'Picking Lock..' 2025        pause 20026        while not insysmsg 'You successfully pick the lock.'27            if insysmsg 'You make some progress on the lock.'28                overhead 'Progress!' 8829                pause 20030                @clearsysmsg 31            endif32            if insysmsg 'You fail to make any progress on the lock'33                overhead 'Failed!' 3234                pause 20035                @clearsysmsg 36            endif37        endwhile38        overhead 'Picking Success!' 6339    endif40    if 'LockCheck' = 041        overhead 'Chest not Locked!' 3242    endif43    restock 10 44    waitfortarget 45    target LockedBox46    pause PauseTime47    while findtype "metal chest|wooden chest" ground -1 -1 2 as LockedBox48        getlabel LockedBox desc249        if '(0 items, 0 stones)' in desc250            script 'recall'51        endif52    endwhile53endif