View Single Post
12-01-11, 04:45 AM   #8
unlimit
Lookin' Good
 
unlimit's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2008
Posts: 484
Well, I changed it for myself, and it works perfectly on my target, or my focus, or target of target, or player, or really anything I've set it to so far. o.o

I don't think I quite understand the problem you're describing, wouldn't be plainly simple to use the UnitExists API? Again, I'm not really a programmer. I just see these things in other peoples code, and it looks like it fixes the problem you describe.

http://wowprogramming.com/docs/api/UnitExists

lua Code:
  1. code:AppendCode([[
  2.     local plvh
  3.     if UnitExists("vehicle") then
  4.         plvh = vehicle
  5.     else
  6.         plvh = player
  7.     end
  8.    
  9.     combopoint = GetComboPoints(plvh);
  10.     combopoints = GetComboPoints(plvh) / 5;
  11. ]]);
__________________


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

Last edited by unlimit : 12-02-11 at 12:15 AM.
  Reply With Quote