Hi,
As part of new features on my last addon, i'm trying to mess a bit with quest givers dialogs.
i got EVENT_CHATTER_BEGIN working just fine and giving me the first dialog options but, once the first choice has been made and the second line of npc dialog is being shown along new choice options, i can't find a way to act on it.
i've tried to register EVENT_CONVERSATION_UPDATED but the event doesn't trigger.
Code:
function UDT.OnChatterBegin(eventCode, optionCount)
local optionString, _ = GetChatterOption(1)
if string.find(string.upper(optionString), GetString(ARK_UDT_PLEDGE)) then
--dialog is pledge offering
EVENT_MANAGER:RegisterForEvent(ADDON_NAME, EVENT_CONVERSATION_UPDATED, UDT.OnConversationUpdated)
EVENT_MANAGER:RegisterForEvent(ADDON_NAME, EVENT_CHATTER_END, UDT.OnChatterEnd)
SelectChatterOption(1)
end
end
any ideas ?