I am able to access the guild bank within scripts but unable to get item names or links from items stored inside. The goal is an addon to retrieve multiple half full stacks from guild bank, merge them local in my backpack and put the stack back on the guild bank. Stacking works well with backbank and own bank, but guld bank wont cause of missing item infos.
Has anyone an idea ? Would appreciate any help. Thanks.
Are you using BAG_GUILDBANK for the bagID along with the correct slotID? (slot ids aren't necessarily the same as the order that you see items in the bank)
icon, slots= GetBagInfo(BAG_GUILDBANK)
for i=1,slots do
linkName = GetItemLink(BAG_GUILDBANK,i)
end
At least this works with BAG_BACKPACK, so it should with guild bank as its handled like another bag aI thought. Right ? Ir how do I get the slotID of each slot ??
Great addon, shows item info of guild bank also. The actual problem is the slotID, which changes everytime you open the guild bank. In backpack and regular bank it always starts with 1, in guildbank its variable (1, 800, 2211, ...). How can I get the first slotIndex of a bag ? Couldn't find an appropriate function.
Another idea would be to access ZO_GuildBankBackpack as shown in zgoo, but how to do it ?
Last edited by Nekudotayim : 04/13/14 at 04:20 PM.
Great addon, shows item info of guild bank also. The actual problem is the slotID, which changes everytime you open the guild bank. In backpack and regular bank it always starts with 1, in guildbank its variable (1, 800, 2211, ...). How can I get the first slotIndex of a bag ? Couldn't find an appropriate function.
GetNextGuildBankSlotId ?
I suspect you feed it with nil or 0 as start and then with the previous return value to iterate.