View Single Post
12-26-11, 02:14 PM   #1
Jonisaurus
An Aku'mai Servant
 
Jonisaurus's Avatar
Join Date: Aug 2011
Posts: 35
"GetTotemInfo" help

I'm trying to create a function that is triggered by "UNIT_POWER" and checks whether I have a totem active or not.

I'm trying to use the "GetTotemInfo" function for this, but I'm not succeeding.
There are 4 returns for this function
Code:
haveTotem, totemName, startTime, duration = GetTotemInfo(1 through 4)
here is what they do each:
http://www.wowwiki.com/API_GetTotemInfo

Only one argument (integer for each element, 1 through 4).

Now I'm using i as a variable
Code:
for i=1,4 do
for the argument, but that's not the problem.

I need help setting up a functon that checks for each element if there is ONE totem active or not, (NOTE: totemName returns "" instead of "nil" when there is no totem active).

Thank you!
  Reply With Quote