Remove Advertisements

IsAvailable() function? or something like it?

All things /script related

Moderators: Fridmarr, Worldie, Aergis, _Chloe

IsAvailable() function? or something like it?

Postby Chunes » Fri Jan 28, 2011 10:50 am

I'm wondering if there is a function you can call by macro that will drive some in/then/else logic regarding spell cooldowns.

In english:

I want a macro that does basically this:

Code: Select all
If IsAvailable(Ardent Defender)
Then /rw something
/cast AD
/in 10 /rw ad faded
Else /stopmacro


Is this even possible?
User avatar
Chunes
 
Posts: 2271
Joined: Thu May 08, 2008 3:46 pm

Re: IsAvailable() function? or something like it?

Postby fuzzygeek » Fri Jan 28, 2011 3:49 pm

There used to be a scripting command that would check the CD on dire bear form IIRC, but I'm not certain that functionality is still available to players. I know I've seen it on wowwiki; will dig and see if I can find it.
Image
User avatar
fuzzygeek
Maintankadonor
 
Posts: 5130
Joined: Wed Aug 01, 2007 1:58 pm

Re: IsAvailable() function? or something like it?

Postby RedAces » Sat Jan 29, 2011 5:04 am

hey,

no you can't do that, the only conditions you can (ever) use incombat are the macro-conditions outlined here: http://www.wowpedia.org/Making_a_macro#Conditionals .
But if you just want to announce that AD is on (and off) you can either grab ThatJustHappened (http://maintankadin.failsafedesign.com/ ... =viewtopic) or use WeakAuras and actions onShow and onHide (Chat - Raidwarning - "AD on" ... "AD off").

Bye, RedAces.
Image
User avatar
RedAces
 
Posts: 500
Joined: Tue Dec 01, 2009 9:39 am
Location: Germany


Return to Add-ons, UI, and Macros

Who is online

Users browsing this forum: No registered users and 1 guest

cron

Remove Advertisements

Who is online

In total there is 1 user online :: 0 registered, 0 hidden and 1 guest (based on users active over the past 5 minutes)
Most users ever online was 380 on Tue Oct 14, 2008 6:28 pm

Users browsing this forum: No registered users and 1 guest
?php } else { ?