LUA for HP % on Nameplates?
Hello all!
I've come across this bit of code that puts the % of HP in the center of Nameplates. However, now it starts throwing major errors when you try to type anything in chat and it seems to cause an infinite taint. I was wondering if anybody might know of a way to fix this bit of code so that it works with todays version of WoW? Or possibly even come up with a new way to achieve this? Any help is appreciated, and thank you in advance! :) Here is the Lua: Lua Code:
Here is the Error that Bug Sack is logging: 2269x Custom Settings\Custom Settings.lua:88: Attempt to access forbidden object from code tainted by an AddOn [C]: in function `GetName' Custom Settings\Custom Settings.lua:88: in function <Custom Settings\Custom Settings.lua:85> Locals: (*temporary) = <unnamed> { 0 = <userdata> } |
That code is pre legion nameplates it won't work anymore.
|
Yea I figured as much... However the code does still work (technically). The HP% still appears on the nameplates, but whenever you try to type anything in chat, it starts having a meltdown and throwing errors infinitely.
I was hoping someone out there could come up with a new bit of code that does the same thing, but will work with new Legion Nameplates? If I find a solution before then, I'll be sure to post it up here! |
http://www.wowinterface.com/forums/s...ad.php?t=56125
Also I should have told you earlier, but this kind of stuff should be going in General Authoring Discussion or Lua/XML Help. This is the hack I use for this if you would ever be interested: lua Code:
|
Once again, you are awesome :) Thank you Ammako! And I will be sure to post Lua questions in the correct area on the forums, thank you for the heads up!
|
All times are GMT -6. The time now is 11:51 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI