View Single Post
01/13/15, 01:18 PM   #7
SnowmanDK
 
SnowmanDK's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 161
Originally Posted by Ayantir View Post
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
Exactly what I was looking for, thanks

Case closed!
  Reply With Quote