Skip to content
Outlands Hub

Razor script

Simple pre-hide Treasure Chest Looting (1)

by Jaseowns · 167 lines
Download

by Jaseowns UO Outlands TwoFastTwoFurious Stream Whats the point?

Combat
Simple pre-hide Treasure Chest Looting 1.razor
1# This is an automated backup - check out https://outlands.uorazorscripts.com/script/47426ec9-170d-4e80-a6ad-80d82b413526 for latest2# Automation by Jaseowns3## Script: Simple pre-hide Treasure Chest Looting (1) 4## Created by: Jaseowns#66945#############################################6 7# Simple pre-hide Treasure Chest Looting (1) by Jaseowns8# UO Outlands9##########10### TwoFastTwoFurious Stream11##########12# Whats the point?13 14# Running through the dungeon15# Get near a chest, it will try and hide 16# if not, it will invis17# loot that shit and go18 19##20# We need to know if we have tools21# We need to make sure we are still in range of the chest22# Slow down the picking23 24while dead 25    overhead "Rip"26    wait 250027endwhile28 29 30if skill "Magery" > 60 and not hidden31    while not targetexists32        cast "Invisibility"33        wft 10034    endwhile35endif36    37 38@clearignore 39for 1640    if index > 0 and findtype 3651|3649|3648|3650|3708|2475 ground -1 -1 index as chest41        getlabel chest desc42        if "lock" in desc43            overhead "{{desc}}  - {{index}} tiles" 88 chest44            break45        else 46            overhead "Already opened - {{index}} tiles" 34 chest47            @ignore chest48        endif49    endif50endfor51@clearignore 52 53 54// If are arent near a chest-  prep invis?55 56@setvar! jaseowns_Chest 057 58if findtype "wooden chest|metal chest" ground -1 -1 2 as item59    @setvar! jaseowns_Chest item60endif61 62if jaseowns_Chest = 063    overhead "Nothing in range"64    wait 20065    replay66else67    overhead "S � THIS � S" 88 jaseowns_Chest68endif69 70getlabel jaseowns_Chest desc71 72@setvar! jaseowns_PickLock 073@setvar! jaseowns_RemoveTrap 074if "trap" in desc75    @setvar! jaseowns_RemoveTrap 176endif77if "lock" in desc78    @setvar! jaseowns_PickLock 179endif80 81 82 83if jaseowns_RemoveTrap = 1 or jaseowns_PickLock = 184    if targetexists85        hotkey "Target Self"86    endif87    warmode on88    warmode off89    dclick jaseowns_Chest90    waitforgump 736038070 50091elseif jaseowns_RemoveTrap = 0 and jaseowns_PickLock = 092    overhead "Already picked" 3493    replay94endif95 96@setvar! jaseowns_UseGumpTimerCD 3500 97settimer jaseowns_UseGumpTimer jaseowns_UseGumpTimerCD98while jaseowns_RemoveTrap = 1 and gumpexists 73603807099    if timer jaseowns_UseGumpTimer >= jaseowns_UseGumpTimerCD100        gumpresponse 7 736038070    101        waitforgump 736038070 500102        settimer jaseowns_UseGumpTimer 0103    endif104    if ingump "Cleared of Traps" 736038070105        @setvar! jaseowns_RemoveTrap 0106        break107    endif108endwhile109 110overhead "Cleared of traps"111 112settimer jaseowns_UseGumpTimer jaseowns_UseGumpTimerCD113while gumpexists 736038070114    if timer jaseowns_UseGumpTimer >= jaseowns_UseGumpTimerCD115        gumpresponse 4 736038070    116        waitforgump 736038070 500117        settimer jaseowns_UseGumpTimer 0118    endif119endwhile120    121 122 123overhead "Cleared of Locks"124 125 126 127 128// Are we near a chest?129    // Pick a chest130        131    // If picked132        133        134// Gold135while find jaseowns_Chest ground -1 -1 2 and findtype 24434|43206|29363|43166|22336|29348|17087|3985|8826|3827|29030|3836|5981|4248|5359|3839|3838|3843|2597|29036|48407|3834|3865|3859|3885|3856|3878|3877|3873|3861|3862|576|5123|7177|7027|3920|5131|5179|5075|3980|5060|5076|5042|10245|3938|3913|7169|3909|5063|5089|3981|7170|7033|3976|3762|5040|5103|5117|7181|7029|3568|6264|3742|5139|6263|7026|5125|3740|5121|3973|3974|5204|5105|5185|5078|5115|7175|5059|7034|3713|3915|5112|5070|5049|5119|5205|5046|3962|3934|7035|3911|7179|5106|5143|3573|3719|5177|7610|5181|3917|5132|3963|7031|5207|5056|5085|3763|5129|5187|3721|3972|5138|3570|5101|5061|5074|5142|5182|5146|6265|5090|5203|5044|5144|3932|5201|5127|3572|7173|5135|3937|3571|22326|27611|9917|3821|5356|8455|5362|45315|8454|22187|5901|7163|3617|3903|12686 jaseowns_Chest as item136    getlabel item lootDesc137    overhead lootDesc138    hotkey 'Grab Item'139    wft 500140    target item141    while queued142        wait 50143    endwhile144endwhile145 146// Scrolls147while find jaseowns_Chest ground -1 -1 2 and findtype 7981|7982|7983|7984|7985|7986|7987|7988|7989|7990|7991|7992|7993|7994|7995|7996|7997|7998|7999|8000|8001|8002|8003|8004|8005|8006|8007|8008|8009|8010|8011|8012|8013|8014|8015|8016|8017|8018|8019|8020|8021|8022|8023|8024|8025|8026|8027|8028|8029|8030|8031|8032|8033|8034|8035|8036|8037|8038|8039|8040|8041|8042|8033|8044 jaseowns_Chest as item148    getlabel item lootDesc149    overhead lootDesc150    hotkey 'Grab Item'151    wft 500152    target item153    while queued154        wait 50155    endwhile156endwhile157 158if findtype "reagent satchel" self as item159    menu item 0160    wait 200161endif162 163// quiver164if findtype 12215 self as item165    menu item 0166    wait 200167endif