Thread Tools Display Modes
02-19-10, 05:33 PM   #1
BFSskepsis
Premium Member
 
BFSskepsis's Avatar
AddOn Compiler - Click to view compilations
Join Date: Jun 2008
Posts: 39
Help with Target HP% Text/Script Please!

Alright. I got a hard one (pun?) for you guys. Maybe not, but I can't figure it out with my verrrrry limited knowledge in scripting.

This is my current player HP% script:

local s = Status(unit)
if s then
return s
end
return "|cff00CD00%s",Percent(HP(unit),MaxHP(unit))
This script works perfectly for player/targets target/party/raid

HOWEVER

For target and players pet... it doesn't refresh. For the target you have to untarget it then retarget and it freezes at whatever that is... so I currently have to use this:

local s = Status(unit)
if s then
return s
end
return "|cff00CD00%s%%",Percent(HP(unit),MaxHP(unit))
Which gives me the extra % on it, which I do not want...

Query: How can I remove the added % on it while having it refresh on it's own?
__________________
  Reply With Quote
03-01-10, 11:33 PM   #2
BFSskepsis
Premium Member
 
BFSskepsis's Avatar
AddOn Compiler - Click to view compilations
Join Date: Jun 2008
Posts: 39
Bump!

If anyone knows how to do this in dog tags too, would be super coolio!
__________________
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » Help with Target HP% Text/Script Please!


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off