Jump to content

Recommended Posts

You need good wow lua API and C# knowbase

To get health: 

        int enemyHealth = PetBattles.GetHealth(PetBattles.PetFaction.Enemy, PetBattles.GetActivePet(PetBattles.PetFaction.Enemy));
        int enemyMaxHealth = PetBattles.GetMaxHealth(PetBattles.PetFaction.Enemy, PetBattles.GetActivePet(PetBattles.PetFaction.Enemy));
        int enemyMaxPercent = enemyHealth * 100 / enemyMaxHealth;

 

Link to comment
https://wrobot.eu/forums/topic/5766-how-to-cast-pet-spells/#findComment-26313
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...