What I'm trying to do is run some commands if an item in a merchants inventory has unlimited quantity (indicated by "--" in the quantity row.
So I'm trying something like this:
/if (${Window[MerchantWnd].Child[ItemList].List[${i},3]}.Equal[--]}) {
The problem is, if the merchant does have a limited quantity, then above code is comparing an int to text, which throws the error:
Failed to parse /if condition, non-numeric encountered.
I've looked around the macroquest2 wiki, and done some searches, but I can't seem to find a way around this. Anyone have any advice?
So I'm trying something like this:
/if (${Window[MerchantWnd].Child[ItemList].List[${i},3]}.Equal[--]}) {
The problem is, if the merchant does have a limited quantity, then above code is comparing an int to text, which throws the error:
Failed to parse /if condition, non-numeric encountered.
I've looked around the macroquest2 wiki, and done some searches, but I can't seem to find a way around this. Anyone have any advice?