dramaa93 Posted February 11, 2021 Posted February 11, 2021 is there any command for skills to when you use for example "Aegis stance" to worn off when you unequip shield?
0 BruT Posted February 11, 2021 Posted February 11, 2021 You want to stop aegis stance when you unequip your shield?
0 dramaa93 Posted February 11, 2021 Author Posted February 11, 2021 52 minutes ago, BruT said: You want to stop aegis stance when you unequip your shield? yes and not only aegis.
0 Kara Posted February 11, 2021 Posted February 11, 2021 4 hours ago, dramaa93 said: yes and not only aegis. In L2J at least there a method in Inventory.java called notifyUnequiped which basically remove skills given by item once its equipped. final SkillHolder[] skills = it.getSkills(); if (skills != null) { for (final SkillHolder skillInfo : skills) { if (skillInfo == null) { continue; } itemSkill = skillInfo.getSkill(); if (itemSkill != null) { player.removeSkill(itemSkill, false, itemSkill.isPassive()); } } } So you can either make a simple check here or make a var BOOLEAN type in XML of weapon and control each item if you want to keep or no keep skills. It's pretty simple.
0 BruT Posted February 11, 2021 Posted February 11, 2021 (edited) 4 hours ago, dramaa93 said: yes and not only aegis. why would u want to stop shield toggle skills ? they dont usually work when there is no shield equipped. Edited February 11, 2021 by BruT
0 dramaa93 Posted February 13, 2021 Author Posted February 13, 2021 But reflect or titans frenzy zealot don't works when changing weapons?
0 Zake Posted February 13, 2021 Posted February 13, 2021 6 hours ago, dramaa93 said: But reflect or titans frenzy zealot don't works when changing weapons? Zealot <for> <effect name="Buff" time="60" val="0" stackOrder="#stackOrder" stackType="pd_up_special"> <add order="0x40" stat="accCombat" val="6"/> <add order="0x40" stat="runSpd" val="#runSpd"/> <mul order="0x30" stat="pAtkSpd" val="#pAtkSpd"/> <mul order="0x30" stat="gainHp" val="0.5"/> <add order="0x40" stat="rCrit" val="#rCrit"> <and> <using kind="SWORD,BIGSWORD,POLE"/> </and> </add> <mul order="0x30" stat="cAtk" val="#cAtk"> <and> <using kind="BLUNT,BIGBLUNT,FIST,DUALFIST"/> </and> </mul> </effect> </for> Frenzy <for> <effect name="Buff" time="90" count="1" val="0" stackOrder="1" stackType="OrcBuff"> <add order="0x40" stat="accCombat" val="#accCombat"> <and> <using kind="Big Sword,Big Blunt"/> </and> </add> <mul order="0x30" stat="pAtk" val="#swordbluntpole"> <and> <using kind="Sword,Blunt,Pole"/> </and> </mul> <mul order="0x30" stat="pAtk" val="#twohands"> <and> <using kind="Big Sword,Big Blunt"/> </and> </mul> <mul order="0x30" stat="pAtk" val="#other"> <and> <using kind="Dual Fist,Dual Sword,Fist,Etc,Bow,Dagger"/> </and> </mul> </effect> </for>
0 dramaa93 Posted February 13, 2021 Author Posted February 13, 2021 #zake If I am not wrong this what you wrote means that I can use those skills on those weapons, but what I meant is that, when I use zealot or frenzy it's have to stop working when I change weapon, except if you change weapons at 30% hp.
0 Irrelevant Posted February 13, 2021 Posted February 13, 2021 (edited) 48 minutes ago, dramaa93 said: #zake If I am not wrong this what you wrote means that I can use those skills on those weapons, but what I meant is that, when I use zealot or frenzy it's have to stop working when I change weapon, except if you change weapons at 30% hp. zealot and frenzy requieres 30% to load(as effect players inside oly starts run when titan load fr,zealot.titan MUST equip bow,last hit matters). This mode you want to add will upset most of players.. @Zake gives you the best solution! Edited February 13, 2021 by Irrelevant
0 Zake Posted February 13, 2021 Posted February 13, 2021 1 hour ago, dramaa93 said: #zake If I am not wrong this what you wrote means that I can use those skills on those weapons, but what I meant is that, when I use zealot or frenzy it's have to stop working when I change weapon, except if you change weapons at 30% hp. This means that stats may vary according to your equipped weapon unless frozen comes up with new surprises. Normally frenzy should be casted even without a weapon
0 dramaa93 Posted February 13, 2021 Author Posted February 13, 2021 Okey but what about paladins reflect? Can I make it so to when he unequip shield effect worns off? I have not checked those skills also I am at work so can't check , but can I add this what you wrote me zake to stop effect if shield will be disarmed?
0 BruT Posted February 13, 2021 Posted February 13, 2021 (edited) 2 hours ago, dramaa93 said: Okey but what about paladins reflect? Can I make it so to when he unequip shield effect worns off? I have not checked those skills also I am at work so can't check , but can I add this what you wrote me zake to stop effect if shield will be disarmed? You can add any condition just like in the following stat, that makes the stat work only with specific item types <mul order="0x30" stat="pAtk" val="#other"> <and> <using kind="Dual Fist,Dual Sword,Fist,Etc,Bow,Dagger"/> </and> </mul> "> <and> <using... </and> </mul> there are usually 2 type of conditions, onCast and Stat don't ever bother moding core for such things like removing effect on unequip because ull face other issues Edited February 13, 2021 by BruT
Question
dramaa93
is there any command for skills to when you use for example "Aegis stance" to worn off when you unequip shield?
11 answers to this question
Recommended Posts