Easiest to use I think is a simple 2 dimension array with the first set containing the item name, and the second containing the starting quantity of the item found using FindItem. ieShouldn't be to hard to make. Just declare a new integer outer variable each time a new kind of item is looted. Variable name would be Loot_Item_name (where spaces would be removed).
Then increase the counter the next time the same item was found. But then you would need an array to keep track of the variables.
I'll look into it when I have time.
Code: Select all
Sub SetupItemTrack
/declare LootQuantity[4, 2] array string outer 0
/varset LootQuantity[1, 1] Spiderling Silk
/varset LootQuantity[2, 1] Spider Silk
/varset LootQuantity[3, 1] Low Quality Wolf Pelt
/varset LootQuantity[4, 1] Low Quality Cat Pelt
/declare i int local
/for i 1 to 4
/varset LootQuantity[${i}, 2] ${FindItemCount[=${LootQuantity[${i}, 1]}]}
/next i
/return
Sub ReportItemTrack
/declare i int local
/for i 1 to 4
/if (${FindItemCount[=${LootQuantity[${i}, 1]}]}) /echo You have looted ${LootQuantity[1, 1] (${Math.Calc[${FindItemCount[=${LootQuantity[${i}, 1]}]} - ${LootQuantity[${i}, 2]}]})
/next i
/return 


