Auto-Attack

You can post and find Frequently Asked Questions (FAQ) here. Experienced players who wish to create guides or tutorials should post them here.
Post Reply
Wyrd
Posts: 58

Auto-Attack

Post by Wyrd » Mon Aug 10, 2026 3:11 pm

This is a macro I've used for years to target whatever enemy is closest to me. It works for initiating attacks or to target spells after casting. It functions really well in PvM, but won't always work in PvP - for example if you're fighting an Ally, which is considered Friendly (green flagged). But it's really helpful on 90% of the cases.

Here's a step-by-step guide on how to set it up:

1) In Razor, go into Macros tab. Create a new macro, name it however you like and click "Record". Leave it recording for now.

Image

2) Go into Hotkeys tab. Look for Targets > Non-Friendly Targets. Select Target Closest Non-Friendly and click "Execute Selected".

Image

3) Still in Targets, select Attack Last Target and click "Execute Selected".

Image

4) Go back to your macro and stop recording it. It should look like the image below. Now click on "Set HK" to assign a hotkey to it.

Image

5) It will take you back to the Hotkeys tab. Select your new macro, assign a hotkey to it and click "Set". I use Alt Z personally.

Image

6) Lastly, go into Friends tab and make sure "Treat party members as Friends" is enabled, so the macro ignores your party members.

Image

And it's done! Now, every time you hit that hotkey, you'll start attacking the enemy closest to you. Enjoy!

Post Reply