View Single Post
03-27-24, 09:59 PM   #1
Hubb777
A Flamescale Wyrmkin
 
Hubb777's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2024
Posts: 113
Skip "phrase" from NPC

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:
  1. local addonName = ...
  2. local AutoSelectGossip = {
  3.     [48598] = true,
  4.     [109275] = true,
  5. };
  6.  
  7. local function IsAutoSelectOption(gossipOptionID)
  8.     return gossipOptionID and AutoSelectGossip[gossipOptionID] == true
  9. end
  10. addon.IsAutoSelectOption = IsAutoSelectOption;
  Reply With Quote