.. Im not sure how to set it to find the item, search the properties, then click it if properties do not include exceptional.
Any help would be greatly appreciated!
Your code seems to do the job up until you do the finditem on the smelting items.
findItem %smeltingitems
event property %smeltingitems
if excep in #property
{
ignoreitem #smeltingitems
}
finditem %smeltingitems returns the item id you searched for in the variable #FINDID
You want to do the event property on that #FINDID and you also want to ignore that #FINDID if it enters your if statement above.
You could add an else statement to this and then target the item to smelt if you want.
The new code might look like:
findItem %smeltingitems
event property #FINDID ; <----- Changed %smeltingitems to #FINDID
if excep in #property
{
ignoreitem #FINDID ; <----- Changed #smeltingitems to #FINDID
}
else
{
set #LTARGETID #FINDID
event macro 22 0 ; last target
}
Additionally, if you are searching a bunch of items in your bag then you could do a loop after the finditem %smeltingitems. Check out the easyuo wiki entry for #FINDINDEX ,
http://wiki.easyuo.com/index.php?title=FindIndex.
Adding the loop would look like this:
findItem %smeltingitems
for #FINDINDEX 1 #FINDCNT
{
event property #FINDID
if excep in #property
{
ignoreitem #FINDID
}
else
{
set #LTARGETID #FINDID
event macro 22 0 ; last target
; put the code to click the smelt button again here
gosub WaitForSmithGump
if #contkind = STM
{
ContPos 50 50
click 83 403
}
}
}
Good luck with your recycling.