As I had just begun my journey through Azeroth and partnered with my first demon in this realm, I couldn't help but wonder: - "Is there any way to toggle my Imp's autocast on Firebolt without having to click it in my petbar?"
My gnomish curiosity reached a peak and I asked Google and other websites (with amazingly unfulfilling results). I can't be the first practicioner of demonology, nor will I be the last so "help me Obi Wan Kenobi, you're my only hope"
I found the following syntax:
TogglePetAutocast(index)
ToggleSpellAutocast(index, bookIndex)
index should be either a string (=spellname) or a spell ID
bookIndex is BOOKTYPE_PET ("pet") / BOOKTYPE_SPELL ("spell")
Index is the place on your petbar, I think. (So 1, for the first button etc.) so I used: /script TogglePetAutoCast(1), I also tried using the spellcode for Firebolt, which is 3110.
I hope I can be helped as it will prove useful in my future gnomish experiments (in AV for instance). Thanks for reading and remember: Daylight's burnin' !