Hey all. I'm trying to write a script that will buy a particular item from a player vendor but only if it meets a few requirements such as price or charges left. I can't seem to figure out how to make those last two work. I tried maybe using the information in #property but it wont work.
Right now I'm testing this with a barbed kit and this is the code i've come up with
mainloop:
finditem %Rkit c_ , %bag
if #findkind = -1
{
goto mainloop
}
if #findcnt => 1
{
event Property #findid
if #findcol = 2129
if Barbed_Runic_Sewing_Kit in #property
if Uses_Remaining: , #spc , >= 15 in #property
if Price:_ , #spc , >= %price in #property
{
msg Vendor buy$
target 2s
set #ltargetid #findid
event macro 22 0
wait 5
click 239 336
wait 5
}
RETURN
Im stuck. Can anyone lend a hand!