Jump to content

Swapping pets


Zloba77

Recommended Posts

Is it possible to set somewhere in bot to swap pet if at/below certain %? Or make it a new feature in a future bot update in the profile setting window?

 

From pet battles feature, this is only what bothers me. Have made my own profiles to grind pet levels but swapping them would increase the speed of leveling them instead of having them die.

 

Thanks!

 

Link to comment
Share on other sites

  • 1 month later...
  • 3 weeks later...
I have added today new options in pet battle (automatically order pets by level and pvp mode).
 
If you can tell me if you have bug with news options.
Link to comment
Share on other sites

  • 1 month later...
  • 4 weeks later...

Hi,

 

How explain I have added possibility to use lua script.

 

Use this script for change pet when health is smaller at 30 % (you can change this value):

local minHealthPercent = 30;

local PetAlly = 1;
local PetEnemy = 2;

local activePetEnemy = C_PetBattles.GetActivePet(PetEnemy);
local typePetEnemy = C_PetBattles.GetPetType(PetEnemy, activePetEnemy);
local activePetAlly = C_PetBattles.GetActivePet(PetAlly);
local typePetAlly = C_PetBattles.GetPetType(PetAlly, activePetAlly);

if C_PetBattles.GetHealth(PetAlly, activePetAlly) * 100 / C_PetBattles.GetMaxHealth(PetAlly, activePetAlly) <= minHealthPercent then
	for i = 1, NUM_BATTLE_PETS_IN_BATTLE do
		if C_PetBattles.GetHealth(PetAlly, i) * 100 / C_PetBattles.GetMaxHealth(PetAlly, i) > minHealthPercent and not  (i == activePetAlly) then
				C_PetBattles.ChangePet(i); 
				break;
		end
	end
end
Link to comment
Share on other sites

  • 2 months later...
  • 5 months later...
  • 7 months later...

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...