How put icon on nameplate with X name [SOLVED]
Good morning to all,
Somebody have idea how put an icon over nameplate with X name? For example, i want put an icon to all mobs with name "Eredar Summoner". My testing code atm: Lua Code:
|
use event NAME_PLATE_UNIT_ADDED, argument is a unitID, check the mobs's name with UnitName(unitID) then you can get the nameplate with C_NamePlate.GetNamePlateForUnit(unitID). i guess you will also need NAME_PLATE_UNIT_REMOVED to remove the changes you made.
|
Quote:
Yes, Im trying with NAME_PLATE_UNIT_ADDED, and yes, put unitID as COMBAT_LOG_EVENT_UNFILTERED... i can compare but i cant link with nameplateXunitframe, etc.... |
Sorry, but i don't understand what you wanted to do with COMBAT_LOG_EVENT_UNFILTERED.
I also don't understand what you are tying todo with your table moblist. If you want the desired mobnames in a table its better to just make the table like Lua Code:
Exmaple Code: Lua Code:
|
Lua Code:
|
is all perfect with mobs and players but with name-something dont work :/
|
Thats probably because UnitName() has two return values https://wow.gamepedia.com/API_UnitName
|
yes, then must be works with it:
Lua Code:
|
yeah works fine now with name-Realm. Now need only check if realm enemy player is in same realm that me then split -sameRealm
Lua Code:
|
Just use the following.
Lua Code:
|
i save always name-realm in my savedvariable...
Lua Code:
|
[solved]
Lua Code:
|
I don't quite understand what are you trying to accomplish with
Lua Code:
Code:
UNTI = UNTI.."-"..realmName; Code:
if BangHateds[UNTI] then Is it me, or there really are several global variables? |
Yes, i read from save variables ^^ Thanks for your correction in line 5 :)
|
All times are GMT -6. The time now is 11:18 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI