Reply
Thread Tools Display Modes
Unread 07-02-10, 12:04 PM   #1
Flarin
A Frostmaul Preserver
 
Flarin's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 290
Hunter Macro Help

I have searched and found some similar macro's, but nothing exactly like what I want - I hoping for some help.

What I want is this:

Press macro bound key, no modifier

Scenario 1: i have no target. Target nearest [harm], /petattack /cast Hunter's Mark, /cast Auto Shot

Scenario 2: pet has target. Target=pettarget, [nodead] ,/cast Hunter's Mark /cast Auto Shot

Press macro bound key, with Control modifier
Scenario 3: focus has target. Target=focustarget, [nodead], /petattack, /cast Hunter's Mark /cast Auto Shot

This is what I have so far, and I know I am way off:

Code:
#showtooltip
/cast [mod:ctrl, target=pettarget, harm, nodead] [target=focustarget, harm, nodead] Hunter's Mark
/petattack
/cast Auto Shot
Thanks for any help anyone can provide.


* EDIT *

So far this is working - it doesn't use a modifier key but instead uses logic to find the target:

Code:
#showtooltip
/target [target=focustarget, exists, nodead][target=pettarget, exists, nodead]
/cast [nomod] Hunter's Mark
/petattack [target=target, exists]
/startattack [nomod]
Okay - have changed it a bit. the logic is this:

If I have a focus, and it has a target then .. Cast Hunter's Mark, petattack, startattack
If no focus target, but my pet has a target .. Cast Hunter's Mark, petattack, startattack
If no focus or no pet target then it targets the nearest attackable enemy and then stops. The NEXT click, because you now have a target, will target the sequence and send in your pet.

I have a question on this bit - Why does it target ANYTHING at all with no pettarget or no focustarget? I think it is the /petattack [target=target, exists] - its like WoW can't help itself, it MUST target something, although it doesn't send the pet in.

If I hold down any modifier key - control or alt or shift then it will still follow the same logic, the pet will attack, BUT, no Hunter's Mark and no startattack
__________________

"I will crush and destroy and...ooo...shiny..."


Last edited by Flarin : 07-02-10 at 01:56 PM.
Flarin is offline   Reply With Quote
Unread 07-31-10, 12:14 AM   #2
Krahg
A Deviate Faerie Dragon
 
Krahg's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 19
If I understand correctly you want your macro to select a target and the use three additional command on the target selected. Therefore, the final three are easiest.

What the main issue seems to be is selecting your target, here is what I came up with:
Code:
if the pet has a target
    select the pet's target as my target

if (my focus has a target and the mod key is pressed)
    select my focus' target as my target

if I do not have a target
    select the nearest enemy as my target

if i do not have a target
    stop the macro

/cast (...)
Here is the final macro I came up with.
Code:
/target [@pettarget, exists]
/target [mod, @focustarget]
/targetenemy [noexists]
/stopmacro [noexists]
/cast Hunter's Mark
/cast !auto shot
/petattack
I hope this helps

Last edited by Krahg : 07-31-10 at 12:24 AM. Reason: clarification
Krahg is offline   Reply With Quote
Reply

Go BackWoWInterface » AddOns, Compilations, Macros » Macro Help » Hunter Macro Help

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off