Thread Tools Display Modes
09-13-22, 09:36 AM   #1
glupikreten
A Theradrim Guardian
Join Date: Apr 2009
Posts: 60
multi stance macro

Hi,

This is the macro im using

#showtooltip
/startattack
/cast [stealth] Ravage
/cast [form:1] Maul
/cast [form:3] Claw
/cast [@mouseover,exists,nodead][] Regrowth


problem is when im spamming that macro in druid form it starts to cast regrowth...
if i spam it in any other form it works just as expected ...

what is so special about druid form?

if i remove [] it doesnt break bear form and casts maul... but that is not required for claw... claw/rake works just fine with [] in last line

Last edited by glupikreten : 09-13-22 at 09:41 AM.
  Reply With Quote
09-13-22, 12:01 PM   #2
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,892
From Memory - it's been a while since I played with macros and druids

/cast [stealth] Ravage
-- Will only cast if you are in cat stealth form

/cast [form:1] Maul
-- Will only cast if you are in bear form ?

/cast [form:3] Claw
-- Will only cast if you are in cat form

/cast [@mouseover,exists,nodead][] Regrowth
-- Will cast if you are mousinv over a living existing person that you can heal
-- And will possibly switch you out of any form you might be in that doesn't allow you to cast regrowth
__________________
  Reply With Quote
09-13-22, 03:56 PM   #3
Dridzt
A Pyroguard Emberseer
 
Dridzt's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2005
Posts: 1,359
/cast [@mouseover,exists,nodead][] Regrowth

in English says: "Cast Regrowth if mouseover is not dead" (nothing about friend or foe) and the [] says "or unconditionally".

So this macro will always fallback to casting regrowth.
  Reply With Quote
09-14-22, 06:00 AM   #4
glupikreten
A Theradrim Guardian
Join Date: Apr 2009
Posts: 60
That is all true what you both are saying.. but...

When i spam that macro in stealth it tries to cast Ravage (getting errors if no target/energy)
When i spam that macro in cat form it tries to cast Claw (getting errors if no target/energy)
When i spam that macro in human form it casts regrowth as per conditions
When i spam that macro in bear form it casts regrowth

Hence my question... it only fallbacks in bear form (out of mentioned forms in macro)
  Reply With Quote
09-14-22, 06:16 AM   #5
Kanegasi
A Molten Giant
 
Kanegasi's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2007
Posts: 666
What version of WoW are you playing? Form IDs are different between classic and retail.

On retail, bear is 1 and cat is 2; travel is 3.

On anything older than Warlords, cat is 3 and aquatic is 2.

If you expect the macro to only cast one spell, you should put the spells on one line, otherwise the game is attempting each line every time. You should also use help instead of exists to avoid attempting to cast on enemies.

/cast [stealth] Ravage; [form:1] Maul; [form:2/3] Claw; [@mouseover,help,nodead][] Regrowth
  Reply With Quote
09-14-22, 07:42 AM   #6
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,892
Okay, jumped on my druid to test things out - Noticed there are no Claw or Ravage abilities in Retail, so changed to Rake for Stealth and Mangle for non Stealth alternatives.

I took out the /StartAttack line as it skewed my tests with extra messages.

Alternative Macro
Lua Code:
  1. #showtooltip
  2. /cast [stealth] Rake; [form:1] Mangle; [form:2] Shred; [@mouseover,help,nodead][] Regrowth

Spec: Feral
Cat in Stealth: Rake Icon - Nothing to Attack Message
Cat in Non Stealth : Shred Icon - Nothing to Attack Message
Bear : Mangle Icon - Nothing to Attack Message
Travel and Caster : Changes to Regrowth Icon and casts spell

Spec: Guardian
Cat in Stealth: No Icon - Doest Nothing
Cat in Non Stealth : Shred Icon - Nothing to Attack Message
Bear : Mangle Icon - Nothing to Attack Message
Travel and Caster : Regrowth Icon - Casts Regrowth in Caster Form

Spec: Restoration
Cat in Stealth: No Icon - Does nothing
Cat in Non Stealth : Shred Icon - Nothing to Attack Message
Bear : Mangle Icon - Nothing to Attack Message
Travel and Caster : Regrowth Icon - Casts Regrowth in Caster Form
Moonkin : Regrowth Icon - Casts Regrowth in Moonkin Form

Results:
If the ability isn't available it does nothing
If the ability is available it will try to use it

Suggestion:
Maybe put the Regrowth cast on a separate line for a fallback if no skills are available
And add additional checks for harm/exists etc so that it will fall through if those tests fail
And as Kanegasi points out, version matters, so adjust accordingly
__________________
  Reply With Quote
09-14-22, 09:38 AM   #7
glupikreten
A Theradrim Guardian
Join Date: Apr 2009
Posts: 60
Yes.. thank you... i forgot to mention im on 3.4.0.. wotlk...

Anyhow one liner is a way to go.. thank you for pointing that out..

And thank you all for help.

Cheers
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » Macro Help » multi stance macro

Thread Tools
Display Modes

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