WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   AddOn Help/Support (https://www.wowinterface.com/forums/forumdisplay.php?f=3)
-   -   CowTip - Lua? (https://www.wowinterface.com/forums/showthread.php?t=25302)

Raq 07-09-09 11:19 AM

CowTip - Lua?
 
Hey there,!
I started to use CowTip again, and started to make it a bit more
like i would have it.

It started pretty good, but the problem is that the mana/rage part doesn't work the way it's supposed to when i point at a NPC.
And since i have no idea how DK's work, is it then correct that they start at
0 %?



this is what's written in the box:
[if HasMP = IsMana = true then TypePower:blue ':':blue end]
[if HasMP = IsEnergy = true then TypePower:yellow ':':yellow end]
[if HasMP = IsRage = true then TypePower:Red ':':Red end]
[if HasMP = IsRunicPower = true then TypePower:Red ':':Red end]
[if HasMP then FractionalMP:Short ' ' PercentMP:Percent:Paren end]


Any help would be good :)

Zyonin 07-09-09 12:03 PM

To answer one of your questions; Yes, DKs start at 0% or 0 Runic Power (depending on how you want the display, either % or an actual RP value).

Raq 07-09-09 12:41 PM

Thanks alot... So that is in order, now to the hard part..
Can someone solve that for me ? :)

Creatan 07-14-09 09:13 AM

I don't know if this works on npc, but might as well give it a try.
Code:

[if HasMP then
  [if IsMana then TypePower:Blue ':':Blue
  elseif IsEnergy then TypePower:Yellow ':':Yellow
  elseif IsRage then TypePower:Red ':':Red
  elseif IsRunicPower then TypePower:Red ':':Red end]
FractionalMP:Short ' ' PercentMP:Percent:Paren end]


septor 07-14-09 09:20 AM

Should use IsPlayer instead of HasMP.


All times are GMT -6. The time now is 01:57 PM.

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