WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   Can you now track whats on your Bank? (https://www.wowinterface.com/forums/showthread.php?t=50241)

Tonyleila 10-22-14 11:00 AM

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?

Rilgamon 10-22-14 11:51 AM

Like always there are the tooltip-addons like Altoholic and BankItems that will show info on hovering.

Tonyleila 10-22-14 12:05 PM

Quote:

Originally Posted by Rilgamon (Post 298693)
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.

Phanx 10-22-14 12:27 PM

Quote:

Originally Posted by Tonyleila (Post 298695)
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...

JDoubleU00 10-22-14 02:38 PM

Bagsync has an update and there is a Bagsync2 out as well from a different author.

Tonyleila 10-22-14 03:18 PM

Quote:

Originally Posted by rocnroll (Post 298714)
Bagsync has an update and there is a Bagsync2 out as well from a different author.

Yes and both don't track this yet :)

Mazzop 10-22-14 03:48 PM

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

Xrystal 10-22-14 04:20 PM

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.

JDoubleU00 10-22-14 08:23 PM

Quote:

Originally Posted by Tonyleila (Post 298717)
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.

Seerah 10-22-14 08:24 PM

But does that number change if you craft something using those items while in the bank? I think that's what Tonyleila meant.

Tonyleila 10-22-14 08:53 PM

Quote:

Originally Posted by Seerah (Post 298743)
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 :)

JDoubleU00 10-22-14 10:39 PM

Quote:

Originally Posted by Tonyleila (Post 298751)
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.

SDPhantom 10-24-14 11:13 AM

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.

Mazzop 10-24-14 12:04 PM

and who would stash reagents in normal bank? for tradeUI its any difference anyway
GetItemCount(item, true) - GetItemCount(item) and OP gets what wanted

SDPhantom 10-24-14 04:58 PM

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.

Lombra 10-24-14 07:39 PM

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.

Tonyleila 10-24-14 08:16 PM

Quote:

Originally Posted by Lombra (Post 298925)
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 :)

Tonyleila 10-26-14 08:44 PM

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?

Torhal 10-27-14 12:32 AM

I'm assuming it decrements the count whenever you craft something...

Vlad 10-27-14 01:27 AM

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.


All times are GMT -6. The time now is 04:31 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI