So this will be pretty cool.. Take this little snippet for example:
items = {}
count = 0
stack = 0
count, stack, items = TM_FindItem("hvf_pof","cg", "*", 1)
if count > 0 then
print(string.format("Found: %d, total stack size = %d",count, stack))
end
The first argument is what you might be looking for. In this case it's ruby stacks and gold stacks. The second argument suggest that you want to look at both the ground and containers. The third argument is a wildcard for the containers to look inside all open containers. You can easily give this a list like "XXXYY1_XXXYY2" and it will only look inside those two containers. The 4th argument is the distance to look and report found items.
The return values are intersting. The "count" argument is the resulting count of all items found. The "stack" argument is a sumation of all stack sizes found for the search. For this example, the returned value would be the summation of all gold stack values as well as all ruby stack values (yes, I know that doesn't make any sense....). The final return value "items" is a table of all items returned that matched the search criterion. You can iterate across this table and see the specific information found:
for x,k in pairs(items) do
print(string.format("findid for this item is %d", k.findid))
end
You'll find that you don't have to use the old EUO numbering scheme if you don't want. The function also works with tables of numbers:
items = {}
count = 0
stack = 0
count, stack, items = TM_FindItem({123456, 2340923498},"c", {6767658}, 1)
if count > 0 then
I'll post this up when I have a bit more testing done.