Hi all. I plan to make it possible to skip some dialogue when talking to NPCs. But there is an error in the code. Please tell me the solution.
Lua Code:
local addonName = ...
local AutoSelectGossip = {
[48598] = true,
[109275] = true,
};
local function IsAutoSelectOption(gossipOptionID)
return gossipOptionID and AutoSelectGossip[gossipOptionID] == true
end
addon.IsAutoSelectOption = IsAutoSelectOption;