Quantcast WoWInterface - View Single Post - Nameplate hacking and unit IDs
View Single Post
05-23-16, 10:20 AM   #35
syncrow
A Flamescale Wyrmkin
 
syncrow's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 149
Originally Posted by Resike View Post
Except UnitIsUnit("nameplate1", "target") returns false even if you are targeting the unit with nameplate1.
Try using UnitIsUnit("target", "nameplate1")

And check if you are targeting the nameplate with the unitID "nameplate1" and the unit currently using "NamePlate1"...

Getting a unitID from blizzards nameplates:
Lua Code:
  1. local unitID = nameplate.namePlateUnitToken

Originally Posted by Resike View Post
Whats the point of the new system, if you get an alternative unitid then you need to get its guid then compare that with the a real unitids guid?
It works exactly the same if you target lets say raid24 ... raid 24 is a unitID, and target is also a unitID referring to the same unit if targeted...

So "nameplate#" can be the same unit as raid# / player / target / focus ....
__________________

Last edited by syncrow : 05-23-16 at 10:25 AM.