Thread Tools Display Modes
Prev Previous Post   Next Post Next
01/25/16, 02:28 PM   #1
SnowmanDK
 
SnowmanDK's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 161
[outdated] GetUnitNameFromID/GetUnitID

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:
  1. {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:
  1. {X_COORD,   Y_COORD,    UNIT_ID,    QUEST_TYPE, QUEST_REPEATABLE,   QUEST_ID},
 
 

ESOUI » Developer Discussions » Wish List » [outdated] GetUnitNameFromID/GetUnitID


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off