You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
856 B

--Required dbValue: AutoSelectGossip = true
local _, addon = ...
local AutoSelectGossip = {
--[gossipOptionID] = true(always), 1(select when it's the only option)
[48598] = true, -- I'd like to check my mail. [NPC: 132969] Katy Stampwhistle
[109275] = true, --Reporting to duty (Time Rift)
[107824] = 1, --Trading Post
[107827] = 1, --Trading Post
[107825] = 1, --Trading Post
[107826] = 1, --Trading Post
};
local function IsAutoSelectOption(gossipOptionID, onlyOption)
if gossipOptionID then
if onlyOption then
return AutoSelectGossip[gossipOptionID] == 1
else
return AutoSelectGossip[gossipOptionID] == true
end
end
return false
end
addon.IsAutoSelectOption = IsAutoSelectOption;