Keeping your WardenPet alive, automatically

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
User avatar
Rintintin
Posts: 55
Joined: Tue Jan 01, 2013 7:45 am
Location: Germany

Keeping your WardenPet alive, automatically

#1 Post by Rintintin »

This only might interest you, if one of the classes you play is of type Warden!
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.
Inser this to your skills (if not already done!):

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" />
and this code snipplet has to be appended to the onLeaveCombat Area:

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
Post Reply