Hello. Yes the error is gone. But the code doesn't work. NPC dialogue is no longer skipped.
This is the dialog ID
Lua Code:
local AutoSelectGossip = {
[48598] = true,
[109275] = true,
};
Or should the code be like this? Then how to insert several dialogues from different NPCs there?
Lua Code:
local function EL_OnGossipShow(self, event, ...)
if ENABLE_AUTO_REPORT and UnitName("npc") == HUBB then
if GossipFrame and GossipFrame:IsShown() then
local options = C_GossipInfo.GetOptions();
if options and options[1] and options[1].gossipOptionID == 109275 then
C_GossipInfo.SelectOption(109275);
return
end
end
end
end