Rofl, tried to turn the addon into a slash command system and it crashed rofl.
The listing way works though so I'll try and work via that route to get the trans info.
Ah, looking at the way blizzard deals with the guildbank frame themselves it looks like you have to have the guild bank frame open for the query function and the transaction functions to work properly. Also, it seems directly accessing the newest transaction doesn't work either. You have to go through the whole for loop with the last entry being the newest and 1 being the oldest.
Trying another route to make it more useful.
Aha, it looks like QueryGuildBankLog function triggers the GUILDBANKLOG_UPDATE event for each tab/tab+1 query it makes. But I still can't get it to just query the last transaction so you may have to read through all transactions and just display the last one.
Last edited by Xrystal : 05-21-10 at 07:05 AM.
|