WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Macro Help (https://www.wowinterface.com/forums/forumdisplay.php?f=140)
-   -   multi stance macro (https://www.wowinterface.com/forums/showthread.php?t=59218)

glupikreten 09-13-22 09:36 AM

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

Xrystal 09-13-22 12:01 PM

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

Dridzt 09-13-22 03:56 PM

/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.

glupikreten 09-14-22 06:00 AM

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)

Kanegasi 09-14-22 06:16 AM

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

Xrystal 09-14-22 07:42 AM

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

glupikreten 09-14-22 09:38 AM

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


All times are GMT -6. The time now is 11:44 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI