F1 Targeting

Need help with a macro you are writing? Ask here!

Moderator: MacroQuest Developers

frabtik
a ghoul
a ghoul
Posts: 114
Joined: Sat Feb 21, 2004 10:07 am

F1 Targeting

Post by frabtik » Thu May 13, 2004 4:15 pm

Anyone could make this into a one liner to use as a custombind? I been messing with it but just am missing something. Suspect something simple like comma in wrong place or a bracket. Any help appreciated. This is actual macro code that I was playing with. Yes I was trying to use ${If} in my one liner.

Code: Select all

/if (!${Target.ID}) { 
   /target id ${Me.ID}
} else /if (${Target.ID}==${Me.ID}) {
   /if (${Me.Pet.ID}) /target id ${Me.Pet.ID}
} else /if (${Target.ID}==${Me.Pet.ID}) {
   /target id ${Me.ID}
} else {
   /target id ${Me.ID}
}

Falco72
a hill giant
a hill giant
Posts: 215
Joined: Fri Sep 26, 2003 3:24 am

Post by Falco72 » Thu May 13, 2004 4:28 pm

You can't use

Code: Select all

/target id ${Me.ID}
it will not works.
Instead use

Code: Select all

/keypress targetme

Rusty~
a hill giant
a hill giant
Posts: 244
Joined: Wed Apr 14, 2004 2:55 pm

Post by Rusty~ » Thu May 13, 2004 4:40 pm

actually... /target id ${Me.ID} does work, just /target ${Me.Name} doesn't.
the thing with /keypress targetme, is it doesn't work while casting.. which is what i assume he wants to make a custombind for. the following code should work though. ${If} statements are actually strings, so you use /docommand, to execute them

Code: Select all

/docommand ${If[${Target.ID}==${Me.ID} && ${Me.Pet.ID},/target id ${Me.Pet.ID},/target id ${Me.ID}]}

ml2517
a grimling bloodguard
a grimling bloodguard
Posts: 1216
Joined: Wed Nov 12, 2003 1:12 am

Post by ml2517 » Thu May 13, 2004 4:43 pm

You can also use:

/target myself

Rusty~
a hill giant
a hill giant
Posts: 244
Joined: Wed Apr 14, 2004 2:55 pm

Post by Rusty~ » Thu May 13, 2004 4:48 pm

yeah that works while casting, but wont target pet. you can also change the code above to work with F2-F6. for example, for F2 you could use...

Code: Select all

/docommand ${If[${Target.ID}==${Group[1].ID} && ${Group[1].Pet.ID},/target id ${Group[1].Pet.ID},${If[${Group[1].ID},/target id ${Group[1].ID}, ]}]}
Last edited by Rusty~ on Thu May 13, 2004 5:07 pm, edited 2 times in total.

frabtik
a ghoul
a ghoul
Posts: 114
Joined: Sat Feb 21, 2004 10:07 am

Post by frabtik » Thu May 13, 2004 4:57 pm

Thanks I will play with that, yes I know you have to setup f1-f6, yes I know how to target and that the target command I used works fine. And the /keypress target method will not work at all for this. Thanks for the snippet I will look through it and see how that works and hopefully be golden.