I know all npc's have a unique id, just as quests.
If we could get something like
GetUnitNameFromID(Integer UnitID)
Returns: string UnitName
that would be awesome, as I could make my addon Destinations a LOT smaller, and it would save me a ton of work. Right now I have to have the names of questgiving units in both EN, DE, and FR in my addon.
Combine the above with something like
GetUnitID(string unitTag)
Returns: integer UnitID
or
GetUnitID(string unitName)
Returns: integer UnitID
then it would be even better
As it is now, I use something like this in my data for quests (I have a QUEST_ID to QUEST_NAME table already):
Lua Code:
{X_COORD, Y_COORD, EN_QUESTNAME, DE_QUESTNAME, FR_QUESTNAME, EN_QUESTGIVERNAME, DE_QUESTGIVERNAME, FR_QUESTGIVERNAME, QUEST_TYPE, QUEST_REPEATABLE, QUEST_ID},
I know the quest names are redundant when I have the ID's already, but I have been delaying the cleaning of that as I was hoping to be able to do something like this:
Lua Code:
{X_COORD, Y_COORD, UNIT_ID, QUEST_TYPE, QUEST_REPEATABLE, QUEST_ID},