Skip to content
Outlands Hub

Razor script

Lockpicking Using Restock (T8 Edition)

by zerotokraken · 96 lines
Download
ThievingOrganizingLockpicking
Lockpicking Using Restock T8 Edition.razor
1# This is an automated backup - check out https://outlands.uorazorscripts.com/script/4983ac18-0a4f-4cc0-b4d4-86b68321071f for latest2# Automation by Jaseowns3## Script: Lockpicking Using Restock (T8 Edition)4## Created by: zerotokraken#05#############################################6 7@setvar PauseTime 7508@setvar chain SERIALNUMBERHERE9@clearsysmsg10 11if findtype "metal chest|wooden chest" ground -1 -1 2 as LockedBox12    @setvar 'LockCheck' 013	dclick chain14	wait PauseTime15    dclick LockedBox16    if not hidden17        cast 'Invisibility'18        wft19        target self20    endif21    pause PauseTime22    if insysmsg 'It appears to be locked'23        @setvar 'LockCheck' 124    endif25    if 'LockCheck' = 126        gumpresponse 427        overhead 'Picking Lock..' 2028        pause 20029        while not insysmsg 'You successfully pick the lock.'30            if insysmsg 'You make some progress on the lock.'31                overhead 'Progress!' 8832                pause 20033                @clearsysmsg 34            endif35            if insysmsg 'You fail to make any progress on the lock'36                overhead 'Failed!' 3237                pause 20038                @clearsysmsg 39            endif40        endwhile41        overhead 'Picking Success!' 6342    endif43    if 'LockCheck' = 044        overhead 'Chest not Locked!' 3245    endif46	while findtype 'chain link' LockedBox as link47		if findtype 'pouch' backpack as pouch48			lift link49			drop pouch50			gumpresponse 951		endif52	endwhile53    restock 10 54    waitfortarget 55    target LockedBox56    pause PauseTime57    while findtype "metal chest|wooden chest" ground -1 -1 2 as LockedBox58        getlabel LockedBox desc259        if '(0 items, 0 stones)' in desc260            menu LockedBox 161			target clear62			if weight < 46463				if weight < 39464					hotkey 'Recall'65					overhead 'Recalling!'66					waitfortarget67					targettype 'runetome'68				endif69				if weight >= 39470					hotkey 'Drink Strength'71					wait 100072					hotkey 'Recall'73					overhead 'Recalling!'74					waitfortarget75					targettype 'runetome'76				endif77			endif78			if weight >= 46479				overhead 'Too heavy to recall!'80				hotkey 'Gate Travel'81				overhead 'Gating'82				waitfortarget83				targettype 'runetome'84				wait 10085				if findtype 3948 'ground' 0 1 2 as 'bluegate'86					dclick 'bluegate'87					waitforgump 389901987188					gumpresponse 289					cast 'Dispel Field'90					waitfortarget91					target self92				endif93			endif94        endif95    endwhile96endif