Originally Posted by jlam
You'll need to be careful -- the stance numbers do not always match between Mac and PC. You can get the stance number via "stance = GetShapeshiftForm()", but you need to match up the localized name returned in GetShapeshiftFormInfo(stance) with the localized name of the paladin seal to known which one it really is.
You can see an example of this technique in Ovale's OvaleStance module.
|
Thank you for tipp. Actually, i am doing this in my addon to query activated stance (copy / pasted here):
Code:
i4= "";
for i3= 1, 10 do
_,i1,i2= GetShapeshiftFormInfo(i3);
if (i1==nil) then i1=""; end
if (i2==nil) then i2=0; end
if (i2==1) then
i4= i1;
break;
end
end
In the end, i4 still contains empty string, if no activated stance on paladin. Oh, and those nil checks inside only for safe. Name is only checked against en/us version (for different localized names, i will deal with them later).