Thread Tools Display Modes
04/20/18, 08:25 AM   #1
eventHandler
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 12
[outdated] GetUnitRace("interact") returns [Empty String]

The following two functions always return [Empty String] or 0 when called on any NPC, with either "interact" or "reticleover" as the arguments.

GetUnitRace("interact") returns [Empty String]
GetUnitRaceId("interact") returns 0

The fix would be to have them return the NPC Race and RaceId, respectively.

All other GetUnit functions (applicable to NPC's) return appropriate information with either "interact" or "reticleover" as the argument:
GetUnitAlliance("interact")
GetUnitChampionPoints("interact")
GetUnitDifficulty("interact")
GetUnitEffectiveChampionPoints("interact")
GetUnitEffectiveLevel("interact")
GetUnitGender("interact")
GetUnitLevel("interact")
GetUnitName("interact")
GetUnitReaction("interact")
GetUnitReactionColor("interact")
GetUnitType("interact")
GetUnitZone("interact")
GetUnitZoneIndex("interact")
GetRawUnitName("interact")

Note: NPC's must have some form of racial identifier, and even if its unnamed or different from player races, it would be extremely useful to have this information. Take for example Argonians; they tend to slowly drone on, so I'd set the timer on my addon to be much longer before expecting the dialog to be over when a lizard is the speaker.

NPC's may not have well defined classes similar enough to players, so these two may or may not be working as intended:
GetUnitClass("interact") returns [Empty String]
GetUnitClassId("interact") returns 0


Testing Methodology:
Warning: Spoiler
 

ESOUI » Developer Discussions » Bug Reports » [outdated] GetUnitRace("interact") returns [Empty String]

Thread Tools
Display Modes

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