WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   Can I put IMG on X nameplate? (https://www.wowinterface.com/forums/showthread.php?t=55603)

Mortimerlol 07-27-17 06:27 AM

Can I put IMG on X nameplate? [SOLVED]
 
Hello to all,

Somebody have a code for put an image on a X nameplate?

For example, Im loading this table:
Lua Code:
  1. BangCharHateds = {
  2.     ["Demotatz-Quel'Thalas"] = true,
  3.     ["Evies"] = true,
  4. }
Is possible assign X image on their nameplate? Actually I check fine if is a range and fires a frame:Show()...
Lua Code:
  1. inInstance, instanceType = IsInInstance() --print(BangCharHateds[destName])
  2.     timeStamp, event, hideCaster, sourceGUID, sourceName, sourceFlags, sourceRaidFlags, destGUID, destName, destFlags, destRaidFlags, prefixParam1, prefixParam2, dummyparam, suffixParam1, suffixParam2 = ...
  3.     if not inInstance then
  4.         if SpellEvents[event] and BangCharHateds[sourceName] and bit.band(sourceFlags, COMBATLOG_OBJECT_REACTION_HOSTILE) > 0 then
  5. frame:Show()
  6. ........

Kakjens 07-27-17 12:05 PM

An explanation that the keys in BangCharHateds are character names would have been beneficial.
Also, it might be good to have a picture of how you see it should work.
I sense two connected bugs, unrelated to this issue:
a) if you change realm, the character name of your previous realm is no longer "Evies" but "Evies-SomeRealm";
b) if you change realm to a realm where the character of the database is, the name no longer "Demotatz-Quel'Thalas" but "Demotatz".

Mortimerlol 08-05-17 11:21 PM

Quote:

Originally Posted by Kakjens (Post 324390)
An explanation that the keys in BangCharHateds are character names would have been beneficial.
Also, it might be good to have a picture of how you see it should work.
I sense two connected bugs, unrelated to this issue:
a) if you change realm, the character name of your previous realm is no longer "Evies" but "Evies-SomeRealm";
b) if you change realm to a realm where the character of the database is, the name no longer "Demotatz-Quel'Thalas" but "Demotatz".

Yes, have reason. Now is fixed and works fine. THANKS :)


All times are GMT -6. The time now is 06:40 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI