Skip to content
Outlands Hub

Razor script

Find Item on Vendor

by Sandro · 76 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.

by Sandro Finds the item you specify in the top layer or second layer of a vendor bag, and keeps those bags opened. Edit this script in 2 places with the item type you seek. Stand still and let the script open the…

HousingOrganizing
Find Item on Vendor.razor
1# This is an automated backup - check out https://outlands.uorazorscripts.com/script/bde3c2b6-404f-4af1-a87d-0f6ba650015a for latest2# Automation by Jaseowns3## Script: Find Item on Vendor4## Created by: Sandro#43675#############################################6 7# Find Item on Vendor by Sandro8# Finds the item you specify in the top layer or second layer of a vendor bag, and keeps those bags opened.9# Edit this script in 2 places with the item type you seek.10# Stand still and let the script open the backpack of all vendors in the area.11# After all backpacks have been opened, you will be asked to12# close any remaining open backpacks, then target yourself to re-open only the backpacks containing your item.13 14setvar! timeout 60015clearignore16removelist 'vendors'17createlist 'vendors'18removelist 'backpacks'19createlist 'backpacks'20 21while not dead22    @hotkey 'Next Monster Target'23    @setvar! 'vendorID' lasttarget24    if noto 'vendorID' = invulnerable 25        if inlist 'vendors' 'vendorID'26            # Close all vendor bags27             walk "North"28             walk "South"29             overhead 'Close any open backpacks'30             wait timeout31             setvar! 'Target anything'32             foreach pack in 'backpacks'33                sysmsg 'opening pack {{index}}'34                dclick pack35                wait timeout36             endfor37            sysmsg 'done' 2338            stop39        else 40            pushlist 'vendors' 'vendorID'41        endif42 43        if findtype 3701 'vendorID' as mainBackpack44          dclick 'mainBackpack'45          wait timeout46          @ignore mainBackpack47          # -------48          # ITEM NAME HERE49          # -------50          if findtype 'aspect core' mainBackpack as foundItem51              sysmsg 'found item 1 layer' 3352              pushlist 'backpacks' mainBackpack53          endif54          while findtype 3701|29833|3705|3712|3648|3702 mainBackpack as container55              @ignore container56              getlabel container desc57              if "Price: Not for sale" in desc58                dclick container59                wait timeout60                # -------61                # ITEM NAME HERE62                # -------63                if findtype 'aspect core' container as foundItem64                    sysmsg 'found item 2 layer' 3365                    if not inlist "backpacks" mainBackpack66                        pushlist "backpacks" mainBackpack67                    endif68                    pushlist 'backpacks' container69                endif70              endif71          endwhile72        endif73    else 74        sysmsg 'not invul'75    endif76endwhile