Download
(1Kb)
Download
Updated: 06-03-08 06:44 PM
Pictures
File Info
Updated:06-03-08 06:44 PM
Created:unknown
Downloads:1,693
Favorites:6
MD5:

SafelyCancelDruidForm

Version: 1.2
by: Vrul [More]

Adds a function (SCDF) and slash command (/scdf) for use in macros for canceling druid forms. It will not cancel a form if the GCD is in effect, you would be incapable of casting/using an ability immediately, or if you do not have enough mana to recast the form you are leaving.

The function has two optional parameters. The first is a number denoting a form to NOT cancel if you're already in it (default is 0 for caster form). The second parameter indicates to skip the check of available mana. Values other than nil, false, or 0 will stop the mana check (default is nil).

The slash command basically works the same as the function with the added benefit of taking macro conditionals:
/scdf -- Cancel form unconditionally, same as /scdf 0 0 or /run SCDF()
/scdf 0 1 -- Cancel form ingnoring mana, same as /run SCDF(0, 1)
/scdf 1 -- Equivalent to /scdf [noform:1] or /run SCDF(1)
/scdf [noflying] -- Cancel form only if not flying

The function/slash command work independant of the autoUnshift and autoDismountFlying CVar settings (most similar addons/scripts don't work properly when these are changed).

Sample macros:

Drop form to heal self while being hit
#showtooltip
/scdf [noflying]
/castsequence [noform,target=player] reset=combat/12 Barkskin, Regrowth, Rejuvenation, Lifebloom, Lifebloom, Lifebloom

Oh Crap!
#showtooltip
/scdf [noflying] 1
/stopmacro [noform:0/1]
/cast [mod:alt,form:1] Challenging Roar; [form:1] Growl; Dire Bear Form

Stealth
#showtooltip [form:3] Prowl; Shadowmeld
/cancelaura [mod:alt] Prowl
/stopmacro [combat] [stealth] [mod:alt]
/cast [form:3] Prowl; [noform] Shadowmeld
/stopmacro [noform]
/scdf [form:4]
/cast [noform] Cat Form

Travel fast
#showtooltip
/scdf [flying] 5; [stealth] 3; [mod:alt] 0 1; [swimming] 2; [flyable] 5; [outdoors] 4; 3
/stopmacro [form]
/cast [swimming] Aquatic Form; [flyable,nocombat] Swift Flight Form; [outdoors] Travel Form; Cat Form

Use a healthstone while tanking
#showtooltip
/scdf [noflying]
/stopmacro [form]
/use Master Healthstone
/cast Dire Bear Form

WARNING: Addons that automatically swap weapons on a form change will trigger the GCD so make sure that part is disabled when using macros similar to the one above or you will likely die using it while tanking.

Version 1.2 (06/03/2008)
Now works without regard to autoUnshift and autoDismountFlying CVar settings.

Version 1.1 (06/03/2008)
Fixed an issue with not being able to cancel flight form while in combat.

Version 1.0 (06/03/2008)
Initial release
Post A Reply Comment Options
Unread 06-03-08, 02:49 PM  
reale
A Kobold Labourer

Forum posts: 1
File comments: 164
Uploads: 0
v1.1

Using this macro:

/scdf 3 0
/cast [nostance] Cat Form; [stance:3, nostealth, nocombat] Prowl

Still isn't canceling swift flight form in or out of combat.


Suggestion: option to not cancel any form but still check mana, would be good for form to form shifting or powershifting

Thank you
Last edited by reale : 06-03-08 at 02:51 PM.
Report comment to moderator  
Reply With Quote
Unread 06-03-08, 03:06 PM  
Vrul
A Scalebane Royal Guard
 
Vrul's Avatar
AddOn Author - Click to view AddOns

Forum posts: 404
File comments: 322
Uploads: 33
Re: v1.1

I just tested that macro and it worked fine for me. Are you sure you weren't flying, even if just 1" off the ground? The 'Auto Dismount in Flight' interface option can be changed to fix that however, if that's what you want.

For powershifting I use:

/scdf [form:3]
/stopmacro [form]
/cast Cat Form
Report comment to moderator  
Reply With Quote
Unread 06-03-08, 03:24 PM  
reale
A Kobold Labourer

Forum posts: 1
File comments: 164
Uploads: 0
hmm

My old macro:

/cancelform [nostance:3]

worked if I was flying or flying near the ground, I assumed this would have the same behavior

This seems to work unless theres a better way to do it with your mod:

/cancelform [form:5]
/scdf 3 0
Last edited by reale : 06-03-08 at 04:14 PM.
Report comment to moderator  
Reply With Quote
Unread 06-03-08, 06:48 PM  
Vrul
A Scalebane Royal Guard
 
Vrul's Avatar
AddOn Author - Click to view AddOns

Forum posts: 404
File comments: 322
Uploads: 33
Re: hmm

I changed it so that the autoDismountFlying CVar setting is no longer a factor so it should behave just like /cancelform in that regard.

/scdf 3
/cast [nostance] Cat Form; [stance:3, nostealth, nocombat] Prowl

Should now work like you want (I hope).
Report comment to moderator  
Reply With Quote
Unread 06-04-08, 07:57 AM  
whooleeo
A Murloc Raider

Forum posts: 6
File comments: 2
Uploads: 0
Hi there - I can't figure out what the argument parameters correspond to. You mention that 0 is caster form, but what are the rest of the parameters for the form check argument?

Also, I'm trying to make a Dire Bear form macro that won't allow me to shift OUT of Dire Bear form if I am stunned. Can someone help me craft this?

Thanks!
Report comment to moderator  
Reply With Quote
Unread 06-04-08, 12:22 PM  
Vrul
A Scalebane Royal Guard
 
Vrul's Avatar
AddOn Author - Click to view AddOns

Forum posts: 404
File comments: 322
Uploads: 33
The form numbers are exactly the same as with any other macro. The form numbers are:

0 - Caster form (no form)
1 - Bear Form/Dire Bear Form
2 - Aquatic Form
3 - Cat Form
4 - Travel Form
5 - Moonkin Form/Tree of Life Form
6 - Flight Form/Swift Flight Form

If you don't have a form in that list then all the forms after it will move up in position to fill any empty spot(s).

Also, I'm trying to make a Dire Bear form macro that won't allow me to shift OUT of Dire Bear form if I am stunned. Can someone help me craft this?
There is a check to see if you have control of your character before cancelling your form, but I'm not sure if a stun would count as such.
Last edited by Vrul : 06-04-08 at 12:38 PM.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: