Skip to content
Outlands Hub

Razor script

Auto Dungeon or TMap Chest

by FewUnderstandThis · 224 lines
Download

by @FewUnderstandThis Opens and loots chest with hiding checks

Hiding
Auto Dungeon or TMap Chest.razor
1# This is an automated backup - check out https://outlands.uorazorscripts.com/script/8710be50-cc0f-46d2-a7e0-3c0c14e840f2 for latest2# Automation by Jaseowns3## Script: Auto Dungeon or TMap Chest4## Created by: FewUnderstandThis#70895#############################################6 7# Auto Dungeon or TMap Chest by @FewUnderstandThis8# Opens and loots chest with hiding checks9 10clearsysmsg11unsetvar chest12setvar! locked 013setvar! trapped 014 15# Hiding check16if not hidden17    skill 'hiding'18    wait 25019    if not hidden20        overhead 'Not Hidden!' 3821        overhead 'Not Hidden!' 3822        overhead 'Not Hidden!' 3823        stop24    endif25endif26 27# Create loot list28if not listexists 'lootTypes'29    overhead 'Compiling list...' 115030    createlist 'lootTypes'31    # Gold32    pushlist 'lootTypes' 0xeed33    # Chain Link34    pushlist 'lootTypes' 0xa8c635    # MCD36    pushlist 'lootTypes' 0x42bf37    # Mastery Scroll38    pushlist 'lootTypes' 0x227a39    # Aspect Extract40    pushlist 'lootTypes' 0xefc41    # Aspect Core42    pushlist 'lootTypes' 0xf9143    # Skill Orb44    pushlist 'lootTypes' 0x574045    # Skill Scroll46    pushlist 'lootTypes' 0xef347    # Research Mats48    pushlist 'lootTypes' 0x72a449    # Tmap50    pushlist 'lootTypes' 0x14ec51    52    # Black Pearl53    pushlist 'lootTypes' 0xf7a54    # Blood Moss55    pushlist 'lootTypes' 0xf7b56    # Mandrake Root57    pushlist 'lootTypes' 0xf8658    # Garlic59    pushlist 'lootTypes' 0xf8460    # Ginseng61    pushlist 'lootTypes' 0xf8562    # Nightshade63    pushlist 'lootTypes' 0xf8864    # Spiders Silk65    pushlist 'lootTypes' 0xf8d66    # Sulphurous Ash67    pushlist 'lootTypes' 0xf8c68    69    # Amber70    pushlist 'lootTypes' 0xf2571    # Amethyst72    pushlist 'lootTypes' 0xf1673    # Citrine74    pushlist 'lootTypes' 0xf1575    # Diamond76    pushlist 'lootTypes' 0xf2677    # Emerald78    pushlist 'lootTypes' 0xf1079    # Ruby80    pushlist 'lootTypes' 0xf1381    # Sapphire82    pushlist 'lootTypes' 0xf1983    # Star Sapphire84    pushlist 'lootTypes' 0xf2185    # Tourmaline86    pushlist 'lootTypes' 0xf2d87    88    # Magic spellbook89    pushlist 'lootTypes' 0xefa90    91    # Arrows92    pushlist 'lootTypes' 0xf3f93    # Bandages94    pushlist 'lootTypes' 0xe2195    # Bolts96    pushlist 'lootTypes' 0x1bfb97endif98 99# Set loot bag100if not find lootBag backpack101    overhead 'Set Loot Bag:' 1150102    setvar! lootBag103    wait 250104endif105 106# Look for chest107if findtype 'metal chest' ground any any 2 as metalChest108    setvar! chest metalChest109elseif findtype 'wooden chest' ground any any 2 as woodenChest110    setvar! chest woodenChest111endif112getlabel chest chestLabel113wait 100114if 'dungeon chest' in chestLabel or 'treasure map chest' in chestLabel115    overhead chestLabel 1150116else117    overhead 'No chest found!' 38118    stop119endif120 121# Open chest122dclick chest123waitforgump 736038070 500124if gumpexists 736038070125    setvar! locked 1126    setvar! trapped 1127else128    overhead 'Chest not locked!' 38129    overhead 'Target chest to continue looting:' 38130    setvar chest131endif132 133# Remove trap134while trapped = 1135    if not hidden136        skill 'hiding'137        wait 250138        if not hidden139            overhead 'Not Hidden!' 38140            overhead 'Not Hidden!' 38141            overhead 'Not Hidden!' 38142            stop143        endif144    endif145    gumpresponse 7146    wait 250147    if insysmsg 'cleared it of traps' or insysmsg 'devoid of traps'148        overhead 'Trap removed!' 1150149        setvar! trapped 0150        break151    elseif insysmsg 'attempt to remove traps'152        overhead 'Removing trap...' 1150153        for 15154            if not hidden or insysmsg 'cleared it of traps' or insysmsg 'devoid of traps'155                break156            else157                wait 250158            endif159        endfor160    else161        overhead 'Check Script!' 38162        wait 250163    endif164endwhile165wait 250166 167# Pick lock168while locked = 1169    if not hidden170        skill 'hiding'171        wait 250172        if not hidden173            overhead 'Not Hidden!' 38174            overhead 'Not Hidden!' 38175            overhead 'Not Hidden!' 38176            stop177        endif178    endif179    gumpresponse 4180    wait 250181    if not gumpexists 736038070 or insysmsg 'successfully pick the lock'182        overhead 'Lock picked!' 1150183        setvar! locked 0184        break185    elseif insysmsg 'attempt to pick the lock'186        overhead 'Picking lock...' 1150187        for 15188            if not hidden or insysmsg 'successfully pick the lock'189                break190            else191                wait 250192            endif193        endfor194    else195        overhead 'Check Script!' 38196        wait 250197    endif198endwhile199wait 250200 201# Loot202overhead 'Looting...' 1150203foreach t in 'lootTypes'204    while findtype t chest as loot205        if not hidden206            skill 'hiding'207            wait 250208            if not hidden209                overhead 'Not Hidden!' 38210                overhead 'Not Hidden!' 38211                overhead 'Not Hidden!' 38212                stop213            endif214        endif215        getlabel loot lootLabel216        overhead lootLabel 1150217        lift loot 999218        drop lootBag -1 -1 -1219        wait 500220    endwhile221endfor222 223unsetvar chest224overhead 'Script Complete!' 1150