Skip to content
Outlands Hub

Razor script

Search a container or bag for trapped pouches with items inside

by Jaseowns · 61 lines
Download

by Jaseowns UO Outlands Requirements: If an item exists in a pouch, we drop that pouch at the top left of your base backpack You can remove line 22-24 if you dont want to move…

Organizing
Search a container or bag for trapped pouches with items inside.razor
1# This is an automated backup - check out https://outlands.uorazorscripts.com/script/b1d537bd-41db-4ba1-97b7-5c6f2a46fae6 for latest2# Automation by Jaseowns3## Script: Search a container or bag for trapped pouches with items inside4## Created by: Jaseowns#66945#############################################6 7# Search a container or bag for trapped pouches with items inside by Jaseowns8# UO Outlands9###############10# Requirements:11# If an item exists in a pouch, 12# we drop that pouch at the top left 13# of your base backpack14# You can remove line 22-24 if you dont want to move the pouch15################16# This only works for bags on ground or your bag.. 17# NOT other players backpacks or corpses18 19@setvar! checkThisBagOnly20@setvar! foundOne 021@setvar! foundRegular 022 23@clearignore 24while findtype "pouch" checkThisBagOnly 0 as item25    getlabel item desc26    if "(0 items," in desc27            // nothing28    else29        @setvar! foundRegular 130        overhead "Regular: {{desc}}" 8831        lift item32        drop backpack 100 100 033        wait 65034        dclick item35        wait 65036    endif37    @ignore item38endwhile39while findtype "pouch" checkThisBagOnly 38 as item40    getlabel item desc41    if "(0 items," in desc42            // nothing43    else44        @setvar! foundOne 145        overhead "Trapped: {{desc}}" 8846        lift item47        drop backpack 0 0 048        wait 65049    endif50    @ignore item51endwhile52if foundRegular = 1 and foundOne = 153    overhead "All done - GOT REGULAR AND TRAPPED!" 8854elseif foundOne = 155    overhead "All done - GOT TRAPPED!" 8856elseif foundRegular = 157    overhead "All done - GOT REGULAR!" 8858else59    overhead "All done - none found" 8860endif61@clearignore