CowTip - Lua? - WoWInterface
Thread Tools Display Modes
07-09-09, 11:19 AM   #1
A Defias Bandit
Join Date: Dec 2008
Posts: 2
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
  Reply With Quote
07-09-09, 12:03 PM   #2
Coffee powered Kaldorei
Zyonin's Avatar
AddOn Author - Click to view addons
Join Date: May 2006
Posts: 1,440
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).
LiveJournal | Twitter

  Reply With Quote
07-09-09, 12:41 PM   #3
A Defias Bandit
Join Date: Dec 2008
Posts: 2
Thanks alot... So that is in order, now to the hard part..
Can someone solve that for me ?
  Reply With Quote
07-14-09, 09:13 AM   #4
A Murloc Raider
Join Date: May 2009
Posts: 5
I don't know if this works on npc, but might as well give it a try.
[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]
  Reply With Quote
07-14-09, 09:20 AM   #5
A Flamescale Wyrmkin
Join Date: Jan 2007
Posts: 130
Should use IsPlayer instead of HasMP.
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » CowTip - Lua?

Thread Tools
Display Modes

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