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:
Lua Code:
|
probably GetUnitName("interact")
edit: if you're creating some kind of questing addon you might be interested in this lua file I once created https://www.dropbox.com/s/3uml9m2tdm...uests.lua?dl=0 it's based on the esohead map |
Quote:
http://esodata.uesp.net/100010/src/i...w.lua.html#153 |
Quote:
I am not creating a full quest addon. I am working adding Quest Givers to Destinations, but only the quest line triggers. The reason for that is that I noticed people miss a LOT of quests not part of the hubs, so wanna give them a hand:) I also wanna add so it only shows the quests not yet taken when I get that far ahead. Still only at the first part of making it easier to get the data for the quests at the moment. The rest will come later :) |
I tried using this
Lua Code:
-- I assume it's because it is fired when EVENT_QUEST_ADDED is triggered, and that is only fired as I accept the quest and the conversation is closed. Or am I wrong? |
Lua Code:
Works fine. You must interact with the NPC while executing this code. exemple using : Lua Code:
If you want to use QUEST events, you need to use EVENT_QUEST_OFFERED |
Quote:
Case closed! |
All times are GMT -6. The time now is 06:02 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI