View Single Post
01/13/15, 12:42 PM   #6
Ayantir
 
Ayantir's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 1,019
Lua Code:
  1. local unitname = GetUnitName("interact")

Works fine.

You must interact with the NPC while executing this code.

exemple using :

Lua Code:
  1. EVENT_MANAGER:RegisterForEvent("addon", EVENT_CHATTER_BEGIN, letstalk)

If you want to use QUEST events, you need to use EVENT_QUEST_OFFERED
  Reply With Quote