View Single Post
11-11-11, 12:33 PM   #4
unlimit
Lookin' Good
 
unlimit's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2008
Posts: 484
Originally Posted by AznNoProblem View Post
Ah i see, because i see the option to add combopoints with the text feature, so right now i'm using that and it works for target, just the custom icon doesn't =[
Azn let me log in and see if I can help you with this.

Edit: Vars Combo located @ RDX\Designs\Variables\ComboVariables.lua uses uid:

lua Code:
  1. code:AppendCode([[
  2.     local combopoint = GetComboPoints(uid);
  3.     local combopoints = GetComboPoints(uid) / 5;
  4. ]]);

But that only works on a player frame. According to http://wowprogramming.com/docs/api/GetComboPoints the only valid Arguments for units are Player & Vehicle, so if it was changed to:

lua Code:
  1. code:AppendCode([[
  2.     local combopoint = GetComboPoints("player" or "vehicle");
  3.     local combopoints = GetComboPoints("player" or "vehicle") / 5;
  4. ]]);

It would work all of the time!

I'm just curious WHY it uses UID? It leads me to believe that this is intended and if other players in your group/raid are using RDX then you should be able to SEE their combo points / alternative power - is that even possible? Never thought of it that way. Or maybe it was just a mistake?

ALSO, AZN IS A GUILDY OF MINE. ONE DOWN, 80+ TO GO!
__________________


kúdan: im playing pantheon
JRCapablanca: no youre not
** Pantheon has been Banned. **

Last edited by unlimit : 11-11-11 at 11:26 PM.
  Reply With Quote