Saturday, April 14, 2012

How to get item info from guildbank?

[:1]Using a similiar method of looping through containers and then looping through slots I can access all items without a problem, With the guildbank however things are a bit different with the tabs. It seems that GetBuildBankItemLink would work fine when specifying a tab but I am only able to get data from the first tab using this method...anything jumping out at anyone?

for tab = 1, GetNumGuildBankTabs(),1 do

for slot = 1, 98, 1 do

itemLink = GetGuildBankItemLink(tab, slot)

if(itemLink ~= nil) then

itemDataStruct[key] = workItemLink(itemLink)

end

end

en





On a side note, does anyone know how to get itemQuantity from item stacks in the build bank? GetItemCount() only seems to handle bags and personal bank counting

Thanks for any ideas|||Open tab 2 at the guild vault, then query tab 2.

No comments:

Post a Comment