I faces the issue, tha my pet dies in Combat and I didn't know how to prevent this. So I thought it might be a good idea to look for your pet after every combat:
So this something you have to add to your profile.
- Heals your Pet, if your 2nd class is Druid. Priest is currently not implemented, but schould be no problem at all.
- Since the spell Elven Prayer is a waste of TP, it resummons the pet if its HP ha fallenbeyond 50%
- It re-summons the pet, which is currently active.
Code: Select all
<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_SUMMON_CHIRON_THE_CENTAUR" hotkey="MACRO" priority="90" autouse="false" />
Code: Select all
if player.Class1 == CLASS_WARDEN then
petupdate(); -- function aus pet.lua
if pet.Id >0 then
setpetautoattacks();
if (pet.HP/pet.MaxHP*100) < 50 then
if (player.Class2==CLASS_DRUID) then
player:update();
local t=player:findNearestNameOrId(pet.Id);
player:target(t);
player:cast("DRUID_RECOVER");
yrest(2500);
else
petCast ={};
table.insert(petCast,102297,"WARDEN_SUMMON_SPIRIT_OF_THE_OAK");
table.insert(petCast,102324,"WARDEN_SUMMON_OAK_WALKER");
table.insert(petCast,102325,"WARDEN_SUMMON_NATURE_CRYSTAL");
table.insert(petCast,102803,"WARDEN_SUMMON_CHIRON_THE_CENTAUR");
player:cast(petCast[pet.Id]);
if pet.Id == 102803 then
yrest(8100); -- WARDEN_SUMMON_CHIRON_THE_CENTAUR takes 8secs to cast..
else
yrest(4100);
end
setpetautoattacks();
end
end
end
end