Macro question - pet autocast abilities

Macro question - pet autocast abilities

by Winstons » Fri Nov 27, 2015 12:54 am

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!
Player vs Herbs - The Trailer! https://www.youtube.com/watch?v=aZIUqT1wmOs
Winstons - Level 60 Undead Priest <Slacker's Corner>
Hiltts - Level 29 Human Warlock <Blessed Be The Thingy>
Hilts - Level 33 Human Mage
Winstons
Sergeant
Sergeant
 

Re: Macro question - pet autocast abilities

by Dreez » Sat Nov 28, 2015 1:30 am

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")
Dreez - PvP server
<Endzeit>
User avatar
Dreez
Knight-Lieutenant
Knight-Lieutenant
 

Re: Macro question - pet autocast abilities

by Winstons » Sat Nov 28, 2015 9:33 am

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);
Player vs Herbs - The Trailer! https://www.youtube.com/watch?v=aZIUqT1wmOs
Winstons - Level 60 Undead Priest <Slacker's Corner>
Hiltts - Level 29 Human Warlock <Blessed Be The Thingy>
Hilts - Level 33 Human Mage
Winstons
Sergeant
Sergeant
 

Re: Macro question - pet autocast abilities

by Dreez » Sat Nov 28, 2015 10:01 am

kinda expected that but wowwiki said the index was a string, well you got it now^^
Dreez - PvP server
<Endzeit>
User avatar
Dreez
Knight-Lieutenant
Knight-Lieutenant
 


Return to Addons & macros