Page 1 of 1

Hunter macro help

PostPosted: Sat Jan 23, 2016 5:32 pm
by Superuknown83
I am looking to add in the ability to, at the minimum, re call my pet from a target that he is attacking.

I am currently using:
/cast Hunter's Mark
/script PetAttack(target);

how would I add in a pet passive command that wont confuse the system?

also, would there be a way to add in a pet revive command like in:
/cast [@pet,dead][mod:shift] Revive Pet
/cast [nopet,nomod] Call Pet 1
/clearfocus [@focus,dead]
/focus [@focus,exists]player;target
/clearfocus [@focus,noharm]
/petattack [@focus,exists]
/petfollow [@focus,noexists]
/cast Hunter's Mark

for whatever reason I cannot seem to get the above to work at all and cant figure why but may have somthing to do with one being a /script with a ; at the end. its just been forever since Ive written any macros for the game myself and am super rusty.

Re: Hunter macro help

PostPosted: Sun Jan 24, 2016 12:14 pm
by Dreez
Superuknown83 wrote:how would I add in a pet passive command that wont confuse the system?

Code: Select all
/run PetPassiveMode()

sets your pet to passive

Superuknown83 wrote:also, would there be a way to add in a pet revive command like in:
/cast [@pet,dead][mod:shift] Revive Pet
/cast [nopet,nomod] Call Pet 1
/clearfocus [@focus,dead]
/focus [@focus,exists]player;target
/clearfocus [@focus,noharm]
/petattack [@focus,exists]
/petfollow [@focus,noexists]
/cast Hunter's Mark

for whatever reason I cannot seem to get the above to work at all and cant figure why but may have somthing to do with one being a /script with a ; at the end. its just been forever since Ive written any macros for the game myself and am super rusty.

; is generally ignored in lua

the macros simply won't work in a vanilla client as there is no API to support them and
e.g. there is no focus target
/petattack is /run PetAttack()
etc.

here's a list of all available API:
http://vanilla-wow.wikia.com/wiki/World_of_Warcraft_API
what you basically do is put a /run at the beginning and then add the API