Page 1 of 1
Trigger KNIGHT_MANA_ABSORPTION by hasDebuff
Posted: Thu Aug 05, 2010 9:42 am
by fluxus
Hi,
im trying currently to build a Knight, unfortunately its buring mana pots like hell :/
But there is a Skill named Mana Return which fills up your mana depending on how much "Holy Seal"´s you applied to your target.
Holy Seals are applied by a chance by normal Attacks when the "Holy Seal" buff is active on the player and thats the Problem i never know how much "Holy Seal"´s are activ so i never know when to cast Mana Return :/
my onSkillCast curently looks like this(not working...):
Code: Select all
<onSkillCast>
local target = player:getTarget();
target:updateBuffs();
if target:hasDebuff("Holy Seal %(3%)") then
player:cast("KNIGHT_MANA_ABSORPTION");
end;
</onSkillCast>
tryed hasDebuff and hasBuff, none working.
any suggestions?
-fluxus
Re: Trigger KNIGHT_MANA_ABSORPTION by hasDebuff
Posted: Thu Aug 05, 2010 10:21 am
by rock5
fluxus wrote:Hi,
im trying currently to build a Knight, unfortunately its buring mana pots like hell :/
But there is a Skill named Mana Return which fills up your mana depending on how much "Holy Seal"´s you applied to your target.
Holy Seals are applied by a chance by normal Attacks when the "Holy Seal" buff is active on the player and thats the Problem i never know how much "Holy Seal"´s are activ so i never know when to cast Mana Return :/
my onSkillCast curently looks like this(not working...):
Code: Select all
<onSkillCast>
local target = player:getTarget();
target:updateBuffs();
if target:hasDebuff("Holy Seal %(3%)") then
player:cast("KNIGHT_MANA_ABSORPTION");
end;
</onSkillCast>
tryed hasDebuff and hasBuff, none working.
any suggestions?
-fluxus
First you don't need to do "target:updateBuffs()" because it is done in hasDebuff.
Next, hasDebuff returns true or false and the counter. So if you use
Code: Select all
local bool, count = target:hasDebuff("Holy Seal")
then you can do
Code: Select all
if bool == true and count > 2 then
player:cast("KNIGHT_MANA_ABSORPTION");
end;
Re: Trigger KNIGHT_MANA_ABSORPTION by hasDebuff
Posted: Sat Aug 07, 2010 9:19 am
by fluxus
thanks, works like a charm

i would like to share my build, a Knight/Rogue.
Fight sequenz is like this:
Pulls via Throw, Blinds target, applies Disarm 4 times and kills via Shadowstab. Dosnt need mana pots because of MANA_ABSORPTION

If it could heal itself it would be unstopable x)
Code: Select all
<skills_knight>
<skill name="KNIGHT_ENHANCED_ARMOR" modifier="" hotkey="VK_1" priority="90" />
<skill name="KNIGHT_HOLY_SEAL" modifier="" hotkey="VK_2" priority="90" />
<skill name="ROGUE_THROW" modifier="" hotkey="VK_3" priority="100" inbattle="false" />
<skill name="ROGUE_BLIND_STAB" modifier="" hotkey="VK_4" priority="100" maxuse="1" />
<skill name="KNIGHT_DISARMAMENT" modifier="" hotkey="VK_5" priority="90" autouse="false" />
<skill name="KNIGHT_MANA_ABSORPTION" modifier="" hotkey="VK_6" priority="40" autouse="false" />
<skill name="ROGUE_SHADOWSTAB" modifier="" hotkey="VK_7" priority="20" />
</skills_knight>
Code: Select all
<onSkillCast>
local target = player:getTarget();
local bool, count = target:hasDebuff("Holy Seals (3)");
if bool == true then
player:cast("KNIGHT_MANA_ABSORPTION");
end;
local bool, count = target:hasDebuff("Disarmarment IV");
if bool == false then
player:cast("KNIGHT_DISARMAMENT");
end;
</onSkillCast>
i think im gona work on a rogue seq. too

Re: Trigger KNIGHT_MANA_ABSORPTION by hasDebuff
Posted: Sun Aug 08, 2010 5:53 am
by Starrider
hello, the skill for the mana return after Holy Seal /Heiliges Siegel is called correctly
KNIGHT_MANA_RETURN
Code: Select all
<skill name="KNIGHT_MANA_RETURN" hotkey="VK_6" priority="91" inbattle="true" cooldown="7" />
Re: Trigger KNIGHT_MANA_ABSORPTION by hasDebuff
Posted: Sun Aug 08, 2010 6:24 am
by fluxus
Starrider wrote:hello, the skill for the mana return after Holy Seal /Heiliges Siegel is called correctly
KNIGHT_MANA_RETURN
Code: Select all
<skill name="KNIGHT_MANA_RETURN" hotkey="VK_6" priority="91" inbattle="true" cooldown="7" />
Which version are you using? Cant find KNIGHT_MANA_RETURN in skills.xml using latest SVN.