I might not have mentioned it but now that I have actually added warden pet usage into the bot you can get rid of all the code you added yourself previously to deal with warden pets.
So if you have player;cast("") with any summon pet skills, delete the code
if you have any code telling pet to attack, delete it
if you have any code trying to make the bot get the pet buff, delete it.
Alsong as you have just 1 buff skill in your proifle and just 1 summon pet skill in profile then the bot will now do everything else for you.
Put simply I suguest creating a new profile and add skills like you would for any other class, forget about adding any special code you needed previously.
This is the profile skills for my Warden/Scout, everything else in profile is as normal.
Code: Select all
<skills_warden>
<skill name="WARDEN_CHARGED_CHOP" hotkey="MACRO" priority="100" />
<skill name="WARDEN_ENERGY_ABSORB" hotkey="MACRO" priority="80" inbattle="true" hpper="25" />
<skill name="WARDEN_SUMMON_SPIRIT_OF_THE_OAK" hotkey="MACRO" priority="90" autouse="false" />
<skill name="WARDEN_SUMMON_NATURE_CRYSTAL" hotkey="MACRO" priority="90" autouse="false" />
<skill name="WARDEN_SUMMON_OAK_WALKER" hotkey="MACRO" priority="90" autouse="false" />
<skill name="WARDEN_BRIAR_SHIELD" hotkey="MACRO" priority="90" />
<skill name="WARDEN_POWER_OF_THE_WOOD_SPIRIT" hotkey="MACRO" priority="100" />
<skill name="WARDEN_SAVAGE_POWER" hotkey="MACRO" priority="90" />
<skill name="WARDEN_POWER_OF_THE_OAK" hotkey="MACRO" priority="90" />
<skill name="WARDEN_ELVEN_PRAYER" hotkey="MACRO" priority="90" />
<skill name="WARDEN_SUMMON_CHIRON_THE_CENTAUR" hotkey="MACRO" priority="90" />
</skills_warden>
So it will have chiron out all the time and when I need the buff WARDEN_POWER_OF_THE_OAK it will summon the pet required and then get buff and then resummon chiron, only does this when out of combat.
Also it will heal pet using WARDEN_ELVEN_PRAYER, can't remember the % of hp I set it to use the skill. Just checked, 70%. If you think it should be a different value just say so.
It's in skill.lua line 452
Code: Select all
if self.Id == 493398 then
petupdate()
if pet.Name == "<UNKNOWN>" or ( pet.HP / pet.MaxHP * 100) > 70 then
return false
end
end