Do you know why I get a nil value for the guildID in this part of my script? (Line 2)
Lua Code:
function GuildBankLedger:SetupListener(guildID)
self.LibHistoireListener[guildID] = LGH:CreateGuildHistoryListener(guildID, GUILD_HISTORY_BANK)
It should pull it from the command that calls it right? which is this one.
Lua Code:
for i = 1, GetNumGuilds() do
local guildID = GetGuildId(i)
GuildBankLedger:SetupListener(guildID)
end
I feel like im just not understanding lua very well.