TRP3_API.r.name(unitID) - Total-RP/Total-RP-3 GitHub Wiki
If the unit is known, returns the full RP name of a unit.
local unitRPName = TRP3_API.r.name(unitID);
-
unitID
UnitID : the target to use (player
,target
,pet
,focus
, etc.)
-
unitRPName
: the unit RP name, using the first name and last name provided in its profile. Does not include the short title.
Macro to salute your target using their RP name :
/run local unitRPName=TRP3_API.r.name("target"); SendChatMessage("Hello "..unitRPName);