View Single Post
01/13/15, 10:23 AM   #1
SnowmanDK
 
SnowmanDK's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 161
Getting npc names (is it possible?)

Is it possible to get the name of an npc that you talk to?
I am looking to grab the name of an npc offering a quest, so I can save it with the other information.
I already have my addon saving the quest name and the coordinate where I pick it up,
like this:
Lua Code:
  1. ["Quests"] =
  2.                 {
  3.                     ["Unaccounted Crew"] = "Vulkhel Guard:0.5247,0.6904/Auridon:0.6208,0.9573",
  4.                 },
but would like to add the name of the quest giver, like this:
Lua Code:
  1. ["Quests"] =
  2.                 {
  3.                     ["Unaccounted Crew"] = "Vulkhel Guard:0.5247,0.6904/Auridon:0.6208,0.9573/Captain Erronfaire",
  4.                 },
  Reply With Quote