Do you play a pet class? do you have a macro set up for /pet attack? Do you hate having to cycle through each of your pet's abilities? Do you play a necro and hate having to reconfigure your macros after every graft swap?
Here is the solution in snippet form.
You can put this in an *.iss file and then make a macro to /run it if you want, or put it in part of a larger script.
I hope you enjoy this snippet.
Here is the solution in snippet form.
You can put this in an *.iss file and then make a macro to /run it if you want, or put it in part of a larger script.
I hope you enjoy this snippet.
Code:
function PetAttack()
{
VGExecute "/pet attack"
VGExecute "/minions attack"
;-----counting variables, reset them!-----
variable int i = 1
variable uint Count = 0
;-----let's do all the abilities our pet has!-----
;-----when our counter is <= than total pet abilities-----
for (${i}<=${Me.Pet.Ability} ; i:Inc)
{
;-----if my pet is within melee range (<=5)------
if ${Math.Calc[${Math.Distance[${Me.Pet.ToPawn.Location.X},${Me.Pet.ToPawn.Location.Y},${Me.Target.Location.X},${Me.Target.Location.Y}].Int}/100]}<=5
{
;-----use the ability we have selected-----
Me.Pet.Ability[${i}]:Use
wait 1
}
}
; The old way of doing things. Now Obsolete!
;---------------------------------------------
;if ${Me.Pet.Ability[Sneer].IsReady}
;{
; vgexecute /cast \"Sneer\"
;}
;---------------------------------------------
}