ScriptUO
Official ScriptUO EasyUO Scripts => Script Debug => Topic started by: Guadah on August 16, 2011, 06:28:57 AM
-
So I'm attempting to buy an Invisibility Recipe from a player's vendor in Luna... The only issue is this jackwagon has just randomly tossed in a butt-ton of recipes and I'm unable to find the one I desire so greatly. They are stacked upon each other (I'm assuming because they are most likely using the enhanced client).
My goal here is to work out this snippet to buy the recipe I want... but in my attempts I've purchased 3 recipes I've no need for. So in essence, thus far I have failed!
Here's what I'm working with:
finditem PIP C_ , DJVOSND
if [invisibility] in #property
set %item #findid
finditem %item C_ , DJVOSND
set #ltargetid #findid
event macro 1 0 vendor buy
wait 10
event macro 22 0
PIP is the ID of the Recipes
DJVOSND is the ID of the bag the recipes are located in
Idea's?
-
As always... as soon as I post and re-look at what I've been failing with, I resolve my issue.
The solution?
finditem PIP C_ , DJVOSND
for #findindex 1 #findcnt
{
event property #findid
if [invisibility] in #property
set %item #findid
}
finditem %item C_ , DJVOSND
set #ltargetid #findid
event macro 1 0 vendor buy
wait 10
event macro 22 0
halt
I wasn't cycling through all of the recipes, just looking at one... thus my disconnect. yay Guadah!
-
Miffy's item Finder FTW! for those hard to find items.
Greatest script ever created!
-
I use the enhanced client to look through stacked stuff! (about the only time - sorry ultima!)
-
I thought about it, but don't have it installed. Hince the snippet to find my item =P