API:UsePetAction

UsePetAction(x,[true])
== Arguments ==
: x - Pet Actionbar 1-10
: [true] - optional argument that serves as RightMouseButton
== Example ==
/script UsePetAction(6)
Uses the 6. skill
/script UsePetAction(6,true)
Makes pet to use skills when available - similar like right clicking this skill (ie with Spirit of the Oak)
Category:Functions