Vendor Search for a specific item (example script) by Jaseowns
Description: Check out "Search Player Vendor and Prompt to Buy Item" https://outlands.uorazorscripts.com/script/f43b668a-588e-455c-90e2-46dc003c55c6 for the full script.
1# Check out Search Player Vendor and Prompt to Buy Item
2# https://outlands.uorazorscripts.com/script/f43b668a-588e-455c-90e2-46dc003c55c6
3# for the full script.
4
5# work in progress
6# Search one vendor for a specific item by Jaseowns
7# You want to edit the label potentially.. tbd
8# What are we doing?
9# - We want to search vendors for a specific item and get the price
10# - Starting with a skill orb
11# "name: void orb"
12# "id: 22336"
13# "hue: 2966"
14
15# "name: scroll of calling"
16# "id: 8826"
17# "hue: 2291"
18
19# 8826 2291 carp sccroll
20
21clearignore
22
23@setvar! item_id_to_buy 8826
24@setvar! item_hue_to_buy 2291
25// TODO: find label of tinkering scroll
26@setvar! globalTimeout 650
27
28
29 @setvar! playerVendor
30
31 if noto playerVendor = "invulnerable"
32 dclick playerVendor
33 wait globalTimeout
34 for 2
35 while findtype 3701|29833|3705|3712|3648|3702 playerVendor as container
36 getlabel container desc
37 if "Price: Not for sale" in desc
38 dclick container
39 wait globalTimeout
40 else
41 sysmsg desc
42 endif
43 ignore container
44 endwhile
45 endfor
46
47 while findtype item_id_to_buy playerVendor item_hue_to_buy as item
48 getlabel playerVendor descPlayerVendor
49 getlabel item desc
50 if "tinkering" in desc
51 overhead "This vendor: {{descPlayerVendor}}" 88
52 overhead desc
53 wait globalTimeout
54 stop
55 endif
56
57 ignore item
58 endwhile
59 endif
60 endif
61