how to activate mana_return after 3 holy seals?

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
Starrider
Posts: 164
Joined: Sat May 01, 2010 7:04 am
Location: Germany

how to activate mana_return after 3 holy seals?

#1 Post by Starrider »

hello, I need some help.
I play as knight/priest on a german server.

I want to use/activate

Code: Select all

<skill name="KNIGHT_MANA_RETURN" hotkey="VK_6" priority="91" inbattle="true" cooldown="7" />
after 3 holy seals are on the target. With this kind of code its not possible, because the mana return will be directly used after the ranged pull "rising tide". Then the cooldown is 7 seconds but often the target is down after 4-6 holy strikes and punishment, before the cooldown ends. So I get no mana return again.

I need help like a preskill cast script or any possibility that checks, if 3 holy seals are on the target and then activates mana return.

In the skills.xml such a check is implemented for the punishment skill

Code: Select all

<skill name="KNIGHT_PUNISHMENT" skilltab="2" skillnum="1" mana="20" manainc="2.0" range="50" cooldown="8" type="damage" target="enemy" reqbufftype="debuff" reqbuffcount="3" reqbufftarget="target" reqbuffname="Siegel des Lichts III*" />

*changed manually german ingame buffname to make it working

Is this possible for mana return, too?

Thx for help!
Alkaiser
Posts: 222
Joined: Sat Sep 25, 2010 2:03 pm

Re: how to activate mana_return after 3 holy seals?

#2 Post by Alkaiser »

This is how I do it:

I'm not sure what the difference is between KNIGHT_MANA_ABSORPTION and KNIGHT_MANA_RETURN. But if they are the same you can change it to whatever one you have listed in your skills.

EDIT: Fixed something I missed.

Code: Select all

	<onPreSkillCast>
	local targetPawn = CPawn(player.TargetPtr);
	if( arg1.Name == "KNIGHT_MANA_ABSORPTION" ) then
		if( targetPawn ~= nill and targetPawn ~= 0 and targetPawn  ~= player.Address ) then
			local bool, count = targetPawn:hasDebuff("Holy Seals (3)");
			if( bool == true ) then
				return true;
			else
				return false;
			end
		else
			return true;
		end
	else
		return true;
	end
	</onPreSkillCast>
Starrider
Posts: 164
Joined: Sat May 01, 2010 7:04 am
Location: Germany

Re: how to activate mana_return after 3 holy seals?

#3 Post by Starrider »

Knight_mana_return is an eliteskill. So it differs from mana absorbtion.

Edit: Thx it works perfect! Changed to mana_return and Seals to "Heilige Siegel (3)" an it works XD.
Many thx
Post Reply