View Single Post
07/03/17, 03:05 AM   #3
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 1,578
All you need to do is prehook the OnGuildChanged function:
Lua Code:
  1. ZO_PreHook(GUILD_ROSTER_MANAGER, "OnGuildIdChanged", function(self)
  2.    local newGuildId = self.guildId
  3.    -- do something
  4. end)
That's what I do in GuildHallList and it works fine.

EVENT_GUILD_DATA_LOADED is only fired once at login and signals that the initial guild data has been loaded. Before that event, the guild screen won't show anything.
  Reply With Quote