Originally Posted by L3n1n
You found correct event, but you need to know correct argument: 10 is GuildBanker. There is example for you:
Lua Code:
local f = CreateFrame("Frame") f:RegisterEvent("PLAYER_INTERACTION_MANAGER_FRAME_SHOW") f:SetScript("OnEvent", function(self, event, arg) if arg == 10 then print('gbank has been opened') end end)
|
Thanks for that, yes i did some experimenting and found that ID for the guild bank. I also found that MAIL_CLOSED is the same and thats ID 17.
I have moved my code around accordingly in the event handler and it seems to be working. I guess Blizz is just trying to consolidate events and maybe will eventually remove the gb opened and gb/mailbox closed events after some time.
Thanks for the assistance, it was doing my head in for a bit there.