Thread Tools Display Modes
Prev Previous Post   Next Post Next
05-09-10, 07:43 AM   #1
unlimit
Lookin' Good
 
unlimit's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2008
Posts: 484
Is this correct LUA?

So, I tried to play with some LUA and VFL things again.

Code:
function dscd()
	local divinestormcd, duration, enabled = GetSpellCooldown("Divine Storm");
	if ( divinestormcd > 0 and duration > 1.5) then
		VFL.AdaptiveSchedule(dstas, 0.1, dst);
	end
end;
VFL.AdaptiveSchedule(nil, 0.1, dscd);

function dst()
	local divinestormcd, duration, enabled = GetSpellCooldown("Divine Storm");
	if ( divinestormcd > 0 and duration > 1.5) then
		nil
	else
		print("Divine Storm Ready!") and VFL.AdaptiveUnschedule(dstas);
	end
end;
I want RDX to track my Divine Storm cooldown for me, and this is what I got. (stole most of the script from other sources, and tried to scrap it all together X_X)
__________________


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

WoWInterface » Featured Projects » OpenRDX » OpenRDX Community » OpenRDX: Community Chat » Is this correct LUA?


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