Jump to content
Ike

[AddOn] CastModifier - TBC and above like Conditionals for /cast macros

Recommended Posts

2 часа назад, Alsorin сказал:

Alt works fine.  Honestly, it's not the end of the world, but odd. 

Looks like [mod:shift] is ''broken'' somehow. :(

Share this post


Link to post
Share on other sites

try

/script if (IsShiftKeyDown()) then DoAThing() else DoSomethingElse() end;

Obviously replace DoAThing and DoSomethingElse with the required actions

Share this post


Link to post
Share on other sites

Quick update:

  • Fixed a bug where only the partial name of a buff was checked for the [no][my][de]buff conditional
  • Implemented support for NotGrid (thank you @Cha for bringing it to my attention)
  • Implemented support for FocusFrame (thank you @jagonx for bringing it to my attention)

 

 

 

 

 

 

 

 

@Alsorin shift works fine. See:

You have to make absolutely sure that you don't have the shift + button combination bound. Just bind it to some unused action and then unbind it again with the "Unbind Key" button. Press "Okay" and try it again. If that doesn't help try disabling all other Addons and see if it then works. If it does turn them back on one by one and see which one causes the issue. Report your result back to me please, so that I can try and fix any possible incompatibilities.

Share this post


Link to post
Share on other sites

just tried making a macro for arcane power with the latest update but it doesn't work, double clicking gets rid of it

/cast [nomybuff:Arcane_Power] Arcane Power

had all other addons disabled

Share this post


Link to post
Share on other sites
46 минут назад, Ike сказал:

Quick update:

  • Implemented support for FocusFrame 

 

Tested. WORKS LIKE A CHARM! <3

47 минут назад, Ike сказал:

You have to make absolutely sure that you don't have the shift + button combination bound. 

Im 100% sure.

55 минут назад, Ike сказал:

If that doesn't help try disabling all other Addons and see if it then works. If it does turn them back on one by one and see which one causes the issue. Report your result back to me please, so that I can try and fix any possible incompatibilities.

 I'll try to find it out.

Thank you for the fast update! ;)

Share this post


Link to post
Share on other sites
48 minutes ago, NAPREDATOR said:

just tried making a macro for arcane power with the latest update but it doesn't work, double clicking gets rid of it

/cast [nomybuff:Arcane_Power] Arcane Power

had all other addons disabled

 

Oh, my bad! I missed two lines when I pushed the update to Github. Should work fine now!

Share this post


Link to post
Share on other sites
1 час назад, Ike сказал:

Oh, my bad! I missed two lines when I pushed the update to Github. Should work fine now!

Along with update i got this:

52BZew6.png

Share this post


Link to post
Share on other sites
7 minutes ago, jagonx said:

Along with update i got this:

52BZew6.png

 

Are you sure this just happened after updating and that this Addon is the cause of the error? I'm asking because I've done nothing that could've caused this error to appear.

Share this post


Link to post
Share on other sites

Yes. Just got updated versoin.

edit 

It is probably FocusFrame addon error. 

Edited by jagonx

Share this post


Link to post
Share on other sites

Hi, loving the mod!

Any chance of adding Fishing Pole support for the [equipped] condition?

Share this post


Link to post
Share on other sites

Is there a way to do a cast and a use in the same macro with a modifier key?  I've tried getting it to work every way I could think of (I did read the documentation and look for possible examples in this thread) but I can't figure it out.  Basically trying to replace this macro I used to use (which I think required SuperMacro but I don't remember) 

 

/run local w = IsShiftKeyDown(); if w == nil then UseItemByName("Water Name") else cast("Conjure Water") end

Share this post


Link to post
Share on other sites
On ‎06‎-‎02‎-‎2017 at 9:59 AM, Kase said:

/cast !Attack
/cast [stance:1 nocombat] Charge; [nocombat] Battle Stance; [stance:3 combat] Intercept; Berserker Stance

 

When I use this macro , i charge, but in middle of charge it use intercept!!   Dont want it!

Try and see if this Works.

 

/cast [stance:2/3, nocombat] Battle Stance, Charge; [stance:1/2, combat] Berserker Stance; Intercept

Share this post


Link to post
Share on other sites

I found that this macro wont cancel travel form and go into cat. It fires perfectly from Bear Form tho

0 - No Form   1 - Bear   2 - Aquatic   3 - Cat Form   4 - Travel Form

/cast [stance:0/1/2/4] Cat Form; [nocombat, nostealth] Prowl

 

Maby [nostance:4] condition? if possible

Share this post


Link to post
Share on other sites

Oh and would it in any way be possible to label your target? Somthing like this

 

/cast [@target Beast] Hibernate; Entangling Roots

Share this post


Link to post
Share on other sites
17 hours ago, Prosax said:

I found that this macro wont cancel travel form and go into cat. It fires perfectly from Bear Form tho

0 - No Form   1 - Bear   2 - Aquatic   3 - Cat Form   4 - Travel Form

/cast [stance:0/1/2/4] Cat Form; [nocombat, nostealth] Prowl

 

Maby [nostance:4] condition? if possible

 
 

1) There was indeed a bug here! Thank you for reporting this, it should be fixed now!

2) This macro can't work like that because in Vanilla you can not switch from one form to another without leaving your current form first. So something more like this would be appropriate:

/cast [stance:0]Cat Form;[stance:1]Dire Bear Form;[stance:2]Aquatic Form;[stance:4]Travel Form;[nocombat nostealth]Prowl

3) But since that isn't really nice, I've added the new chat command "/unshift" which also supports all Conditionals! You can use it like this:

/unshift [stance:1/2/4]
/cast [stance:0] Cat Form; [nocombat nostealth] Prowl

This makes it a lot easier to understand what is actually going on!

 

19 hours ago, Prosax said:

Oh and would it in any way be possible to label your target? Somthing like this

 

/cast [@target Beast] Hibernate; Entangling Roots

 

This is a really cool idea! I've implemented it like this:

/cast [@target type:Beast] Hibernate; Entangling Roots

 

 

For more information take a look at the wiki. These pages in particular:

https://github.com/DennisWG/CastModifier/wiki/unshift

https://github.com/DennisWG/CastModifier/wiki/cast-Conditionals#typecreaturetypeid

 

Share this post


Link to post
Share on other sites

/cast [nomybuff:Aspect of the Hawk] Aspect of the Hawk; Aspect of the Monkey 

That Macro do not work. It casts AotH if i have got no Aspect, AotM if i have got any other Aspect, if i have got AotM it cancels the Buff.

Seems it only reads the first Word of the modifier.

 

I have got the Addon version from Feb. 28th.

Edited by PrioR

Share this post


Link to post
Share on other sites

is it possible to use other macros instead of skills?

 

like this:

Makro 1:
/cast [mypower>60]Heroic Strike; Makro2

 

Makro 2:
/cast [mypower>30]Sunder Armor; Makro3

Makro 3:
...

would this work?

Share this post


Link to post
Share on other sites

Is there any option as [channeling] or [nochanneling] if not can you implement this commands?

 

sample;

/cast [nochanneling] Shadow Bolt

 

only cast shadow bolt if none other channeling spell is being casted.

Share this post


Link to post
Share on other sites

Big update!

 

  • You're now able to combine multiple modifiers! (Wiki
  • You can now invoke other Macros from another Macro! (Wiki)
  • Added [no]cooldown Conditionals! (Wiki)
  • Added [no]channeled Conditionals! (Wiki)
  • Fixed a bug that caused /use to not use equipped items!
  • Fixed a bug that caused buff names not to be fully parsed!

 

Make sure to re-download the Addon!

 

 

 

 

9 hours ago, PrioR said:

/cast [nomybuff:Aspect of the Hawk] Aspect of the Hawk; Aspect of the Monkey 

That Macro do not work. It casts AotH if i have got no Aspect, AotM if i have got any other Aspect, if i have got AotM it cancels the Buff.

Seems it only reads the first Word of the modifier.

 

I have got the Addon version from Feb. 28th.

5

Two things:

1) I introduced a parsing bug in the last updates. Should be fixed now, so please re-download the Addon!

2)  You can not use white spaces in between the square brackets []. You have to use "_" instead. So make sure to replace "[nomybuff:Aspect of the Hawk]" with "[nomybuff:Aspect_of_the_Hawk]"

 

 

 

 

@jagonx @PrioR @Meitie @Makonha

 

Share this post


Link to post
Share on other sites
54 minutes ago, Ike said:

Big update!

 

  • You're now able to combine multiple modifiers! (Wiki
  • You can now invoke other Macros from another Macro! (Wiki)
  • Added [no]cooldown Conditionals! (Wiki)
  • Added [no]channeled Conditionals! (Wiki)
  • Fixed a bug that caused /use to not use equipped items!
  • Fixed a bug that caused buff names not to be fully parsed!

 

Make sure to re-download the Addon!

 

 

 

 

Two things:

1) I introduced a parsing bug in the last updates. Should be fixed now, so please re-download the Addon!

2)  You can not use white spaces in between the square brackets []. You have to use "_" instead. So make sure to replace "[nomybuff:Aspect of the Hawk]" with "[nomybuff:Aspect_of_the_Hawk]"

 

 

 

 

@jagonx @PrioR @Meitie @Makonha

 

 

oh my god, so fast implementing! I will download. Awesome!

ty very much

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×