Page 1 of 1

Macro question - pet autocast abilities

PostPosted: Fri Nov 27, 2015 12:54 am
by Winstons
Hi guys,

Does anyone know the working macro command for toggling a pet's autocast ability on and off? Tried google, but to no avail yet, not found one that works.

Cheers!

Re: Macro question - pet autocast abilities

PostPosted: Sat Nov 28, 2015 1:30 am
by Dreez
this is the API:
TogglePetAutocast(index)
ToggleSpellAutocast(index, bookIndex)

index should be either a string (=spellname) or a spell ID
bookIndex is BOOKTYPE_PET ("pet") / BOOKTYPE_SPELL ("spell")

if the spell is dragged to the pet bar:
Code: Select all
/script TogglePetAutocast("Name of the Ability")


not exactly sure about the bookIndex syntax but I guess it's something like this if the spell is not on the pet bar

Code: Select all
/script ToggleSpellAutocast("Name of the Ability", "pet")

Re: Macro question - pet autocast abilities

PostPosted: Sat Nov 28, 2015 9:33 am
by Winstons
Thank you so much dude, this works! I am inordinately happy.

FYI anyone reading this who is unsure of what 'index' means (I was!), it is the number along on the pet bar of the skill you want. Seduction is my 5th skill so I used - /script TogglePetAutocast(5);

Re: Macro question - pet autocast abilities

PostPosted: Sat Nov 28, 2015 10:01 am
by Dreez
kinda expected that but wowwiki said the index was a string, well you got it now^^