What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

About Pet Attack

turbocross

New Member
Joined
Mar 23, 2010
Messages
231
Reaction score
0
Hi, if I want to make a pet attack the choice of target first, what code would do this?

I'm trying to create a custom CC for my in-game pet to attack the target first.

And thank you in advance!
 
Code:
            if (combatChecks &&
                    Me.GotAlivePet &&
                    petAttack)
            {
                if (!Me.Pet.IsAutoAttacking)
                {
                    Lua.DoString("PetAttack()");
                }
            }

Code:
Lua.DoString("PetAttack()");
 
If you want it to attack first, then just do the petattack in the Pull() section then Thread.Sleep(1000) or however long you want to wait before your character starts its actions.
 
Back
Top