by Jaseowns UO Outlands Check out the video: https://youtu.be/xT0IzyYWmlg What does this scriopt do? - We want to search vendors for a specific item and get the price - set the item id, item hue…
Housing
Search Player Vendor and Prompt to Buy Item.razor
1# This is an automated backup - check out https://outlands.uorazorscripts.com/script/f43b668a-588e-455c-90e2-46dc003c55c6 for latest2# Automation by Jaseowns3## Script: Search Player Vendor and Prompt to Buy Item 4## Created by: Jaseowns#66945#############################################6 7# Search Player Vendor and Prompt to Buy Item by Jaseowns8# UO Outlands9######10# Check out the video: https://youtu.be/xT0IzyYWmlg11####12# What does this scriopt do?13# - We want to search vendors for a specific item and get the price14# - set the item id, item hue and a description if needed15####16# Below are some examples:17// Skill Orb search18# pushlist "itemDescToLookFor" "skill"19# @setvar! item_id_to_buy 2233620# @setvar! item_hue_to_buy 296621 22// Tinkering skill scroll search23# pushlist "itemDescToLookFor" "tinkering"24# itemDescToLookFor: "tinkering"25# @setvar! item_id_to_buy 882626# @setvar! item_hue_to_buy 229127 28// if you go through a gate, this does not work right so beware29if not varexist sneakylootbag or not find sneakylootbag backpack30 overhead "Select your sneaky loot bag" 8831 @setvar! sneakylootbag32endif33 34clearignore35removelist "itemDescToLookFor"36createlist "itemDescToLookFor"37// This needs to be case sensetive38// If your item type matches multiples (skill scroll) use39// a helper description like this and uncomment line 3440// pushlist "itemDescToLookFor" "tinkering"41 42// Set your item type here using >info43@setvar! item_id_to_buy 882644@setvar! item_hue_to_buy 229145@setvar! globalTimeout 65046 47removelist "playVendors"48createlist "playVendors"49 50removelist "foundVendors"51createlist "foundVendors"52 53while not dead54 hotkey "Next Monster Target"55 wait 20056 @setvar! playerVendor lasttarget 57 if inlist "playVendors" playerVendor58 // skip59 sysmsg "Might be all done..." 3460 overhead "All done!" 8861 stop62 else63 pushlist "playVendors" playerVendor64 if noto playerVendor = "invulnerable"65 dclick playerVendor66 wait globalTimeout67 for 268 while findtype 2473|3644|3645|3646|3647|3710|3701|3702|29832|29833|2472|2475|3648|3649|3708|29078|41449|41450|3705|3712|2474|3709|3650|3651|29077 playerVendor as container69 getlabel container desc70 if "Price: Not for sale" in desc71 dclick container72 wait globalTimeout73 else74 sysmsg desc75 endif76 ignore container77 endwhile78 endfor79 while findtype item_id_to_buy playerVendor item_hue_to_buy as item80 getlabel playerVendor descPlayerVendor81 getlabel item desc82 83 if list itemDescToLookFor > 084 foreach itemDescToLook in itemDescToLookFor85 if itemDescToLook in desc86 overhead "This vendor: {{descPlayerVendor}}" 8887 menu item 088 wait 25089 while gumpexists 427492865590 sysmsg "Waiting on user input... {{desc}}" 8891 wait 25092 endwhile93 while find item backpack94 overhead "we bought it!"95 if find item sneakylootbag96 break97 else98 lift item 6000099 drop sneakylootbag -1 -1 -1100 wait globalTimeout101 endif102 endwhile103 wait globalTimeout104 endif105 endfor106 else107 overhead "This vendor: {{descPlayerVendor}}" 88108 menu item 0109 wait 250110 while gumpexists 4274928655111 sysmsg "Waiting on user input... {{desc}}" 88112 wait 250113 endwhile114 while find item backpack115 overhead "we bought it!"116 if find item sneakylootbag117 break118 else119 lift item 60000120 drop sneakylootbag -1 -1 -1121 wait globalTimeout122 endif123 endwhile124 endif125 ignore item126 endwhile127 endif128 endif129endwhile