Side Note: This Lua requires Dannet. If you load this lua, it will automatically load Dannet if you do not have it loaded.
To load for all characters, the first one can be used if you have eqbc loaded, the second can be run if you already have dannet loaded on all characters:
with EQBC - /bcaa //lua run bitem
with Dannet - /dga /lua run bitem
To then locate who has what, you can execute a few different ways:
Pick something up on your cursor, and execute
/bitem me
-It will search your and your bank to count how many of the held item you possess, and count them in inventory and bank
/bitem all
-Same as above, but will execute that search on all toons connected via dannet, and with bitem.lua loaded
If you know the ID of what you're looking for you can search yourself or everyone's inventory by that ID, or by name as below. Quotes are required for multi-name objects
/bitem me id <itemID>
-Searches as above with a specified id if you know it
/bitem me name "<itemname>"
-As above, but searching by itemname, and the name must be in quotes, whether one or more words. This can be a bit more spotty as it's matching text strings. It's pretty accurate, but can give you funky stuff. a search for emerald would give you a count for emeralds and pristine emeralds for instance, as it's doing partial matches. The more complete the name search the better the match
/bitem all id <itemID>
-Works the same as above for all toons and using the ID
/bitem all name "<itemname>"
-Same as above for all toons, and using the item name
/bitem log debug - toggles debug mode on for some additional feedback, and /bitem log info would switch back to normal output