View Single Post
10-28-22, 03:19 PM   #4
L3n1n
A Fallenroot Satyr
 
L3n1n's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2010
Posts: 20
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)
  Reply With Quote