no, as I said, your enumeration isn't correct.
Lua Code:
local bankbag = SHARED_INVENTORY.bagCache[BAG_BANK]
for i, data in ipairs(bankbag)
<snip>
local itemLink = GetItemLink(BAG_BANK, data.slotIndex, linkStyle)
local itemType = GetItemLinkItemType(itemLink)
local itemName = data.name
<snip>
end
If when you open the GBank, i == index,
do some restacks, ask a guildmate to change some stuff while scanning bank and you'll get your index changed a lot
Take care, if someone change something in bank between the moment of your scan and the moment of you move something, data couldn't be correct.