I recently started learning about macro and I make a very simple one.
/target [@mouseover]
Basically I use this to replace clicking on the persons/npcs/objects (both friendly and enemy, dead or alive)
My question is I can think of two ways to improve it but don’t know how to make it works
give 2 conditions and integrate a basic attack into it, so a) it attacks the enemy target I mouseover, b) it targets the friendly NPC/players and tap-able objects. I tried to add a /cast commend to it but I figure it will generate error text upon using it on friendly target and I don’t know how to mute that specific error audio only when using this macro.
integrate an auto-loot script into it. So when I mouseover a deadbody or objects, I can loot without clicking. But I don’t how the logic works, I drafted something like this:
Yeah, it will have that error text and audio because this is basically trying to attack friendly target. I guess the 2nd approach is better. And I can make another one solely for enemy so it won’t have that error.
Not able to target friendly target, it will say you need a target
So I added the /target [@mouseover] in front of it
And it does generate error text and audio
Edit:
ah I just find out why, there needs to be a [exists] / [noexists] condition
The error text comes from when my mouse is slightly off and actually aims at the ground
Ok so what I do is that is bound to a key, like for me it’s E, I can press it over a target, and the spell will cast over my mouse over as a heal if it’s friendly, and damage them it they are hostile. Is yours bonded to a key?
You can also add modifiers such as shift or control if you want to cast it on your party or focus without mousing over them. It can all be done in one macro.
I changed the second line from @mouseover to @target #showtooltip
/target [@mouseover]
/cast [@target,help,nodead][exists,nodead,nomod][@player] Fracture
Now it no longer generate error text and audio when I mouseover to ground and have not cleared my last target
That’s because you aren’t in range yet I bet, try it standing next to the dummies and do it. That was how I tested it to make sure it worked before I shared it