Hey! When crafting you can check "Banker", if you have DataStore installed. So it crafts till a set amount. I want to create green gems and check on my crafting character, if my AH character already have some of the "perfect" gem versions. Is there any way to check, if an item exists on any character? InbagCount just works for the Character. Thanks for the help
PB can search the guild bank contents using Datastore_Containers, but Containers also has information about bank, bags, and guild items for all your characters. I don't think there's an easy function to search for an item ID on an alt using the PB helpers, i.e. InGBankCount(). the banker system checks for finished craftables, but i don't know how that works. if so, it would be something analogous to InGBankCount (ItemID, CharacterName, Server). from what i can see, the code should appear to work in the same way, it just needs to search for the item in all the different bags on characters on the same realm. which could be added in as a custom function, or possibly added into the bot as a helper function using a similar search method. the problem is specificity, you should really be checking just the banker/storage alt's bags, as you might get a lot of duplicate items, e.g. light parchment, empty potion vials, if you have 3 different alts with let's say, strength potion, intellect, and so on, you'd be crafting less potions for sale because the 'InBagsCount() would be for all the alts, not just a banker's account. perhaps a request for InBagsCount (ItemID, Character,Server) / InBankCount (itemid, Character, Server) . possibly a InDBagCount (itemID, Character, Server) / InDBankCount ( itemID, Character,Server), returning -1 for blank results, -2 for lack of datastore, or -3 for invalid search/character name.