diff --git a/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/handlers/EffectMasterHandler.java b/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/handlers/EffectMasterHandler.java index cc3eb44efa..d280e5efb0 100644 --- a/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/handlers/EffectMasterHandler.java +++ b/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/handlers/EffectMasterHandler.java @@ -66,6 +66,7 @@ public final class EffectMasterHandler EffectHandler.getInstance().registerHandler("BonusSpoilRate", BonusSpoilRate::new); EffectHandler.getInstance().registerHandler("Breath", Breath::new); EffectHandler.getInstance().registerHandler("BuffBlock", BuffBlock::new); + EffectHandler.getInstance().registerHandler("CallLearnedSkill", CallLearnedSkill::new); EffectHandler.getInstance().registerHandler("CallParty", CallParty::new); EffectHandler.getInstance().registerHandler("CallPc", CallPc::new); EffectHandler.getInstance().registerHandler("CallRandomSkill", CallRandomSkill::new); diff --git a/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/handlers/effecthandlers/CallLearnedSkill.java b/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/handlers/effecthandlers/CallLearnedSkill.java new file mode 100644 index 0000000000..c1064deb05 --- /dev/null +++ b/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/handlers/effecthandlers/CallLearnedSkill.java @@ -0,0 +1,54 @@ +/* + * This file is part of the L2J Mobius project. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package handlers.effecthandlers; + +import com.l2jmobius.gameserver.model.StatsSet; +import com.l2jmobius.gameserver.model.actor.L2Character; +import com.l2jmobius.gameserver.model.effects.AbstractEffect; +import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance; +import com.l2jmobius.gameserver.model.skills.Skill; +import com.l2jmobius.gameserver.model.skills.SkillCaster; + +/** + * Call Learned Skill by Level effect implementation. + * @author Kazumi + */ +public final class CallLearnedSkill extends AbstractEffect +{ + private final int _skillId; + + public CallLearnedSkill(StatsSet params) + { + _skillId = params.getInt("skillId"); + } + + @Override + public boolean isInstant() + { + return true; + } + + @Override + public void instant(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item) + { + final Skill knownSkill = effector.getKnownSkill(_skillId); + if (knownSkill != null) + { + SkillCaster.triggerCast(effector, effected, knownSkill); + } + } +} \ No newline at end of file diff --git a/L2J_Mobius_1.0_Ertheia/dist/game/data/stats/skills/documentation.txt b/L2J_Mobius_1.0_Ertheia/dist/game/data/stats/skills/documentation.txt index 7cdb106dcd..5ef6097f78 100644 --- a/L2J_Mobius_1.0_Ertheia/dist/game/data/stats/skills/documentation.txt +++ b/L2J_Mobius_1.0_Ertheia/dist/game/data/stats/skills/documentation.txt @@ -35,6 +35,7 @@ BonusDropRate: Bonus chance for dropping items. (l2jmobius) BonusSpoilRate: Bonus chance for acquiring spoil items. (l2jmobius) Breath: Underwater breathing stat. BuffBlock: Blocks target from receiving buffs. +CallLearnedSkill: Calls existing learned skill. (l2jmobius) CallParty: Recalls whole party. CallPc: Recalls a Player. CallRandomSkill: Triggers a random skill. (l2jmobius) diff --git a/L2J_Mobius_2.5_Underground/dist/game/data/scripts/handlers/EffectMasterHandler.java b/L2J_Mobius_2.5_Underground/dist/game/data/scripts/handlers/EffectMasterHandler.java index cc3eb44efa..d280e5efb0 100644 --- a/L2J_Mobius_2.5_Underground/dist/game/data/scripts/handlers/EffectMasterHandler.java +++ b/L2J_Mobius_2.5_Underground/dist/game/data/scripts/handlers/EffectMasterHandler.java @@ -66,6 +66,7 @@ public final class EffectMasterHandler EffectHandler.getInstance().registerHandler("BonusSpoilRate", BonusSpoilRate::new); EffectHandler.getInstance().registerHandler("Breath", Breath::new); EffectHandler.getInstance().registerHandler("BuffBlock", BuffBlock::new); + EffectHandler.getInstance().registerHandler("CallLearnedSkill", CallLearnedSkill::new); EffectHandler.getInstance().registerHandler("CallParty", CallParty::new); EffectHandler.getInstance().registerHandler("CallPc", CallPc::new); EffectHandler.getInstance().registerHandler("CallRandomSkill", CallRandomSkill::new); diff --git a/L2J_Mobius_2.5_Underground/dist/game/data/scripts/handlers/effecthandlers/CallLearnedSkill.java b/L2J_Mobius_2.5_Underground/dist/game/data/scripts/handlers/effecthandlers/CallLearnedSkill.java new file mode 100644 index 0000000000..c1064deb05 --- /dev/null +++ b/L2J_Mobius_2.5_Underground/dist/game/data/scripts/handlers/effecthandlers/CallLearnedSkill.java @@ -0,0 +1,54 @@ +/* + * This file is part of the L2J Mobius project. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package handlers.effecthandlers; + +import com.l2jmobius.gameserver.model.StatsSet; +import com.l2jmobius.gameserver.model.actor.L2Character; +import com.l2jmobius.gameserver.model.effects.AbstractEffect; +import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance; +import com.l2jmobius.gameserver.model.skills.Skill; +import com.l2jmobius.gameserver.model.skills.SkillCaster; + +/** + * Call Learned Skill by Level effect implementation. + * @author Kazumi + */ +public final class CallLearnedSkill extends AbstractEffect +{ + private final int _skillId; + + public CallLearnedSkill(StatsSet params) + { + _skillId = params.getInt("skillId"); + } + + @Override + public boolean isInstant() + { + return true; + } + + @Override + public void instant(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item) + { + final Skill knownSkill = effector.getKnownSkill(_skillId); + if (knownSkill != null) + { + SkillCaster.triggerCast(effector, effected, knownSkill); + } + } +} \ No newline at end of file diff --git a/L2J_Mobius_2.5_Underground/dist/game/data/stats/skills/documentation.txt b/L2J_Mobius_2.5_Underground/dist/game/data/stats/skills/documentation.txt index 7cdb106dcd..5ef6097f78 100644 --- a/L2J_Mobius_2.5_Underground/dist/game/data/stats/skills/documentation.txt +++ b/L2J_Mobius_2.5_Underground/dist/game/data/stats/skills/documentation.txt @@ -35,6 +35,7 @@ BonusDropRate: Bonus chance for dropping items. (l2jmobius) BonusSpoilRate: Bonus chance for acquiring spoil items. (l2jmobius) Breath: Underwater breathing stat. BuffBlock: Blocks target from receiving buffs. +CallLearnedSkill: Calls existing learned skill. (l2jmobius) CallParty: Recalls whole party. CallPc: Recalls a Player. CallRandomSkill: Triggers a random skill. (l2jmobius) diff --git a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/handlers/EffectMasterHandler.java b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/handlers/EffectMasterHandler.java index cc3eb44efa..d280e5efb0 100644 --- a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/handlers/EffectMasterHandler.java +++ b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/handlers/EffectMasterHandler.java @@ -66,6 +66,7 @@ public final class EffectMasterHandler EffectHandler.getInstance().registerHandler("BonusSpoilRate", BonusSpoilRate::new); EffectHandler.getInstance().registerHandler("Breath", Breath::new); EffectHandler.getInstance().registerHandler("BuffBlock", BuffBlock::new); + EffectHandler.getInstance().registerHandler("CallLearnedSkill", CallLearnedSkill::new); EffectHandler.getInstance().registerHandler("CallParty", CallParty::new); EffectHandler.getInstance().registerHandler("CallPc", CallPc::new); EffectHandler.getInstance().registerHandler("CallRandomSkill", CallRandomSkill::new); diff --git a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/handlers/effecthandlers/CallLearnedSkill.java b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/handlers/effecthandlers/CallLearnedSkill.java new file mode 100644 index 0000000000..c1064deb05 --- /dev/null +++ b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/handlers/effecthandlers/CallLearnedSkill.java @@ -0,0 +1,54 @@ +/* + * This file is part of the L2J Mobius project. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package handlers.effecthandlers; + +import com.l2jmobius.gameserver.model.StatsSet; +import com.l2jmobius.gameserver.model.actor.L2Character; +import com.l2jmobius.gameserver.model.effects.AbstractEffect; +import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance; +import com.l2jmobius.gameserver.model.skills.Skill; +import com.l2jmobius.gameserver.model.skills.SkillCaster; + +/** + * Call Learned Skill by Level effect implementation. + * @author Kazumi + */ +public final class CallLearnedSkill extends AbstractEffect +{ + private final int _skillId; + + public CallLearnedSkill(StatsSet params) + { + _skillId = params.getInt("skillId"); + } + + @Override + public boolean isInstant() + { + return true; + } + + @Override + public void instant(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item) + { + final Skill knownSkill = effector.getKnownSkill(_skillId); + if (knownSkill != null) + { + SkillCaster.triggerCast(effector, effected, knownSkill); + } + } +} \ No newline at end of file diff --git a/L2J_Mobius_3.0_Helios/dist/game/data/stats/skills/documentation.txt b/L2J_Mobius_3.0_Helios/dist/game/data/stats/skills/documentation.txt index 7cdb106dcd..5ef6097f78 100644 --- a/L2J_Mobius_3.0_Helios/dist/game/data/stats/skills/documentation.txt +++ b/L2J_Mobius_3.0_Helios/dist/game/data/stats/skills/documentation.txt @@ -35,6 +35,7 @@ BonusDropRate: Bonus chance for dropping items. (l2jmobius) BonusSpoilRate: Bonus chance for acquiring spoil items. (l2jmobius) Breath: Underwater breathing stat. BuffBlock: Blocks target from receiving buffs. +CallLearnedSkill: Calls existing learned skill. (l2jmobius) CallParty: Recalls whole party. CallPc: Recalls a Player. CallRandomSkill: Triggers a random skill. (l2jmobius) diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/handlers/EffectMasterHandler.java b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/handlers/EffectMasterHandler.java index a2a4ef6729..0489b248ce 100644 --- a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/handlers/EffectMasterHandler.java +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/handlers/EffectMasterHandler.java @@ -66,6 +66,7 @@ public final class EffectMasterHandler EffectHandler.getInstance().registerHandler("BonusSpoilRate", BonusSpoilRate::new); EffectHandler.getInstance().registerHandler("Breath", Breath::new); EffectHandler.getInstance().registerHandler("BuffBlock", BuffBlock::new); + EffectHandler.getInstance().registerHandler("CallLearnedSkill", CallLearnedSkill::new); EffectHandler.getInstance().registerHandler("CallParty", CallParty::new); EffectHandler.getInstance().registerHandler("CallPc", CallPc::new); EffectHandler.getInstance().registerHandler("CallRandomSkill", CallRandomSkill::new); diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/handlers/effecthandlers/CallLearnedSkill.java b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/handlers/effecthandlers/CallLearnedSkill.java new file mode 100644 index 0000000000..c1064deb05 --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/handlers/effecthandlers/CallLearnedSkill.java @@ -0,0 +1,54 @@ +/* + * This file is part of the L2J Mobius project. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package handlers.effecthandlers; + +import com.l2jmobius.gameserver.model.StatsSet; +import com.l2jmobius.gameserver.model.actor.L2Character; +import com.l2jmobius.gameserver.model.effects.AbstractEffect; +import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance; +import com.l2jmobius.gameserver.model.skills.Skill; +import com.l2jmobius.gameserver.model.skills.SkillCaster; + +/** + * Call Learned Skill by Level effect implementation. + * @author Kazumi + */ +public final class CallLearnedSkill extends AbstractEffect +{ + private final int _skillId; + + public CallLearnedSkill(StatsSet params) + { + _skillId = params.getInt("skillId"); + } + + @Override + public boolean isInstant() + { + return true; + } + + @Override + public void instant(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item) + { + final Skill knownSkill = effector.getKnownSkill(_skillId); + if (knownSkill != null) + { + SkillCaster.triggerCast(effector, effected, knownSkill); + } + } +} \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/stats/skills/documentation.txt b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/stats/skills/documentation.txt index 543cc785f5..80b4a322fd 100644 --- a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/stats/skills/documentation.txt +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/stats/skills/documentation.txt @@ -35,6 +35,7 @@ BonusDropRate: Bonus chance for dropping items. (l2jmobius) BonusSpoilRate: Bonus chance for acquiring spoil items. (l2jmobius) Breath: Underwater breathing stat. BuffBlock: Blocks target from receiving buffs. +CallLearnedSkill: Calls existing learned skill. (l2jmobius) CallParty: Recalls whole party. CallPc: Recalls a Player. CallRandomSkill: Triggers a random skill. (l2jmobius) diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/handlers/EffectMasterHandler.java b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/handlers/EffectMasterHandler.java index d6cf5445b1..648da59264 100644 --- a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/handlers/EffectMasterHandler.java +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/handlers/EffectMasterHandler.java @@ -67,6 +67,7 @@ public final class EffectMasterHandler EffectHandler.getInstance().registerHandler("BonusSpoilRate", BonusSpoilRate::new); EffectHandler.getInstance().registerHandler("Breath", Breath::new); EffectHandler.getInstance().registerHandler("BuffBlock", BuffBlock::new); + EffectHandler.getInstance().registerHandler("CallLearnedSkill", CallLearnedSkill::new); EffectHandler.getInstance().registerHandler("CallParty", CallParty::new); EffectHandler.getInstance().registerHandler("CallPc", CallPc::new); EffectHandler.getInstance().registerHandler("CallRandomSkill", CallRandomSkill::new); diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/handlers/effecthandlers/CallLearnedSkill.java b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/handlers/effecthandlers/CallLearnedSkill.java new file mode 100644 index 0000000000..c1064deb05 --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/handlers/effecthandlers/CallLearnedSkill.java @@ -0,0 +1,54 @@ +/* + * This file is part of the L2J Mobius project. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package handlers.effecthandlers; + +import com.l2jmobius.gameserver.model.StatsSet; +import com.l2jmobius.gameserver.model.actor.L2Character; +import com.l2jmobius.gameserver.model.effects.AbstractEffect; +import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance; +import com.l2jmobius.gameserver.model.skills.Skill; +import com.l2jmobius.gameserver.model.skills.SkillCaster; + +/** + * Call Learned Skill by Level effect implementation. + * @author Kazumi + */ +public final class CallLearnedSkill extends AbstractEffect +{ + private final int _skillId; + + public CallLearnedSkill(StatsSet params) + { + _skillId = params.getInt("skillId"); + } + + @Override + public boolean isInstant() + { + return true; + } + + @Override + public void instant(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item) + { + final Skill knownSkill = effector.getKnownSkill(_skillId); + if (knownSkill != null) + { + SkillCaster.triggerCast(effector, effected, knownSkill); + } + } +} \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/stats/skills/19400-19499.xml b/L2J_Mobius_5.0_Salvation/dist/game/data/stats/skills/19400-19499.xml index 42861512c2..599b7b444b 100644 --- a/L2J_Mobius_5.0_Salvation/dist/game/data/stats/skills/19400-19499.xml +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/stats/skills/19400-19499.xml @@ -605,38 +605,31 @@ icon.skill19421 A1 + 1000 + 696 140 + 1500 + 4000 + 300 2000 - 4300 - -1 - MULTI_BUFF - 1 - 1200 - 5 - SELF - 1000 + 97 + 1 SELF PARTY FRIEND - 22 - 1 - 103 + 1000 - + 11517 - 0 - + 11518 - 0 - + 11519 - 0 - + 11520 - 0 @@ -644,33 +637,28 @@ icon.skill19422 A1 + 1000 + 696 140 + 1500 + 4000 + 300 2000 - 4300 - -1 - MULTI_BUFF - 1 - 1200 - 5 - 1000 + 97 + 1 SELF PARTY FRIEND - 22 - 1 - 101 + 1000 - + 11529 - 1 - + 11530 - 1 - + 11532 - 1 @@ -678,33 +666,28 @@ icon.skill19423 A1 + 1000 + 696 140 + 1500 + 4000 + 300 2000 - 4300 - -1 - MULTI_BUFF - 1 - 1200 - 5 - 1000 + 97 + 1 SELF PARTY FRIEND - 22 - 1 - 101 + 1000 - + 11607 - 1 - + 11608 - 1 - + 11609 - 1 @@ -712,33 +695,28 @@ icon.skill19424 A1 + 1000 + 696 140 + 1500 + 4000 + 300 2000 - 4300 - -1 - MULTI_BUFF - 1 - 1200 - 5 - 1000 + 97 + 1 SELF PARTY FRIEND - 22 - 1 - 101 + 1000 - + 11610 - 1 - + 11611 - 1 - + 11612 - 1 @@ -746,33 +724,26 @@ icon.skill19425 A1 - 0 + 1000 + 696 + 140 + 1500 + 4000 + 300 2000 - 4300 - -1 - MULTI_BUFF - 1 - 1200 - 5 - 1000 - SELF - PARTY - FRIEND - 22 - 1 - 99 + 97 + 1 + TARGET + SINGLE - + 11565 - 1 - + 11566 - 1 - + 11567 - 1 @@ -793,72 +764,36 @@ true - + icon.skill19433 A1 - 0 - 2000 - 4300 - -1 - MULTI_BUFF - 1 - 1200 - 5 - SELF - 1000 - SELF - PARTY - FRIEND - 22 - 1 - 99 - - - 19444 - 1 - - - 19445 - 1 - - - 19446 - 1 - - - icon.skill19433 + icon.skill19438 A1 - 0 + 1000 + 696 + 140 + 1500 + 4000 + 300 2000 - 4300 - -1 - MULTI_BUFF - 1 - 1200 - 5 - SELF - 1000 + 97 + 1 SELF PARTY FRIEND - 22 - 1 - 99 + 1000 - + 19444 - 1 - + 19445 - 1 - + 19446 - 1 diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/stats/skills/documentation.txt b/L2J_Mobius_5.0_Salvation/dist/game/data/stats/skills/documentation.txt index 987fb11cd6..814e34df28 100644 --- a/L2J_Mobius_5.0_Salvation/dist/game/data/stats/skills/documentation.txt +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/stats/skills/documentation.txt @@ -36,6 +36,7 @@ BonusDropRate: Bonus chance for dropping items. (l2jmobius) BonusSpoilRate: Bonus chance for acquiring spoil items. (l2jmobius) Breath: Underwater breathing stat. BuffBlock: Blocks target from receiving buffs. +CallLearnedSkill: Calls existing learned skill. (l2jmobius) CallParty: Recalls whole party. CallPc: Recalls a Player. CallRandomSkill: Triggers a random skill. (l2jmobius) diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/handlers/EffectMasterHandler.java b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/handlers/EffectMasterHandler.java index 9078bed635..e3418398f8 100644 --- a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/handlers/EffectMasterHandler.java +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/handlers/EffectMasterHandler.java @@ -68,6 +68,7 @@ public final class EffectMasterHandler EffectHandler.getInstance().registerHandler("BonusSpoilRate", BonusSpoilRate::new); EffectHandler.getInstance().registerHandler("Breath", Breath::new); EffectHandler.getInstance().registerHandler("BuffBlock", BuffBlock::new); + EffectHandler.getInstance().registerHandler("CallLearnedSkill", CallLearnedSkill::new); EffectHandler.getInstance().registerHandler("CallParty", CallParty::new); EffectHandler.getInstance().registerHandler("CallPc", CallPc::new); EffectHandler.getInstance().registerHandler("CallRandomSkill", CallRandomSkill::new); diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/handlers/effecthandlers/CallLearnedSkill.java b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/handlers/effecthandlers/CallLearnedSkill.java new file mode 100644 index 0000000000..c1064deb05 --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/handlers/effecthandlers/CallLearnedSkill.java @@ -0,0 +1,54 @@ +/* + * This file is part of the L2J Mobius project. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package handlers.effecthandlers; + +import com.l2jmobius.gameserver.model.StatsSet; +import com.l2jmobius.gameserver.model.actor.L2Character; +import com.l2jmobius.gameserver.model.effects.AbstractEffect; +import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance; +import com.l2jmobius.gameserver.model.skills.Skill; +import com.l2jmobius.gameserver.model.skills.SkillCaster; + +/** + * Call Learned Skill by Level effect implementation. + * @author Kazumi + */ +public final class CallLearnedSkill extends AbstractEffect +{ + private final int _skillId; + + public CallLearnedSkill(StatsSet params) + { + _skillId = params.getInt("skillId"); + } + + @Override + public boolean isInstant() + { + return true; + } + + @Override + public void instant(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item) + { + final Skill knownSkill = effector.getKnownSkill(_skillId); + if (knownSkill != null) + { + SkillCaster.triggerCast(effector, effected, knownSkill); + } + } +} \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/stats/skills/19400-19499.xml b/L2J_Mobius_5.5_EtinasFate/dist/game/data/stats/skills/19400-19499.xml index 5d0a069d0c..42547f3419 100644 --- a/L2J_Mobius_5.5_EtinasFate/dist/game/data/stats/skills/19400-19499.xml +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/stats/skills/19400-19499.xml @@ -605,38 +605,31 @@ icon.skill19421 A1 + 1000 + 696 140 + 1500 + 4000 + 300 2000 - 4300 - -1 - MULTI_BUFF - 1 - 1200 - 5 - SELF - 1000 + 97 + 1 SELF PARTY FRIEND - 22 - 1 - 103 + 1000 - + 11517 - 0 - + 11518 - 0 - + 11519 - 0 - + 11520 - 0 @@ -644,33 +637,28 @@ icon.skill19422 A1 + 1000 + 696 140 + 1500 + 4000 + 300 2000 - 4300 - -1 - MULTI_BUFF - 1 - 1200 - 5 - 1000 + 97 + 1 SELF PARTY FRIEND - 22 - 1 - 101 + 1000 - + 11529 - 1 - + 11530 - 1 - + 11532 - 1 @@ -678,33 +666,28 @@ icon.skill19423 A1 + 1000 + 696 140 + 1500 + 4000 + 300 2000 - 4300 - -1 - MULTI_BUFF - 1 - 1200 - 5 - 1000 + 97 + 1 SELF PARTY FRIEND - 22 - 1 - 101 + 1000 - + 11607 - 1 - + 11608 - 1 - + 11609 - 1 @@ -712,33 +695,28 @@ icon.skill19424 A1 + 1000 + 696 140 + 1500 + 4000 + 300 2000 - 4300 - -1 - MULTI_BUFF - 1 - 1200 - 5 - 1000 + 97 + 1 SELF PARTY FRIEND - 22 - 1 - 101 + 1000 - + 11610 - 1 - + 11611 - 1 - + 11612 - 1 @@ -746,33 +724,26 @@ icon.skill19425 A1 - 0 + 1000 + 696 + 140 + 1500 + 4000 + 300 2000 - 4300 - -1 - MULTI_BUFF - 1 - 1200 - 5 - 1000 - SELF - PARTY - FRIEND - 22 - 1 - 99 + 97 + 1 + TARGET + SINGLE - + 11565 - 1 - + 11566 - 1 - + 11567 - 1 @@ -782,6 +753,7 @@ A1 + icon.skill19431 A1 @@ -792,76 +764,41 @@ true - + icon.skill19433 A1 - 0 - 2000 - 4300 - -1 - MULTI_BUFF - 1 - 1200 - 5 - SELF - 1000 - SELF - PARTY - FRIEND - 22 - 1 - 99 - - - 19444 - 1 - - - 19445 - 1 - - - 19446 - 1 - - - icon.skill19433 + icon.skill19438 A1 - 0 + 1000 + 696 + 140 + 1500 + 4000 + 300 2000 - 4300 - -1 - MULTI_BUFF - 1 - 1200 - 5 - SELF - 1000 + 97 + 1 SELF PARTY FRIEND - 22 - 1 - 99 + 1000 - + 19444 - 1 - + 19445 - 1 - + 19446 - 1 + icon.skill19439 30 1000 @@ -927,6 +864,7 @@ A1 + icon.skill19444 BUFF_SPECIAL_AURA 150 @@ -972,6 +910,7 @@ + icon.skill19445 ENCHANTER_MOD 150 @@ -1022,6 +961,7 @@ + icon.skill19446 SYNERGY_IS 150 diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/stats/skills/documentation.txt b/L2J_Mobius_5.5_EtinasFate/dist/game/data/stats/skills/documentation.txt index 8fee471c5c..960eaeb54e 100644 --- a/L2J_Mobius_5.5_EtinasFate/dist/game/data/stats/skills/documentation.txt +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/stats/skills/documentation.txt @@ -37,6 +37,7 @@ BonusDropRate: Bonus chance for dropping items. (l2jmobius) BonusSpoilRate: Bonus chance for acquiring spoil items. (l2jmobius) Breath: Underwater breathing stat. BuffBlock: Blocks target from receiving buffs. +CallLearnedSkill: Calls existing learned skill. (l2jmobius) CallParty: Recalls whole party. CallPc: Recalls a Player. CallRandomSkill: Triggers a random skill. (l2jmobius) diff --git a/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/EffectMasterHandler.java b/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/EffectMasterHandler.java index d50a7bd994..2b45106510 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/EffectMasterHandler.java +++ b/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/EffectMasterHandler.java @@ -65,6 +65,7 @@ public final class EffectMasterHandler EffectHandler.getInstance().registerHandler("BonusSpoilRate", BonusSpoilRate::new); EffectHandler.getInstance().registerHandler("Breath", Breath::new); EffectHandler.getInstance().registerHandler("BuffBlock", BuffBlock::new); + EffectHandler.getInstance().registerHandler("CallLearnedSkill", CallLearnedSkill::new); EffectHandler.getInstance().registerHandler("CallParty", CallParty::new); EffectHandler.getInstance().registerHandler("CallPc", CallPc::new); EffectHandler.getInstance().registerHandler("CallRandomSkill", CallRandomSkill::new); diff --git a/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/effecthandlers/CallLearnedSkill.java b/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/effecthandlers/CallLearnedSkill.java new file mode 100644 index 0000000000..c1064deb05 --- /dev/null +++ b/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/effecthandlers/CallLearnedSkill.java @@ -0,0 +1,54 @@ +/* + * This file is part of the L2J Mobius project. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package handlers.effecthandlers; + +import com.l2jmobius.gameserver.model.StatsSet; +import com.l2jmobius.gameserver.model.actor.L2Character; +import com.l2jmobius.gameserver.model.effects.AbstractEffect; +import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance; +import com.l2jmobius.gameserver.model.skills.Skill; +import com.l2jmobius.gameserver.model.skills.SkillCaster; + +/** + * Call Learned Skill by Level effect implementation. + * @author Kazumi + */ +public final class CallLearnedSkill extends AbstractEffect +{ + private final int _skillId; + + public CallLearnedSkill(StatsSet params) + { + _skillId = params.getInt("skillId"); + } + + @Override + public boolean isInstant() + { + return true; + } + + @Override + public void instant(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item) + { + final Skill knownSkill = effector.getKnownSkill(_skillId); + if (knownSkill != null) + { + SkillCaster.triggerCast(effector, effected, knownSkill); + } + } +} \ No newline at end of file diff --git a/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/stats/skills/documentation.txt b/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/stats/skills/documentation.txt index b514f07f33..2f1f3273ad 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/stats/skills/documentation.txt +++ b/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/stats/skills/documentation.txt @@ -34,6 +34,7 @@ BonusDropRate: Bonus chance for dropping items. (l2jmobius) BonusSpoilRate: Bonus chance for acquiring spoil items. (l2jmobius) Breath: Underwater breathing stat. BuffBlock: Blocks target from receiving buffs. +CallLearnedSkill: Calls existing learned skill. (l2jmobius) CallParty: Recalls whole party. CallPc: Recalls a Player. CallRandomSkill: Triggers a random skill. (l2jmobius) diff --git a/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/handlers/EffectMasterHandler.java b/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/handlers/EffectMasterHandler.java index d50a7bd994..2b45106510 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/handlers/EffectMasterHandler.java +++ b/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/handlers/EffectMasterHandler.java @@ -65,6 +65,7 @@ public final class EffectMasterHandler EffectHandler.getInstance().registerHandler("BonusSpoilRate", BonusSpoilRate::new); EffectHandler.getInstance().registerHandler("Breath", Breath::new); EffectHandler.getInstance().registerHandler("BuffBlock", BuffBlock::new); + EffectHandler.getInstance().registerHandler("CallLearnedSkill", CallLearnedSkill::new); EffectHandler.getInstance().registerHandler("CallParty", CallParty::new); EffectHandler.getInstance().registerHandler("CallPc", CallPc::new); EffectHandler.getInstance().registerHandler("CallRandomSkill", CallRandomSkill::new); diff --git a/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/handlers/effecthandlers/CallLearnedSkill.java b/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/handlers/effecthandlers/CallLearnedSkill.java new file mode 100644 index 0000000000..c1064deb05 --- /dev/null +++ b/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/handlers/effecthandlers/CallLearnedSkill.java @@ -0,0 +1,54 @@ +/* + * This file is part of the L2J Mobius project. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package handlers.effecthandlers; + +import com.l2jmobius.gameserver.model.StatsSet; +import com.l2jmobius.gameserver.model.actor.L2Character; +import com.l2jmobius.gameserver.model.effects.AbstractEffect; +import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance; +import com.l2jmobius.gameserver.model.skills.Skill; +import com.l2jmobius.gameserver.model.skills.SkillCaster; + +/** + * Call Learned Skill by Level effect implementation. + * @author Kazumi + */ +public final class CallLearnedSkill extends AbstractEffect +{ + private final int _skillId; + + public CallLearnedSkill(StatsSet params) + { + _skillId = params.getInt("skillId"); + } + + @Override + public boolean isInstant() + { + return true; + } + + @Override + public void instant(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item) + { + final Skill knownSkill = effector.getKnownSkill(_skillId); + if (knownSkill != null) + { + SkillCaster.triggerCast(effector, effected, knownSkill); + } + } +} \ No newline at end of file diff --git a/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/stats/skills/documentation.txt b/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/stats/skills/documentation.txt index b514f07f33..2f1f3273ad 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/stats/skills/documentation.txt +++ b/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/stats/skills/documentation.txt @@ -34,6 +34,7 @@ BonusDropRate: Bonus chance for dropping items. (l2jmobius) BonusSpoilRate: Bonus chance for acquiring spoil items. (l2jmobius) Breath: Underwater breathing stat. BuffBlock: Blocks target from receiving buffs. +CallLearnedSkill: Calls existing learned skill. (l2jmobius) CallParty: Recalls whole party. CallPc: Recalls a Player. CallRandomSkill: Triggers a random skill. (l2jmobius) diff --git a/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/handlers/EffectMasterHandler.java b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/handlers/EffectMasterHandler.java index c1fbbe1ec4..62270193a1 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/handlers/EffectMasterHandler.java +++ b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/handlers/EffectMasterHandler.java @@ -66,6 +66,7 @@ public final class EffectMasterHandler EffectHandler.getInstance().registerHandler("BonusSpoilRate", BonusSpoilRate::new); EffectHandler.getInstance().registerHandler("Breath", Breath::new); EffectHandler.getInstance().registerHandler("BuffBlock", BuffBlock::new); + EffectHandler.getInstance().registerHandler("CallLearnedSkill", CallLearnedSkill::new); EffectHandler.getInstance().registerHandler("CallParty", CallParty::new); EffectHandler.getInstance().registerHandler("CallPc", CallPc::new); EffectHandler.getInstance().registerHandler("CallRandomSkill", CallRandomSkill::new); diff --git a/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/handlers/effecthandlers/CallLearnedSkill.java b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/handlers/effecthandlers/CallLearnedSkill.java new file mode 100644 index 0000000000..c1064deb05 --- /dev/null +++ b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/handlers/effecthandlers/CallLearnedSkill.java @@ -0,0 +1,54 @@ +/* + * This file is part of the L2J Mobius project. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package handlers.effecthandlers; + +import com.l2jmobius.gameserver.model.StatsSet; +import com.l2jmobius.gameserver.model.actor.L2Character; +import com.l2jmobius.gameserver.model.effects.AbstractEffect; +import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance; +import com.l2jmobius.gameserver.model.skills.Skill; +import com.l2jmobius.gameserver.model.skills.SkillCaster; + +/** + * Call Learned Skill by Level effect implementation. + * @author Kazumi + */ +public final class CallLearnedSkill extends AbstractEffect +{ + private final int _skillId; + + public CallLearnedSkill(StatsSet params) + { + _skillId = params.getInt("skillId"); + } + + @Override + public boolean isInstant() + { + return true; + } + + @Override + public void instant(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item) + { + final Skill knownSkill = effector.getKnownSkill(_skillId); + if (knownSkill != null) + { + SkillCaster.triggerCast(effector, effected, knownSkill); + } + } +} \ No newline at end of file diff --git a/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/stats/skills/documentation.txt b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/stats/skills/documentation.txt index 8de832a0ad..ad7dc84386 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/stats/skills/documentation.txt +++ b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/stats/skills/documentation.txt @@ -35,6 +35,7 @@ BonusDropRate: Bonus chance for dropping items. (l2jmobius) BonusSpoilRate: Bonus chance for acquiring spoil items. (l2jmobius) Breath: Underwater breathing stat. BuffBlock: Blocks target from receiving buffs. +CallLearnedSkill: Calls existing learned skill. (l2jmobius) CallParty: Recalls whole party. CallPc: Recalls a Player. CallRandomSkill: Triggers a random skill. (l2jmobius) diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/handlers/EffectMasterHandler.java b/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/handlers/EffectMasterHandler.java index 481455c8b5..3acea68f52 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/handlers/EffectMasterHandler.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/handlers/EffectMasterHandler.java @@ -67,6 +67,7 @@ public final class EffectMasterHandler EffectHandler.getInstance().registerHandler("BonusSpoilRate", BonusSpoilRate::new); EffectHandler.getInstance().registerHandler("Breath", Breath::new); EffectHandler.getInstance().registerHandler("BuffBlock", BuffBlock::new); + EffectHandler.getInstance().registerHandler("CallLearnedSkill", CallLearnedSkill::new); EffectHandler.getInstance().registerHandler("CallParty", CallParty::new); EffectHandler.getInstance().registerHandler("CallPc", CallPc::new); EffectHandler.getInstance().registerHandler("CallRandomSkill", CallRandomSkill::new); diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/handlers/effecthandlers/CallLearnedSkill.java b/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/handlers/effecthandlers/CallLearnedSkill.java new file mode 100644 index 0000000000..c1064deb05 --- /dev/null +++ b/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/handlers/effecthandlers/CallLearnedSkill.java @@ -0,0 +1,54 @@ +/* + * This file is part of the L2J Mobius project. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package handlers.effecthandlers; + +import com.l2jmobius.gameserver.model.StatsSet; +import com.l2jmobius.gameserver.model.actor.L2Character; +import com.l2jmobius.gameserver.model.effects.AbstractEffect; +import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance; +import com.l2jmobius.gameserver.model.skills.Skill; +import com.l2jmobius.gameserver.model.skills.SkillCaster; + +/** + * Call Learned Skill by Level effect implementation. + * @author Kazumi + */ +public final class CallLearnedSkill extends AbstractEffect +{ + private final int _skillId; + + public CallLearnedSkill(StatsSet params) + { + _skillId = params.getInt("skillId"); + } + + @Override + public boolean isInstant() + { + return true; + } + + @Override + public void instant(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item) + { + final Skill knownSkill = effector.getKnownSkill(_skillId); + if (knownSkill != null) + { + SkillCaster.triggerCast(effector, effected, knownSkill); + } + } +} \ No newline at end of file diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/stats/skills/documentation.txt b/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/stats/skills/documentation.txt index f873bb26fb..0572b374f7 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/stats/skills/documentation.txt +++ b/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/stats/skills/documentation.txt @@ -36,6 +36,7 @@ BonusDropRate: Bonus chance for dropping items. (l2jmobius) BonusSpoilRate: Bonus chance for acquiring spoil items. (l2jmobius) Breath: Underwater breathing stat. BuffBlock: Blocks target from receiving buffs. +CallLearnedSkill: Calls existing learned skill. (l2jmobius) CallParty: Recalls whole party. CallPc: Recalls a Player. CallRandomSkill: Triggers a random skill. (l2jmobius)