View Single Post
10-28-22, 08:59 PM   #5
Pandabull
A Defias Bandit
Join Date: Oct 2022
Posts: 3
Originally Posted by L3n1n View Post
You found correct event, but you need to know correct argument: 10 is GuildBanker. There is example for you:

Lua Code:
  1. local f = CreateFrame("Frame")
  2. f:RegisterEvent("PLAYER_INTERACTION_MANAGER_FRAME_SHOW")
  3. f:SetScript("OnEvent", function(self, event, arg)
  4.     if arg == 10 then
  5.         print('gbank has been opened')
  6.     end
  7. 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.
  Reply With Quote