As the title say, how do i get all items in a category?
I want to count how many items i have from each category
As the title say, how do i get all items in a category?
I want to count how many items i have from each category
Lets say you want all the items from category 'a', you do:
foreach lootingitem i 'a' do
print(i.name, i.destination)
end
Now you want all the items from category 'a' and category 'b', you do:
foreach lootingitem i 'ab' do
print(i.name, i.destination)
end
Easy, huh?
I'm not sure if that will count how many items of each catergory i have on my backpack
I tried something like
This works but count 1 by 1Code:foreach lootingitem i 'sn' do if itemcount(i.name) > 0 then say('>') end end
Is there anyway to add it to a table and then count all items from that table?
Last edited by Jesusz0r; 03-31-2014 at 02:07 PM.