Is there any workaround to enable ping macro @cursor?

I want to have a macro that drops AMZ at my cursor, and pings my cursor where I dropped it with an ‘onmyway’. I have this so far, but it is not working.

#showtooltip Anti-Magic Zone
/cast [mod:alt,@cursor] Anti-Magic Zone; [@player] Anti-Magic Zone
/ping [mod:alt] onmyway
/ping [nomod,@player] onmyway

The amz conditional works fine, I drop amz on myself and ping myself without alt. I hold alt and it drops AMZ on my cursor, but no ping.

Any way to make this work?

You need to use this stopmacro technique

#showtooltip
/cast [mod:alt,@cursor] [@player] Anti-Magic Zone
/ping [nomod:alt,@player] onmyway
/stopmacro [nomod:alt]
/ping onmyway

this is amazing and I love you. I also did not know that the conditionals worked in that way. In the first line there;

“/cast [mod:alt,@cursor] [@player] Anti-Magic Zone”
if you list 2 conditions in brackets, does it automatically assume if [1] otherwise [2]? I thought a semicolon was needed there like I had. And the spell to be listed twice.

/cast [mod:alt,@cursor] Anti-Magic Zone; [@player] Anti-Magic Zone

you simplified that into a much smaller macro, I learned something today!

[this, and this]
[this] [or this]
; else this

The first condition set that returns true is the one that gets executed.

1 Like