Page 1 of 1

target-nearest-whatever!

Posted: Fri Jul 02, 2010 2:53 pm
by Commodore Axavious
Hi there,

Razor question...
I keep reading posts where people discuss macros that "target nearest red" or "target nearest blue" or "target nearest republican" or whatever the options are.

How do I do this? Can't seem to find it anywhere in Razor.

Thanks!

Re: target-nearest-whatever!

Posted: Fri Jul 02, 2010 3:03 pm
by Hicha
While recording your macro, switch to the Hot Keys tab, scroll down and expand Targets, then select the type of targeting you want to use. On the right-side is a button that says Execute Selected. Your character will perform that action and it will be recorded into the macro.

Likewise you could just assign the targeting action to a hotkey and use it that way.

Re: target-nearest-whatever!

Posted: Fri Jul 02, 2010 5:33 pm
by MatronDeWinter
Sometimes "execute selected" wont record. Then you have to set it as a hotkey, and press the hotkey while it's recording.

Re: target-nearest-whatever!

Posted: Tue Jul 06, 2010 2:30 pm
by Commodore Axavious
Is there any way to "double click nearest X"? To, for example, automatically open any box that you approach (maybe a dangerous example, what with the "surprise" boxes that people tend to leave around). Or to automatically eat any food that you run past on the ground, maybe?

Basically, is there any way to "execute double click" without a present target, creating a "wait for target" action to which one might insert a "Target Nearest"?

Re: target-nearest-whatever!

Posted: Tue Jul 06, 2010 3:44 pm
by MatronDeWinter
You can do that but it presents certain problems.

If you record double clicking something, then right-click it in the macro and change it to "use by type", whenever that line of the macro is played it will attempt to find and click any item of that type. It checks your backpack for it first, and if whatever it is, is not in your pack it will check the area around you.

This works good for using moongates or something, but if there are 2 moongates on the screen if might not know which one to use. When more than 1 thing are there to be used, razor seems pretty random about which one it chooses to try.

Re: target-nearest-whatever!

Posted: Tue Jul 06, 2010 6:27 pm
by Atraxi
MatronDeWinter wrote:When more than 1 thing are there to be used, razor seems pretty random about which one it chooses to try.
Yeah, I've noticed this when I hit certain hotkeys set to "target by type". In particular, I have a hotkey that shears sheep by target, that way as I run around, if i see a sheep, I can just run by it and shear it real quick without stopping. If there are two sheep on the screen, one right next to me and one right on the edge of the screen, I have to hit the hotkey over and over again to get it to target the one right next to me. Why the hell would I want to target the one that I clearly cannot reach?

Re: target-nearest-whatever!

Posted: Tue Jul 06, 2010 7:03 pm
by MatronDeWinter
Well, it doesnt know if you want to target to sheer, or cast a spell.

Re: target-nearest-whatever!

Posted: Tue Jul 06, 2010 7:11 pm
by Atraxi
MatronDeWinter wrote:Well, it doesnt know if you want to target to sheer, or cast a spell.
Maybe I missed something, but I didn't say anything about casting a spell.

The macro is dblclk dagger, target sheep by type. and I have a hothey for it. What I am saying is that, a lot of times, it will target a sheep that isn't even within reach, rather than the sheep that are close to me.

Re: target-nearest-whatever!

Posted: Wed Jul 07, 2010 12:11 am
by Joueur Moyen
bradleycabbie wrote:
MatronDeWinter wrote:Well, it doesnt know if you want to target to sheer, or cast a spell.
Maybe I missed something, but I didn't say anything about casting a spell.

The macro is dblclk dagger, target sheep by type. and I have a hothey for it. What I am saying is that, a lot of times, it will target a sheep that isn't even within reach, rather than the sheep that are close to me.
Target nearest gray. It will do the sheep you're closest to.

Re: target-nearest-whatever!

Posted: Wed Jul 07, 2010 12:32 am
by Sandro
Joueur Moyen wrote:Target nearest gray. It will do the sheep you're closest to.
It would actually target the closest "gray", meaning anything attack-able but not flagged as criminal. All animals and monsters are classified as "gray" until they attack an innocent which then flags them as criminals.

You could try adding a target-by-type for sheep in your macro, but you would still have the problem with multiple sheep on the same screen. Also, keep in mind that a sheered sheep has a different ItemID from a sheep that hasn't yet been sheered. So make sure your "target-by-type" is for the sheep with wool.

I could be wrong about the ItemID but I believe this is correct.