Thread Tools Display Modes
10-22-14, 11:00 AM   #1
Tonyleila
A Molten Giant
 
Tonyleila's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 758
Can you now track whats on your Bank?

So you can now craft with items that are on your Reagent Bank or at your regular Bank. When you open your profession window while not at the bank it will display the items that are on your bank in the ricepts.

So is it possible for an AddOn to track items at your bank at least the items of your professions?
__________________
Author of: LeilaUI and Aurora: Missing Textures
__________________
  Reply With Quote
10-22-14, 11:51 AM   #2
Rilgamon
Premium Member
 
Rilgamon's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Sep 2009
Posts: 822
Like always there are the tooltip-addons like Altoholic and BankItems that will show info on hovering.
__________________
The cataclysm broke the world ... and the pandas could not fix it!
  Reply With Quote
10-22-14, 12:05 PM   #3
Tonyleila
A Molten Giant
 
Tonyleila's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 758
Originally Posted by Rilgamon View Post
Like always there are the tooltip-addons like Altoholic and BankItems that will show info on hovering.
Yes thats why I ask the question I'm using BagSync and it dosen't update whats on my Bank when I craft something from it and someone said its not possible to track.
__________________
Author of: LeilaUI and Aurora: Missing Textures
__________________
  Reply With Quote
10-22-14, 12:27 PM   #4
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Originally Posted by Tonyleila View Post
someone said its not possible to track.
Well that's just silly. Of course it's possible... even if there's no API to get the current contents, if you had 100 of an item the last time you actually visited the bank, then it's trivial to keep track of how many you've used since then, and subtract. And if the default UI shows you the information already, then there's almost certainly an API for it. However, I haven't looked, and don't know of any specific addons that do this yet, so other than "it's possible" I can't really help...
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote
10-22-14, 02:38 PM   #5
JDoubleU00
A Firelord
 
JDoubleU00's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2008
Posts: 463
Bagsync has an update and there is a Bagsync2 out as well from a different author.
  Reply With Quote
10-22-14, 03:18 PM   #6
Tonyleila
A Molten Giant
 
Tonyleila's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 758
Originally Posted by rocnroll View Post
Bagsync has an update and there is a Bagsync2 out as well from a different author.
Yes and both don't track this yet
__________________
Author of: LeilaUI and Aurora: Missing Textures
__________________
  Reply With Quote
10-22-14, 03:48 PM   #7
Mazzop
A Cliff Giant
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 74
seems that select(4, GetTradeSkillReagentInfo(tradeSkillRecipeId, reagentId)) tracks your bags, bank and reagent bank altogether


little around, but if you get a table of tradeSkillRecipeId and corresponding reagents, you will get that info
  Reply With Quote
10-22-14, 04:20 PM   #8
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,892
Looks like there is a constant MAX_TRADE_SKILL_REAGENTS that can be used to generate a list .. Blizzard_TradeSkillUI.lua is clearly a good place to look.

local reagentName, reagentTexture, reagentCount, playerReagentCount = GetTradeSkillReagentInfo(id, i)
SelectTradeSkill(id)
GetNumTradeSkills()
GetTradeSkillSelectionIndex()

id seems to be a number with 0 meaning no selected / known trade skill.

There is a bunch of functions in that file but these seem to be the sort of thing you are looking for.
__________________
  Reply With Quote
10-22-14, 08:23 PM   #9
JDoubleU00
A Firelord
 
JDoubleU00's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2008
Posts: 463
Originally Posted by Tonyleila View Post
Yes and both don't track this yet
BagSync2 shows me in the tool tip the count of an item if I have it in the bank.
  Reply With Quote
10-22-14, 08:24 PM   #10
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
But does that number change if you craft something using those items while in the bank? I think that's what Tonyleila meant.
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote
10-22-14, 08:53 PM   #11
Tonyleila
A Molten Giant
 
Tonyleila's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 758
Originally Posted by Seerah View Post
But does that number change if you craft something using those items while in the bank? I think that's what Tonyleila meant.
Yes thats what I meant if you craft something tooltip dosen't change it says you still have the mats on your bank that you just used for crafting untill you open the bank again. All I wanted to know if there coud be a way to fix this in the future
__________________
Author of: LeilaUI and Aurora: Missing Textures
__________________
  Reply With Quote
10-22-14, 10:39 PM   #12
JDoubleU00
A Firelord
 
JDoubleU00's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2008
Posts: 463
Originally Posted by Tonyleila View Post
Yes thats what I meant if you craft something tooltip dosen't change it says you still have the mats on your bank that you just used for crafting untill you open the bank again. All I wanted to know if there coud be a way to fix this in the future
/facepalm Not sure.
  Reply With Quote
10-24-14, 11:13 AM   #13
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,313
It would be nice if Blizzard were to update GetItemCount() to return separate values for bags, standard bank, and reagent bank. Currently, the function does not differentiate between standard and reagent banks.
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)
  Reply With Quote
10-24-14, 12:04 PM   #14
Mazzop
A Cliff Giant
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 74
and who would stash reagents in normal bank? for tradeUI its any difference anyway
GetItemCount(item, true) - GetItemCount(item) and OP gets what wanted
  Reply With Quote
10-24-14, 04:58 PM   #15
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,313
Even as insane as the idea may be, it should be handled instead of possibly letting it build errors further down the code.

Either the user inadvertently right-clicks a reagent and it goes into the standard bank or the reagent bank fills up. It can happen and messes with the bank count. You should also keep in mind the low level players that can't afford to unlock the reagent bank yet.
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)

Last edited by SDPhantom : 10-24-14 at 05:04 PM.
  Reply With Quote
10-24-14, 07:39 PM   #16
Lombra
A Molten Giant
 
Lombra's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2006
Posts: 554
Now that stuff stacks to 200 I don't even see a need for the reagent bank, personally. I'm rarely going to have more than one stack of something at any one time, so if I keep putting it in the bank, as soon as I start collecting again that saved slot is effectively pointless. For actual farmers I can see the use.
__________________
Grab your sword and fight the Horde!
  Reply With Quote
10-24-14, 08:16 PM   #17
Tonyleila
A Molten Giant
 
Tonyleila's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 758
Originally Posted by Lombra View Post
Now that stuff stacks to 200 I don't even see a need for the reagent bank, personally. I'm rarely going to have more than one stack of something at any one time, so if I keep putting it in the bank, as soon as I start collecting again that saved slot is effectively pointless. For actual farmers I can see the use.
Its nice for ppl that had to use 3 guild banks to hold all the items now I'm only using one guild bank
__________________
Author of: LeilaUI and Aurora: Missing Textures
__________________

Last edited by Tonyleila : 10-26-14 at 08:45 PM.
  Reply With Quote
10-26-14, 08:44 PM   #18
Tonyleila
A Molten Giant
 
Tonyleila's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 758
I have noticed that MiniLoot knows whats on my Bank even when I craft something from it it knows it without ever visiting the bank, but how?
__________________
Author of: LeilaUI and Aurora: Missing Textures
__________________

Last edited by Tonyleila : 10-26-14 at 08:54 PM.
  Reply With Quote
10-27-14, 12:32 AM   #19
Torhal
A Pyroguard Emberseer
 
Torhal's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2008
Posts: 1,196
I'm assuming it decrements the count whenever you craft something...
__________________
Whenever someone says "pls" because it's shorter than "please", I say "no" because it's shorter than "yes".

Author of NPCScan and many other AddOns.
  Reply With Quote
10-27-14, 01:27 AM   #20
Vlad
A Molten Giant
 
Vlad's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2005
Posts: 793
I just use http://wowpedia.org/API_GetItemCount in MiniLoot.

Not sure, but it should update properly when crafting like that, though does the reagents count as bank? I hope so, in that case it'd be awesome for us. :P

Yes strictly speaking you don't need to visit the bank, it's kind of like your hidden bags that are always with you but inaccessible when not speaking to the banker.
__________________
Profile: Curse | Wowhead
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Can you now track whats on your Bank?

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off