Skip to content
Outlands Hub

Razor script

Vendor Search for a specific item (example script)

by Jaseowns · 67 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.

Check out Search Player Vendor and Prompt to Buy Item https://outlands.uorazorscripts.com/script/f43b668a-588e-455c-90e2-46dc003c55c6 for the full script.

Housing
Vendor Search for a specific item example script.razor
1# This is an automated backup - check out https://outlands.uorazorscripts.com/script/0ac6c7ce-2ec2-49fa-aa5b-593d25b7151f for latest2# Automation by Jaseowns3## Script: Vendor Search for a specific item (example script)4## Created by: Jaseowns#66945#############################################6 7# Check out Search Player Vendor and Prompt to Buy Item8# https://outlands.uorazorscripts.com/script/f43b668a-588e-455c-90e2-46dc003c55c6 9# for the full script.10 11# work in progress12# Search one vendor for a specific item by Jaseowns13# You want to edit the label potentially.. tbd14# What are we doing?15# - We want to search vendors for a specific item and get the price16# - Starting with a skill orb 17# "name: void orb"18# "id: 22336"19# "hue: 2966"20 21# "name: scroll of calling"22# "id: 8826"23# "hue: 2291"24 25# 8826 2291 carp sccroll26 27clearignore28 29@setvar! item_id_to_buy 882630@setvar! item_hue_to_buy 229131// TODO: find label of tinkering scroll32@setvar! globalTimeout 65033 34 35    @setvar! playerVendor36 37        if noto playerVendor = "invulnerable"38            dclick playerVendor39            wait globalTimeout40            for 241                while findtype 3701|29833|3705|3712|3648|3702 playerVendor as container42                    getlabel container desc43                    if "Price: Not for sale" in desc44                        dclick container45                        wait globalTimeout46                    else47                        sysmsg desc48                    endif49                    ignore container50                endwhile51            endfor52 53            while findtype item_id_to_buy playerVendor item_hue_to_buy as item54                getlabel playerVendor descPlayerVendor55                getlabel item desc56                if "tinkering" in desc57                    overhead "This vendor: {{descPlayerVendor}}" 8858                    overhead desc                    59                    wait globalTimeout60                    stop61                endif62                63                ignore item64            endwhile65        endif66    endif67