From 4f6849973abf172d697ea4ae4780a031ed28130c Mon Sep 17 00:00:00 2001 From: MobiusDevelopment <8391001+MobiusDevelopment@users.noreply.github.com> Date: Sun, 21 Nov 2021 13:26:59 +0000 Subject: [PATCH] Addition of OpStrider skill condition. Contributed by nasseka. --- .../handlers/SkillConditionMasterHandler.java | 1 + .../OpStriderSkillCondition.java | 40 +++++++++++++++++++ .../game/data/stats/skills/00300-00399.xml | 6 +++ .../handlers/SkillConditionMasterHandler.java | 1 + .../OpStriderSkillCondition.java | 40 +++++++++++++++++++ .../game/data/stats/skills/00300-00399.xml | 6 +++ .../handlers/SkillConditionMasterHandler.java | 1 + .../OpStriderSkillCondition.java | 40 +++++++++++++++++++ .../game/data/stats/skills/00300-00399.xml | 6 +++ .../handlers/SkillConditionMasterHandler.java | 1 + .../OpStriderSkillCondition.java | 40 +++++++++++++++++++ .../game/data/stats/skills/00300-00399.xml | 6 +++ .../handlers/SkillConditionMasterHandler.java | 1 + .../OpStriderSkillCondition.java | 40 +++++++++++++++++++ .../game/data/stats/skills/00300-00399.xml | 6 +++ .../handlers/SkillConditionMasterHandler.java | 1 + .../OpStriderSkillCondition.java | 40 +++++++++++++++++++ .../game/data/stats/skills/00300-00399.xml | 6 +++ .../handlers/SkillConditionMasterHandler.java | 1 + .../OpStriderSkillCondition.java | 40 +++++++++++++++++++ .../game/data/stats/skills/00300-00399.xml | 6 +++ .../handlers/SkillConditionMasterHandler.java | 1 + .../OpStriderSkillCondition.java | 40 +++++++++++++++++++ .../game/data/stats/skills/00300-00399.xml | 6 +++ .../handlers/SkillConditionMasterHandler.java | 1 + .../OpStriderSkillCondition.java | 40 +++++++++++++++++++ .../game/data/stats/skills/00300-00399.xml | 6 +++ .../handlers/SkillConditionMasterHandler.java | 1 + .../OpStriderSkillCondition.java | 40 +++++++++++++++++++ .../game/data/stats/skills/00300-00399.xml | 6 +++ .../handlers/SkillConditionMasterHandler.java | 1 + .../OpStriderSkillCondition.java | 40 +++++++++++++++++++ .../game/data/stats/skills/00300-00399.xml | 6 +++ .../handlers/SkillConditionMasterHandler.java | 1 + .../OpStriderSkillCondition.java | 40 +++++++++++++++++++ .../game/data/stats/skills/00300-00399.xml | 9 +++++ .../handlers/SkillConditionMasterHandler.java | 1 + .../OpStriderSkillCondition.java | 40 +++++++++++++++++++ .../game/data/stats/skills/00300-00399.xml | 9 +++++ .../handlers/SkillConditionMasterHandler.java | 1 + .../OpStriderSkillCondition.java | 40 +++++++++++++++++++ .../game/data/stats/skills/00300-00399.xml | 9 +++++ .../handlers/SkillConditionMasterHandler.java | 1 + .../OpStriderSkillCondition.java | 40 +++++++++++++++++++ .../game/data/stats/skills/00300-00399.xml | 9 +++++ .../handlers/SkillConditionMasterHandler.java | 1 + .../OpStriderSkillCondition.java | 40 +++++++++++++++++++ .../game/data/stats/skills/00300-00399.xml | 9 +++++ .../handlers/SkillConditionMasterHandler.java | 1 + .../OpStriderSkillCondition.java | 40 +++++++++++++++++++ .../game/data/stats/skills/00300-00399.xml | 9 +++++ .../handlers/SkillConditionMasterHandler.java | 1 + .../OpStriderSkillCondition.java | 40 +++++++++++++++++++ .../game/data/stats/skills/00300-00399.xml | 6 +++ .../handlers/SkillConditionMasterHandler.java | 1 + .../OpStriderSkillCondition.java | 40 +++++++++++++++++++ .../game/data/stats/skills/00300-00399.xml | 9 +++++ .../handlers/SkillConditionMasterHandler.java | 1 + .../OpStriderSkillCondition.java | 40 +++++++++++++++++++ .../game/data/stats/skills/00300-00399.xml | 9 +++++ .../handlers/SkillConditionMasterHandler.java | 1 + .../OpStriderSkillCondition.java | 40 +++++++++++++++++++ .../game/data/stats/skills/00300-00399.xml | 9 +++++ 63 files changed, 1014 insertions(+) create mode 100644 L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/handlers/skillconditionhandlers/OpStriderSkillCondition.java create mode 100644 L2J_Mobius_02.5_Underground/dist/game/data/scripts/handlers/skillconditionhandlers/OpStriderSkillCondition.java create mode 100644 L2J_Mobius_03.0_Helios/dist/game/data/scripts/handlers/skillconditionhandlers/OpStriderSkillCondition.java create mode 100644 L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/handlers/skillconditionhandlers/OpStriderSkillCondition.java create mode 100644 L2J_Mobius_05.0_Salvation/dist/game/data/scripts/handlers/skillconditionhandlers/OpStriderSkillCondition.java create mode 100644 L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/handlers/skillconditionhandlers/OpStriderSkillCondition.java create mode 100644 L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/handlers/skillconditionhandlers/OpStriderSkillCondition.java create mode 100644 L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/handlers/skillconditionhandlers/OpStriderSkillCondition.java create mode 100644 L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/handlers/skillconditionhandlers/OpStriderSkillCondition.java create mode 100644 L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/handlers/skillconditionhandlers/OpStriderSkillCondition.java create mode 100644 L2J_Mobius_10.0_MasterClass/dist/game/data/scripts/handlers/skillconditionhandlers/OpStriderSkillCondition.java create mode 100644 L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/skillconditionhandlers/OpStriderSkillCondition.java create mode 100644 L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/handlers/skillconditionhandlers/OpStriderSkillCondition.java create mode 100644 L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/handlers/skillconditionhandlers/OpStriderSkillCondition.java create mode 100644 L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/handlers/skillconditionhandlers/OpStriderSkillCondition.java create mode 100644 L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/data/scripts/handlers/skillconditionhandlers/OpStriderSkillCondition.java create mode 100644 L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/handlers/skillconditionhandlers/OpStriderSkillCondition.java create mode 100644 L2J_Mobius_Classic_Interlude/dist/game/data/scripts/handlers/skillconditionhandlers/OpStriderSkillCondition.java create mode 100644 L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/handlers/skillconditionhandlers/OpStriderSkillCondition.java create mode 100644 L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/handlers/skillconditionhandlers/OpStriderSkillCondition.java create mode 100644 L2J_Mobius_Essence_6.0_BattleChronicle/dist/game/data/scripts/handlers/skillconditionhandlers/OpStriderSkillCondition.java diff --git a/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/handlers/SkillConditionMasterHandler.java b/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/handlers/SkillConditionMasterHandler.java index b4b30f7fe5..3cfb00a470 100644 --- a/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/handlers/SkillConditionMasterHandler.java +++ b/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/handlers/SkillConditionMasterHandler.java @@ -116,6 +116,7 @@ public class SkillConditionMasterHandler SkillConditionHandler.getInstance().registerHandler("OpSkillAcquire", OpSkillAcquireSkillCondition::new); SkillConditionHandler.getInstance().registerHandler("OpSocialClass", OpSocialClassSkillCondition::new); SkillConditionHandler.getInstance().registerHandler("OpSoulMax", OpSoulMaxSkillCondition::new); + SkillConditionHandler.getInstance().registerHandler("OpStrider", OpStriderSkillCondition::new); SkillConditionHandler.getInstance().registerHandler("OpSubjob", OpSubjobSkillCondition::new); SkillConditionHandler.getInstance().registerHandler("OpSweeper", OpSweeperSkillCondition::new); SkillConditionHandler.getInstance().registerHandler("OpTargetAllItemType", OpTargetAllItemTypeSkillCondition::new); diff --git a/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/handlers/skillconditionhandlers/OpStriderSkillCondition.java b/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/handlers/skillconditionhandlers/OpStriderSkillCondition.java new file mode 100644 index 0000000000..19cefcc2cc --- /dev/null +++ b/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/handlers/skillconditionhandlers/OpStriderSkillCondition.java @@ -0,0 +1,40 @@ +/* + * 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.skillconditionhandlers; + +import org.l2jmobius.gameserver.enums.MountType; +import org.l2jmobius.gameserver.model.StatSet; +import org.l2jmobius.gameserver.model.WorldObject; +import org.l2jmobius.gameserver.model.actor.Creature; +import org.l2jmobius.gameserver.model.skill.ISkillCondition; +import org.l2jmobius.gameserver.model.skill.Skill; + +/** + * @author NasSeKa + */ +public class OpStriderSkillCondition implements ISkillCondition +{ + public OpStriderSkillCondition(StatSet params) + { + } + + @Override + public boolean canUse(Creature caster, Skill skill, WorldObject target) + { + return caster.isPlayer() && (caster.getActingPlayer().getMountType() == MountType.STRIDER); + } +} \ No newline at end of file diff --git a/L2J_Mobius_01.0_Ertheia/dist/game/data/stats/skills/00300-00399.xml b/L2J_Mobius_01.0_Ertheia/dist/game/data/stats/skills/00300-00399.xml index f67654cd62..637fe36d8b 100644 --- a/L2J_Mobius_01.0_Ertheia/dist/game/data/stats/skills/00300-00399.xml +++ b/L2J_Mobius_01.0_Ertheia/dist/game/data/stats/skills/00300-00399.xml @@ -1228,6 +1228,9 @@ + + + 15005 @@ -1279,6 +1282,9 @@ -1 SELF SINGLE + + + 7000 diff --git a/L2J_Mobius_02.5_Underground/dist/game/data/scripts/handlers/SkillConditionMasterHandler.java b/L2J_Mobius_02.5_Underground/dist/game/data/scripts/handlers/SkillConditionMasterHandler.java index b4b30f7fe5..3cfb00a470 100644 --- a/L2J_Mobius_02.5_Underground/dist/game/data/scripts/handlers/SkillConditionMasterHandler.java +++ b/L2J_Mobius_02.5_Underground/dist/game/data/scripts/handlers/SkillConditionMasterHandler.java @@ -116,6 +116,7 @@ public class SkillConditionMasterHandler SkillConditionHandler.getInstance().registerHandler("OpSkillAcquire", OpSkillAcquireSkillCondition::new); SkillConditionHandler.getInstance().registerHandler("OpSocialClass", OpSocialClassSkillCondition::new); SkillConditionHandler.getInstance().registerHandler("OpSoulMax", OpSoulMaxSkillCondition::new); + SkillConditionHandler.getInstance().registerHandler("OpStrider", OpStriderSkillCondition::new); SkillConditionHandler.getInstance().registerHandler("OpSubjob", OpSubjobSkillCondition::new); SkillConditionHandler.getInstance().registerHandler("OpSweeper", OpSweeperSkillCondition::new); SkillConditionHandler.getInstance().registerHandler("OpTargetAllItemType", OpTargetAllItemTypeSkillCondition::new); diff --git a/L2J_Mobius_02.5_Underground/dist/game/data/scripts/handlers/skillconditionhandlers/OpStriderSkillCondition.java b/L2J_Mobius_02.5_Underground/dist/game/data/scripts/handlers/skillconditionhandlers/OpStriderSkillCondition.java new file mode 100644 index 0000000000..19cefcc2cc --- /dev/null +++ b/L2J_Mobius_02.5_Underground/dist/game/data/scripts/handlers/skillconditionhandlers/OpStriderSkillCondition.java @@ -0,0 +1,40 @@ +/* + * 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.skillconditionhandlers; + +import org.l2jmobius.gameserver.enums.MountType; +import org.l2jmobius.gameserver.model.StatSet; +import org.l2jmobius.gameserver.model.WorldObject; +import org.l2jmobius.gameserver.model.actor.Creature; +import org.l2jmobius.gameserver.model.skill.ISkillCondition; +import org.l2jmobius.gameserver.model.skill.Skill; + +/** + * @author NasSeKa + */ +public class OpStriderSkillCondition implements ISkillCondition +{ + public OpStriderSkillCondition(StatSet params) + { + } + + @Override + public boolean canUse(Creature caster, Skill skill, WorldObject target) + { + return caster.isPlayer() && (caster.getActingPlayer().getMountType() == MountType.STRIDER); + } +} \ No newline at end of file diff --git a/L2J_Mobius_02.5_Underground/dist/game/data/stats/skills/00300-00399.xml b/L2J_Mobius_02.5_Underground/dist/game/data/stats/skills/00300-00399.xml index fb619f8713..09e34656f5 100644 --- a/L2J_Mobius_02.5_Underground/dist/game/data/stats/skills/00300-00399.xml +++ b/L2J_Mobius_02.5_Underground/dist/game/data/stats/skills/00300-00399.xml @@ -1228,6 +1228,9 @@ + + + 15005 @@ -1279,6 +1282,9 @@ -1 SELF SINGLE + + + 7000 diff --git a/L2J_Mobius_03.0_Helios/dist/game/data/scripts/handlers/SkillConditionMasterHandler.java b/L2J_Mobius_03.0_Helios/dist/game/data/scripts/handlers/SkillConditionMasterHandler.java index b4b30f7fe5..3cfb00a470 100644 --- a/L2J_Mobius_03.0_Helios/dist/game/data/scripts/handlers/SkillConditionMasterHandler.java +++ b/L2J_Mobius_03.0_Helios/dist/game/data/scripts/handlers/SkillConditionMasterHandler.java @@ -116,6 +116,7 @@ public class SkillConditionMasterHandler SkillConditionHandler.getInstance().registerHandler("OpSkillAcquire", OpSkillAcquireSkillCondition::new); SkillConditionHandler.getInstance().registerHandler("OpSocialClass", OpSocialClassSkillCondition::new); SkillConditionHandler.getInstance().registerHandler("OpSoulMax", OpSoulMaxSkillCondition::new); + SkillConditionHandler.getInstance().registerHandler("OpStrider", OpStriderSkillCondition::new); SkillConditionHandler.getInstance().registerHandler("OpSubjob", OpSubjobSkillCondition::new); SkillConditionHandler.getInstance().registerHandler("OpSweeper", OpSweeperSkillCondition::new); SkillConditionHandler.getInstance().registerHandler("OpTargetAllItemType", OpTargetAllItemTypeSkillCondition::new); diff --git a/L2J_Mobius_03.0_Helios/dist/game/data/scripts/handlers/skillconditionhandlers/OpStriderSkillCondition.java b/L2J_Mobius_03.0_Helios/dist/game/data/scripts/handlers/skillconditionhandlers/OpStriderSkillCondition.java new file mode 100644 index 0000000000..19cefcc2cc --- /dev/null +++ b/L2J_Mobius_03.0_Helios/dist/game/data/scripts/handlers/skillconditionhandlers/OpStriderSkillCondition.java @@ -0,0 +1,40 @@ +/* + * 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.skillconditionhandlers; + +import org.l2jmobius.gameserver.enums.MountType; +import org.l2jmobius.gameserver.model.StatSet; +import org.l2jmobius.gameserver.model.WorldObject; +import org.l2jmobius.gameserver.model.actor.Creature; +import org.l2jmobius.gameserver.model.skill.ISkillCondition; +import org.l2jmobius.gameserver.model.skill.Skill; + +/** + * @author NasSeKa + */ +public class OpStriderSkillCondition implements ISkillCondition +{ + public OpStriderSkillCondition(StatSet params) + { + } + + @Override + public boolean canUse(Creature caster, Skill skill, WorldObject target) + { + return caster.isPlayer() && (caster.getActingPlayer().getMountType() == MountType.STRIDER); + } +} \ No newline at end of file diff --git a/L2J_Mobius_03.0_Helios/dist/game/data/stats/skills/00300-00399.xml b/L2J_Mobius_03.0_Helios/dist/game/data/stats/skills/00300-00399.xml index fb619f8713..09e34656f5 100644 --- a/L2J_Mobius_03.0_Helios/dist/game/data/stats/skills/00300-00399.xml +++ b/L2J_Mobius_03.0_Helios/dist/game/data/stats/skills/00300-00399.xml @@ -1228,6 +1228,9 @@ + + + 15005 @@ -1279,6 +1282,9 @@ -1 SELF SINGLE + + + 7000 diff --git a/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/handlers/SkillConditionMasterHandler.java b/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/handlers/SkillConditionMasterHandler.java index b4b30f7fe5..3cfb00a470 100644 --- a/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/handlers/SkillConditionMasterHandler.java +++ b/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/handlers/SkillConditionMasterHandler.java @@ -116,6 +116,7 @@ public class SkillConditionMasterHandler SkillConditionHandler.getInstance().registerHandler("OpSkillAcquire", OpSkillAcquireSkillCondition::new); SkillConditionHandler.getInstance().registerHandler("OpSocialClass", OpSocialClassSkillCondition::new); SkillConditionHandler.getInstance().registerHandler("OpSoulMax", OpSoulMaxSkillCondition::new); + SkillConditionHandler.getInstance().registerHandler("OpStrider", OpStriderSkillCondition::new); SkillConditionHandler.getInstance().registerHandler("OpSubjob", OpSubjobSkillCondition::new); SkillConditionHandler.getInstance().registerHandler("OpSweeper", OpSweeperSkillCondition::new); SkillConditionHandler.getInstance().registerHandler("OpTargetAllItemType", OpTargetAllItemTypeSkillCondition::new); diff --git a/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/handlers/skillconditionhandlers/OpStriderSkillCondition.java b/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/handlers/skillconditionhandlers/OpStriderSkillCondition.java new file mode 100644 index 0000000000..19cefcc2cc --- /dev/null +++ b/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/handlers/skillconditionhandlers/OpStriderSkillCondition.java @@ -0,0 +1,40 @@ +/* + * 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.skillconditionhandlers; + +import org.l2jmobius.gameserver.enums.MountType; +import org.l2jmobius.gameserver.model.StatSet; +import org.l2jmobius.gameserver.model.WorldObject; +import org.l2jmobius.gameserver.model.actor.Creature; +import org.l2jmobius.gameserver.model.skill.ISkillCondition; +import org.l2jmobius.gameserver.model.skill.Skill; + +/** + * @author NasSeKa + */ +public class OpStriderSkillCondition implements ISkillCondition +{ + public OpStriderSkillCondition(StatSet params) + { + } + + @Override + public boolean canUse(Creature caster, Skill skill, WorldObject target) + { + return caster.isPlayer() && (caster.getActingPlayer().getMountType() == MountType.STRIDER); + } +} \ No newline at end of file diff --git a/L2J_Mobius_04.0_GrandCrusade/dist/game/data/stats/skills/00300-00399.xml b/L2J_Mobius_04.0_GrandCrusade/dist/game/data/stats/skills/00300-00399.xml index 3fc848125a..989b7a6fc3 100644 --- a/L2J_Mobius_04.0_GrandCrusade/dist/game/data/stats/skills/00300-00399.xml +++ b/L2J_Mobius_04.0_GrandCrusade/dist/game/data/stats/skills/00300-00399.xml @@ -1228,6 +1228,9 @@ + + + 15005 @@ -1279,6 +1282,9 @@ -1 SELF SINGLE + + + 7000 diff --git a/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/handlers/SkillConditionMasterHandler.java b/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/handlers/SkillConditionMasterHandler.java index b4b30f7fe5..3cfb00a470 100644 --- a/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/handlers/SkillConditionMasterHandler.java +++ b/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/handlers/SkillConditionMasterHandler.java @@ -116,6 +116,7 @@ public class SkillConditionMasterHandler SkillConditionHandler.getInstance().registerHandler("OpSkillAcquire", OpSkillAcquireSkillCondition::new); SkillConditionHandler.getInstance().registerHandler("OpSocialClass", OpSocialClassSkillCondition::new); SkillConditionHandler.getInstance().registerHandler("OpSoulMax", OpSoulMaxSkillCondition::new); + SkillConditionHandler.getInstance().registerHandler("OpStrider", OpStriderSkillCondition::new); SkillConditionHandler.getInstance().registerHandler("OpSubjob", OpSubjobSkillCondition::new); SkillConditionHandler.getInstance().registerHandler("OpSweeper", OpSweeperSkillCondition::new); SkillConditionHandler.getInstance().registerHandler("OpTargetAllItemType", OpTargetAllItemTypeSkillCondition::new); diff --git a/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/handlers/skillconditionhandlers/OpStriderSkillCondition.java b/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/handlers/skillconditionhandlers/OpStriderSkillCondition.java new file mode 100644 index 0000000000..19cefcc2cc --- /dev/null +++ b/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/handlers/skillconditionhandlers/OpStriderSkillCondition.java @@ -0,0 +1,40 @@ +/* + * 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.skillconditionhandlers; + +import org.l2jmobius.gameserver.enums.MountType; +import org.l2jmobius.gameserver.model.StatSet; +import org.l2jmobius.gameserver.model.WorldObject; +import org.l2jmobius.gameserver.model.actor.Creature; +import org.l2jmobius.gameserver.model.skill.ISkillCondition; +import org.l2jmobius.gameserver.model.skill.Skill; + +/** + * @author NasSeKa + */ +public class OpStriderSkillCondition implements ISkillCondition +{ + public OpStriderSkillCondition(StatSet params) + { + } + + @Override + public boolean canUse(Creature caster, Skill skill, WorldObject target) + { + return caster.isPlayer() && (caster.getActingPlayer().getMountType() == MountType.STRIDER); + } +} \ No newline at end of file diff --git a/L2J_Mobius_05.0_Salvation/dist/game/data/stats/skills/00300-00399.xml b/L2J_Mobius_05.0_Salvation/dist/game/data/stats/skills/00300-00399.xml index 203a17ef8f..0035d5e997 100644 --- a/L2J_Mobius_05.0_Salvation/dist/game/data/stats/skills/00300-00399.xml +++ b/L2J_Mobius_05.0_Salvation/dist/game/data/stats/skills/00300-00399.xml @@ -1228,6 +1228,9 @@ + + + 15005 @@ -1279,6 +1282,9 @@ -1 SELF SINGLE + + + 7000 diff --git a/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/handlers/SkillConditionMasterHandler.java b/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/handlers/SkillConditionMasterHandler.java index b4b30f7fe5..3cfb00a470 100644 --- a/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/handlers/SkillConditionMasterHandler.java +++ b/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/handlers/SkillConditionMasterHandler.java @@ -116,6 +116,7 @@ public class SkillConditionMasterHandler SkillConditionHandler.getInstance().registerHandler("OpSkillAcquire", OpSkillAcquireSkillCondition::new); SkillConditionHandler.getInstance().registerHandler("OpSocialClass", OpSocialClassSkillCondition::new); SkillConditionHandler.getInstance().registerHandler("OpSoulMax", OpSoulMaxSkillCondition::new); + SkillConditionHandler.getInstance().registerHandler("OpStrider", OpStriderSkillCondition::new); SkillConditionHandler.getInstance().registerHandler("OpSubjob", OpSubjobSkillCondition::new); SkillConditionHandler.getInstance().registerHandler("OpSweeper", OpSweeperSkillCondition::new); SkillConditionHandler.getInstance().registerHandler("OpTargetAllItemType", OpTargetAllItemTypeSkillCondition::new); diff --git a/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/handlers/skillconditionhandlers/OpStriderSkillCondition.java b/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/handlers/skillconditionhandlers/OpStriderSkillCondition.java new file mode 100644 index 0000000000..19cefcc2cc --- /dev/null +++ b/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/handlers/skillconditionhandlers/OpStriderSkillCondition.java @@ -0,0 +1,40 @@ +/* + * 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.skillconditionhandlers; + +import org.l2jmobius.gameserver.enums.MountType; +import org.l2jmobius.gameserver.model.StatSet; +import org.l2jmobius.gameserver.model.WorldObject; +import org.l2jmobius.gameserver.model.actor.Creature; +import org.l2jmobius.gameserver.model.skill.ISkillCondition; +import org.l2jmobius.gameserver.model.skill.Skill; + +/** + * @author NasSeKa + */ +public class OpStriderSkillCondition implements ISkillCondition +{ + public OpStriderSkillCondition(StatSet params) + { + } + + @Override + public boolean canUse(Creature caster, Skill skill, WorldObject target) + { + return caster.isPlayer() && (caster.getActingPlayer().getMountType() == MountType.STRIDER); + } +} \ No newline at end of file diff --git a/L2J_Mobius_05.5_EtinasFate/dist/game/data/stats/skills/00300-00399.xml b/L2J_Mobius_05.5_EtinasFate/dist/game/data/stats/skills/00300-00399.xml index f0980441e1..505e8c9729 100644 --- a/L2J_Mobius_05.5_EtinasFate/dist/game/data/stats/skills/00300-00399.xml +++ b/L2J_Mobius_05.5_EtinasFate/dist/game/data/stats/skills/00300-00399.xml @@ -1228,6 +1228,9 @@ + + + 15005 @@ -1279,6 +1282,9 @@ -1 SELF SINGLE + + + 7000 diff --git a/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/handlers/SkillConditionMasterHandler.java b/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/handlers/SkillConditionMasterHandler.java index b4b30f7fe5..3cfb00a470 100644 --- a/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/handlers/SkillConditionMasterHandler.java +++ b/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/handlers/SkillConditionMasterHandler.java @@ -116,6 +116,7 @@ public class SkillConditionMasterHandler SkillConditionHandler.getInstance().registerHandler("OpSkillAcquire", OpSkillAcquireSkillCondition::new); SkillConditionHandler.getInstance().registerHandler("OpSocialClass", OpSocialClassSkillCondition::new); SkillConditionHandler.getInstance().registerHandler("OpSoulMax", OpSoulMaxSkillCondition::new); + SkillConditionHandler.getInstance().registerHandler("OpStrider", OpStriderSkillCondition::new); SkillConditionHandler.getInstance().registerHandler("OpSubjob", OpSubjobSkillCondition::new); SkillConditionHandler.getInstance().registerHandler("OpSweeper", OpSweeperSkillCondition::new); SkillConditionHandler.getInstance().registerHandler("OpTargetAllItemType", OpTargetAllItemTypeSkillCondition::new); diff --git a/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/handlers/skillconditionhandlers/OpStriderSkillCondition.java b/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/handlers/skillconditionhandlers/OpStriderSkillCondition.java new file mode 100644 index 0000000000..19cefcc2cc --- /dev/null +++ b/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/handlers/skillconditionhandlers/OpStriderSkillCondition.java @@ -0,0 +1,40 @@ +/* + * 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.skillconditionhandlers; + +import org.l2jmobius.gameserver.enums.MountType; +import org.l2jmobius.gameserver.model.StatSet; +import org.l2jmobius.gameserver.model.WorldObject; +import org.l2jmobius.gameserver.model.actor.Creature; +import org.l2jmobius.gameserver.model.skill.ISkillCondition; +import org.l2jmobius.gameserver.model.skill.Skill; + +/** + * @author NasSeKa + */ +public class OpStriderSkillCondition implements ISkillCondition +{ + public OpStriderSkillCondition(StatSet params) + { + } + + @Override + public boolean canUse(Creature caster, Skill skill, WorldObject target) + { + return caster.isPlayer() && (caster.getActingPlayer().getMountType() == MountType.STRIDER); + } +} \ No newline at end of file diff --git a/L2J_Mobius_06.0_Fafurion/dist/game/data/stats/skills/00300-00399.xml b/L2J_Mobius_06.0_Fafurion/dist/game/data/stats/skills/00300-00399.xml index 0b2c71c2b8..52f6a55d52 100644 --- a/L2J_Mobius_06.0_Fafurion/dist/game/data/stats/skills/00300-00399.xml +++ b/L2J_Mobius_06.0_Fafurion/dist/game/data/stats/skills/00300-00399.xml @@ -1236,6 +1236,9 @@ + + + 15005 @@ -1287,6 +1290,9 @@ -1 SELF SINGLE + + + 7000 diff --git a/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/handlers/SkillConditionMasterHandler.java b/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/handlers/SkillConditionMasterHandler.java index b4b30f7fe5..3cfb00a470 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/handlers/SkillConditionMasterHandler.java +++ b/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/handlers/SkillConditionMasterHandler.java @@ -116,6 +116,7 @@ public class SkillConditionMasterHandler SkillConditionHandler.getInstance().registerHandler("OpSkillAcquire", OpSkillAcquireSkillCondition::new); SkillConditionHandler.getInstance().registerHandler("OpSocialClass", OpSocialClassSkillCondition::new); SkillConditionHandler.getInstance().registerHandler("OpSoulMax", OpSoulMaxSkillCondition::new); + SkillConditionHandler.getInstance().registerHandler("OpStrider", OpStriderSkillCondition::new); SkillConditionHandler.getInstance().registerHandler("OpSubjob", OpSubjobSkillCondition::new); SkillConditionHandler.getInstance().registerHandler("OpSweeper", OpSweeperSkillCondition::new); SkillConditionHandler.getInstance().registerHandler("OpTargetAllItemType", OpTargetAllItemTypeSkillCondition::new); diff --git a/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/handlers/skillconditionhandlers/OpStriderSkillCondition.java b/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/handlers/skillconditionhandlers/OpStriderSkillCondition.java new file mode 100644 index 0000000000..19cefcc2cc --- /dev/null +++ b/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/handlers/skillconditionhandlers/OpStriderSkillCondition.java @@ -0,0 +1,40 @@ +/* + * 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.skillconditionhandlers; + +import org.l2jmobius.gameserver.enums.MountType; +import org.l2jmobius.gameserver.model.StatSet; +import org.l2jmobius.gameserver.model.WorldObject; +import org.l2jmobius.gameserver.model.actor.Creature; +import org.l2jmobius.gameserver.model.skill.ISkillCondition; +import org.l2jmobius.gameserver.model.skill.Skill; + +/** + * @author NasSeKa + */ +public class OpStriderSkillCondition implements ISkillCondition +{ + public OpStriderSkillCondition(StatSet params) + { + } + + @Override + public boolean canUse(Creature caster, Skill skill, WorldObject target) + { + return caster.isPlayer() && (caster.getActingPlayer().getMountType() == MountType.STRIDER); + } +} \ No newline at end of file diff --git a/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/stats/skills/00300-00399.xml b/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/stats/skills/00300-00399.xml index 27da3cd809..0139e6d351 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/stats/skills/00300-00399.xml +++ b/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/stats/skills/00300-00399.xml @@ -1236,6 +1236,9 @@ + + + 15005 @@ -1287,6 +1290,9 @@ -1 SELF SINGLE + + + 7000 diff --git a/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/handlers/SkillConditionMasterHandler.java b/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/handlers/SkillConditionMasterHandler.java index abe5b60590..bbff6fc765 100644 --- a/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/handlers/SkillConditionMasterHandler.java +++ b/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/handlers/SkillConditionMasterHandler.java @@ -117,6 +117,7 @@ public class SkillConditionMasterHandler SkillConditionHandler.getInstance().registerHandler("OpSkillAcquire", OpSkillAcquireSkillCondition::new); SkillConditionHandler.getInstance().registerHandler("OpSocialClass", OpSocialClassSkillCondition::new); SkillConditionHandler.getInstance().registerHandler("OpSoulMax", OpSoulMaxSkillCondition::new); + SkillConditionHandler.getInstance().registerHandler("OpStrider", OpStriderSkillCondition::new); SkillConditionHandler.getInstance().registerHandler("OpSubjob", OpSubjobSkillCondition::new); SkillConditionHandler.getInstance().registerHandler("OpSweeper", OpSweeperSkillCondition::new); SkillConditionHandler.getInstance().registerHandler("OpTargetAllItemType", OpTargetAllItemTypeSkillCondition::new); diff --git a/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/handlers/skillconditionhandlers/OpStriderSkillCondition.java b/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/handlers/skillconditionhandlers/OpStriderSkillCondition.java new file mode 100644 index 0000000000..19cefcc2cc --- /dev/null +++ b/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/handlers/skillconditionhandlers/OpStriderSkillCondition.java @@ -0,0 +1,40 @@ +/* + * 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.skillconditionhandlers; + +import org.l2jmobius.gameserver.enums.MountType; +import org.l2jmobius.gameserver.model.StatSet; +import org.l2jmobius.gameserver.model.WorldObject; +import org.l2jmobius.gameserver.model.actor.Creature; +import org.l2jmobius.gameserver.model.skill.ISkillCondition; +import org.l2jmobius.gameserver.model.skill.Skill; + +/** + * @author NasSeKa + */ +public class OpStriderSkillCondition implements ISkillCondition +{ + public OpStriderSkillCondition(StatSet params) + { + } + + @Override + public boolean canUse(Creature caster, Skill skill, WorldObject target) + { + return caster.isPlayer() && (caster.getActingPlayer().getMountType() == MountType.STRIDER); + } +} \ No newline at end of file diff --git a/L2J_Mobius_08.2_Homunculus/dist/game/data/stats/skills/00300-00399.xml b/L2J_Mobius_08.2_Homunculus/dist/game/data/stats/skills/00300-00399.xml index 3cec9a5cd8..47aacc0678 100644 --- a/L2J_Mobius_08.2_Homunculus/dist/game/data/stats/skills/00300-00399.xml +++ b/L2J_Mobius_08.2_Homunculus/dist/game/data/stats/skills/00300-00399.xml @@ -1236,6 +1236,9 @@ + + + 15005 @@ -1287,6 +1290,9 @@ -1 SELF SINGLE + + + 7000 diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/handlers/SkillConditionMasterHandler.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/handlers/SkillConditionMasterHandler.java index abe5b60590..bbff6fc765 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/handlers/SkillConditionMasterHandler.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/handlers/SkillConditionMasterHandler.java @@ -117,6 +117,7 @@ public class SkillConditionMasterHandler SkillConditionHandler.getInstance().registerHandler("OpSkillAcquire", OpSkillAcquireSkillCondition::new); SkillConditionHandler.getInstance().registerHandler("OpSocialClass", OpSocialClassSkillCondition::new); SkillConditionHandler.getInstance().registerHandler("OpSoulMax", OpSoulMaxSkillCondition::new); + SkillConditionHandler.getInstance().registerHandler("OpStrider", OpStriderSkillCondition::new); SkillConditionHandler.getInstance().registerHandler("OpSubjob", OpSubjobSkillCondition::new); SkillConditionHandler.getInstance().registerHandler("OpSweeper", OpSweeperSkillCondition::new); SkillConditionHandler.getInstance().registerHandler("OpTargetAllItemType", OpTargetAllItemTypeSkillCondition::new); diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/handlers/skillconditionhandlers/OpStriderSkillCondition.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/handlers/skillconditionhandlers/OpStriderSkillCondition.java new file mode 100644 index 0000000000..19cefcc2cc --- /dev/null +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/handlers/skillconditionhandlers/OpStriderSkillCondition.java @@ -0,0 +1,40 @@ +/* + * 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.skillconditionhandlers; + +import org.l2jmobius.gameserver.enums.MountType; +import org.l2jmobius.gameserver.model.StatSet; +import org.l2jmobius.gameserver.model.WorldObject; +import org.l2jmobius.gameserver.model.actor.Creature; +import org.l2jmobius.gameserver.model.skill.ISkillCondition; +import org.l2jmobius.gameserver.model.skill.Skill; + +/** + * @author NasSeKa + */ +public class OpStriderSkillCondition implements ISkillCondition +{ + public OpStriderSkillCondition(StatSet params) + { + } + + @Override + public boolean canUse(Creature caster, Skill skill, WorldObject target) + { + return caster.isPlayer() && (caster.getActingPlayer().getMountType() == MountType.STRIDER); + } +} \ No newline at end of file diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/stats/skills/00300-00399.xml b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/stats/skills/00300-00399.xml index d3f79c40a7..e31da7583a 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/stats/skills/00300-00399.xml +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/stats/skills/00300-00399.xml @@ -1236,6 +1236,9 @@ + + + 15005 @@ -1287,6 +1290,9 @@ -1 SELF SINGLE + + + 7000 diff --git a/L2J_Mobius_10.0_MasterClass/dist/game/data/scripts/handlers/SkillConditionMasterHandler.java b/L2J_Mobius_10.0_MasterClass/dist/game/data/scripts/handlers/SkillConditionMasterHandler.java index abe5b60590..bbff6fc765 100644 --- a/L2J_Mobius_10.0_MasterClass/dist/game/data/scripts/handlers/SkillConditionMasterHandler.java +++ b/L2J_Mobius_10.0_MasterClass/dist/game/data/scripts/handlers/SkillConditionMasterHandler.java @@ -117,6 +117,7 @@ public class SkillConditionMasterHandler SkillConditionHandler.getInstance().registerHandler("OpSkillAcquire", OpSkillAcquireSkillCondition::new); SkillConditionHandler.getInstance().registerHandler("OpSocialClass", OpSocialClassSkillCondition::new); SkillConditionHandler.getInstance().registerHandler("OpSoulMax", OpSoulMaxSkillCondition::new); + SkillConditionHandler.getInstance().registerHandler("OpStrider", OpStriderSkillCondition::new); SkillConditionHandler.getInstance().registerHandler("OpSubjob", OpSubjobSkillCondition::new); SkillConditionHandler.getInstance().registerHandler("OpSweeper", OpSweeperSkillCondition::new); SkillConditionHandler.getInstance().registerHandler("OpTargetAllItemType", OpTargetAllItemTypeSkillCondition::new); diff --git a/L2J_Mobius_10.0_MasterClass/dist/game/data/scripts/handlers/skillconditionhandlers/OpStriderSkillCondition.java b/L2J_Mobius_10.0_MasterClass/dist/game/data/scripts/handlers/skillconditionhandlers/OpStriderSkillCondition.java new file mode 100644 index 0000000000..19cefcc2cc --- /dev/null +++ b/L2J_Mobius_10.0_MasterClass/dist/game/data/scripts/handlers/skillconditionhandlers/OpStriderSkillCondition.java @@ -0,0 +1,40 @@ +/* + * 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.skillconditionhandlers; + +import org.l2jmobius.gameserver.enums.MountType; +import org.l2jmobius.gameserver.model.StatSet; +import org.l2jmobius.gameserver.model.WorldObject; +import org.l2jmobius.gameserver.model.actor.Creature; +import org.l2jmobius.gameserver.model.skill.ISkillCondition; +import org.l2jmobius.gameserver.model.skill.Skill; + +/** + * @author NasSeKa + */ +public class OpStriderSkillCondition implements ISkillCondition +{ + public OpStriderSkillCondition(StatSet params) + { + } + + @Override + public boolean canUse(Creature caster, Skill skill, WorldObject target) + { + return caster.isPlayer() && (caster.getActingPlayer().getMountType() == MountType.STRIDER); + } +} \ No newline at end of file diff --git a/L2J_Mobius_10.0_MasterClass/dist/game/data/stats/skills/00300-00399.xml b/L2J_Mobius_10.0_MasterClass/dist/game/data/stats/skills/00300-00399.xml index d3f79c40a7..e31da7583a 100644 --- a/L2J_Mobius_10.0_MasterClass/dist/game/data/stats/skills/00300-00399.xml +++ b/L2J_Mobius_10.0_MasterClass/dist/game/data/stats/skills/00300-00399.xml @@ -1236,6 +1236,9 @@ + + + 15005 @@ -1287,6 +1290,9 @@ -1 SELF SINGLE + + + 7000 diff --git a/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/SkillConditionMasterHandler.java b/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/SkillConditionMasterHandler.java index d22496bfec..2181cea828 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/SkillConditionMasterHandler.java +++ b/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/SkillConditionMasterHandler.java @@ -115,6 +115,7 @@ public class SkillConditionMasterHandler SkillConditionHandler.getInstance().registerHandler("OpSkillAcquire", OpSkillAcquireSkillCondition::new); SkillConditionHandler.getInstance().registerHandler("OpSocialClass", OpSocialClassSkillCondition::new); SkillConditionHandler.getInstance().registerHandler("OpSoulMax", OpSoulMaxSkillCondition::new); + SkillConditionHandler.getInstance().registerHandler("OpStrider", OpStriderSkillCondition::new); SkillConditionHandler.getInstance().registerHandler("OpSubjob", OpSubjobSkillCondition::new); SkillConditionHandler.getInstance().registerHandler("OpSweeper", OpSweeperSkillCondition::new); SkillConditionHandler.getInstance().registerHandler("OpTargetAllItemType", OpTargetAllItemTypeSkillCondition::new); diff --git a/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/skillconditionhandlers/OpStriderSkillCondition.java b/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/skillconditionhandlers/OpStriderSkillCondition.java new file mode 100644 index 0000000000..19cefcc2cc --- /dev/null +++ b/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/skillconditionhandlers/OpStriderSkillCondition.java @@ -0,0 +1,40 @@ +/* + * 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.skillconditionhandlers; + +import org.l2jmobius.gameserver.enums.MountType; +import org.l2jmobius.gameserver.model.StatSet; +import org.l2jmobius.gameserver.model.WorldObject; +import org.l2jmobius.gameserver.model.actor.Creature; +import org.l2jmobius.gameserver.model.skill.ISkillCondition; +import org.l2jmobius.gameserver.model.skill.Skill; + +/** + * @author NasSeKa + */ +public class OpStriderSkillCondition implements ISkillCondition +{ + public OpStriderSkillCondition(StatSet params) + { + } + + @Override + public boolean canUse(Creature caster, Skill skill, WorldObject target) + { + return caster.isPlayer() && (caster.getActingPlayer().getMountType() == MountType.STRIDER); + } +} \ No newline at end of file diff --git a/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/stats/skills/00300-00399.xml b/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/stats/skills/00300-00399.xml index 730d9cc3ff..630a97d986 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/stats/skills/00300-00399.xml +++ b/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/stats/skills/00300-00399.xml @@ -1159,6 +1159,12 @@ -1 ENEMY SINGLE + + + + + + 15005 @@ -1210,6 +1216,9 @@ -1 SELF SINGLE + + + 7000 diff --git a/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/handlers/SkillConditionMasterHandler.java b/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/handlers/SkillConditionMasterHandler.java index d22496bfec..2181cea828 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/handlers/SkillConditionMasterHandler.java +++ b/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/handlers/SkillConditionMasterHandler.java @@ -115,6 +115,7 @@ public class SkillConditionMasterHandler SkillConditionHandler.getInstance().registerHandler("OpSkillAcquire", OpSkillAcquireSkillCondition::new); SkillConditionHandler.getInstance().registerHandler("OpSocialClass", OpSocialClassSkillCondition::new); SkillConditionHandler.getInstance().registerHandler("OpSoulMax", OpSoulMaxSkillCondition::new); + SkillConditionHandler.getInstance().registerHandler("OpStrider", OpStriderSkillCondition::new); SkillConditionHandler.getInstance().registerHandler("OpSubjob", OpSubjobSkillCondition::new); SkillConditionHandler.getInstance().registerHandler("OpSweeper", OpSweeperSkillCondition::new); SkillConditionHandler.getInstance().registerHandler("OpTargetAllItemType", OpTargetAllItemTypeSkillCondition::new); diff --git a/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/handlers/skillconditionhandlers/OpStriderSkillCondition.java b/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/handlers/skillconditionhandlers/OpStriderSkillCondition.java new file mode 100644 index 0000000000..19cefcc2cc --- /dev/null +++ b/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/handlers/skillconditionhandlers/OpStriderSkillCondition.java @@ -0,0 +1,40 @@ +/* + * 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.skillconditionhandlers; + +import org.l2jmobius.gameserver.enums.MountType; +import org.l2jmobius.gameserver.model.StatSet; +import org.l2jmobius.gameserver.model.WorldObject; +import org.l2jmobius.gameserver.model.actor.Creature; +import org.l2jmobius.gameserver.model.skill.ISkillCondition; +import org.l2jmobius.gameserver.model.skill.Skill; + +/** + * @author NasSeKa + */ +public class OpStriderSkillCondition implements ISkillCondition +{ + public OpStriderSkillCondition(StatSet params) + { + } + + @Override + public boolean canUse(Creature caster, Skill skill, WorldObject target) + { + return caster.isPlayer() && (caster.getActingPlayer().getMountType() == MountType.STRIDER); + } +} \ No newline at end of file diff --git a/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/stats/skills/00300-00399.xml b/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/stats/skills/00300-00399.xml index 84f857f1f0..0cf6b2fff6 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/stats/skills/00300-00399.xml +++ b/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/stats/skills/00300-00399.xml @@ -1157,6 +1157,12 @@ -1 ENEMY SINGLE + + + + + + 15005 @@ -1208,6 +1214,9 @@ -1 SELF SINGLE + + + 7000 diff --git a/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/handlers/SkillConditionMasterHandler.java b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/handlers/SkillConditionMasterHandler.java index d22496bfec..2181cea828 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/handlers/SkillConditionMasterHandler.java +++ b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/handlers/SkillConditionMasterHandler.java @@ -115,6 +115,7 @@ public class SkillConditionMasterHandler SkillConditionHandler.getInstance().registerHandler("OpSkillAcquire", OpSkillAcquireSkillCondition::new); SkillConditionHandler.getInstance().registerHandler("OpSocialClass", OpSocialClassSkillCondition::new); SkillConditionHandler.getInstance().registerHandler("OpSoulMax", OpSoulMaxSkillCondition::new); + SkillConditionHandler.getInstance().registerHandler("OpStrider", OpStriderSkillCondition::new); SkillConditionHandler.getInstance().registerHandler("OpSubjob", OpSubjobSkillCondition::new); SkillConditionHandler.getInstance().registerHandler("OpSweeper", OpSweeperSkillCondition::new); SkillConditionHandler.getInstance().registerHandler("OpTargetAllItemType", OpTargetAllItemTypeSkillCondition::new); diff --git a/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/handlers/skillconditionhandlers/OpStriderSkillCondition.java b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/handlers/skillconditionhandlers/OpStriderSkillCondition.java new file mode 100644 index 0000000000..19cefcc2cc --- /dev/null +++ b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/handlers/skillconditionhandlers/OpStriderSkillCondition.java @@ -0,0 +1,40 @@ +/* + * 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.skillconditionhandlers; + +import org.l2jmobius.gameserver.enums.MountType; +import org.l2jmobius.gameserver.model.StatSet; +import org.l2jmobius.gameserver.model.WorldObject; +import org.l2jmobius.gameserver.model.actor.Creature; +import org.l2jmobius.gameserver.model.skill.ISkillCondition; +import org.l2jmobius.gameserver.model.skill.Skill; + +/** + * @author NasSeKa + */ +public class OpStriderSkillCondition implements ISkillCondition +{ + public OpStriderSkillCondition(StatSet params) + { + } + + @Override + public boolean canUse(Creature caster, Skill skill, WorldObject target) + { + return caster.isPlayer() && (caster.getActingPlayer().getMountType() == MountType.STRIDER); + } +} \ No newline at end of file diff --git a/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/stats/skills/00300-00399.xml b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/stats/skills/00300-00399.xml index b6d089d3a7..17d2adc756 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/stats/skills/00300-00399.xml +++ b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/stats/skills/00300-00399.xml @@ -1196,6 +1196,12 @@ -1 ENEMY SINGLE + + + + + + 15005 @@ -1247,6 +1253,9 @@ -1 SELF SINGLE + + + 7000 diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/handlers/SkillConditionMasterHandler.java b/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/handlers/SkillConditionMasterHandler.java index d22496bfec..2181cea828 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/handlers/SkillConditionMasterHandler.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/handlers/SkillConditionMasterHandler.java @@ -115,6 +115,7 @@ public class SkillConditionMasterHandler SkillConditionHandler.getInstance().registerHandler("OpSkillAcquire", OpSkillAcquireSkillCondition::new); SkillConditionHandler.getInstance().registerHandler("OpSocialClass", OpSocialClassSkillCondition::new); SkillConditionHandler.getInstance().registerHandler("OpSoulMax", OpSoulMaxSkillCondition::new); + SkillConditionHandler.getInstance().registerHandler("OpStrider", OpStriderSkillCondition::new); SkillConditionHandler.getInstance().registerHandler("OpSubjob", OpSubjobSkillCondition::new); SkillConditionHandler.getInstance().registerHandler("OpSweeper", OpSweeperSkillCondition::new); SkillConditionHandler.getInstance().registerHandler("OpTargetAllItemType", OpTargetAllItemTypeSkillCondition::new); diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/handlers/skillconditionhandlers/OpStriderSkillCondition.java b/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/handlers/skillconditionhandlers/OpStriderSkillCondition.java new file mode 100644 index 0000000000..19cefcc2cc --- /dev/null +++ b/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/handlers/skillconditionhandlers/OpStriderSkillCondition.java @@ -0,0 +1,40 @@ +/* + * 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.skillconditionhandlers; + +import org.l2jmobius.gameserver.enums.MountType; +import org.l2jmobius.gameserver.model.StatSet; +import org.l2jmobius.gameserver.model.WorldObject; +import org.l2jmobius.gameserver.model.actor.Creature; +import org.l2jmobius.gameserver.model.skill.ISkillCondition; +import org.l2jmobius.gameserver.model.skill.Skill; + +/** + * @author NasSeKa + */ +public class OpStriderSkillCondition implements ISkillCondition +{ + public OpStriderSkillCondition(StatSet params) + { + } + + @Override + public boolean canUse(Creature caster, Skill skill, WorldObject target) + { + return caster.isPlayer() && (caster.getActingPlayer().getMountType() == MountType.STRIDER); + } +} \ No newline at end of file diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/stats/skills/00300-00399.xml b/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/stats/skills/00300-00399.xml index 99c136ad6e..696da48114 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/stats/skills/00300-00399.xml +++ b/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/stats/skills/00300-00399.xml @@ -1196,6 +1196,12 @@ -1 ENEMY SINGLE + + + + + + 15005 @@ -1247,6 +1253,9 @@ -1 SELF SINGLE + + + 7000 diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/data/scripts/handlers/SkillConditionMasterHandler.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/data/scripts/handlers/SkillConditionMasterHandler.java index d22496bfec..2181cea828 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/data/scripts/handlers/SkillConditionMasterHandler.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/data/scripts/handlers/SkillConditionMasterHandler.java @@ -115,6 +115,7 @@ public class SkillConditionMasterHandler SkillConditionHandler.getInstance().registerHandler("OpSkillAcquire", OpSkillAcquireSkillCondition::new); SkillConditionHandler.getInstance().registerHandler("OpSocialClass", OpSocialClassSkillCondition::new); SkillConditionHandler.getInstance().registerHandler("OpSoulMax", OpSoulMaxSkillCondition::new); + SkillConditionHandler.getInstance().registerHandler("OpStrider", OpStriderSkillCondition::new); SkillConditionHandler.getInstance().registerHandler("OpSubjob", OpSubjobSkillCondition::new); SkillConditionHandler.getInstance().registerHandler("OpSweeper", OpSweeperSkillCondition::new); SkillConditionHandler.getInstance().registerHandler("OpTargetAllItemType", OpTargetAllItemTypeSkillCondition::new); diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/data/scripts/handlers/skillconditionhandlers/OpStriderSkillCondition.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/data/scripts/handlers/skillconditionhandlers/OpStriderSkillCondition.java new file mode 100644 index 0000000000..19cefcc2cc --- /dev/null +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/data/scripts/handlers/skillconditionhandlers/OpStriderSkillCondition.java @@ -0,0 +1,40 @@ +/* + * 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.skillconditionhandlers; + +import org.l2jmobius.gameserver.enums.MountType; +import org.l2jmobius.gameserver.model.StatSet; +import org.l2jmobius.gameserver.model.WorldObject; +import org.l2jmobius.gameserver.model.actor.Creature; +import org.l2jmobius.gameserver.model.skill.ISkillCondition; +import org.l2jmobius.gameserver.model.skill.Skill; + +/** + * @author NasSeKa + */ +public class OpStriderSkillCondition implements ISkillCondition +{ + public OpStriderSkillCondition(StatSet params) + { + } + + @Override + public boolean canUse(Creature caster, Skill skill, WorldObject target) + { + return caster.isPlayer() && (caster.getActingPlayer().getMountType() == MountType.STRIDER); + } +} \ No newline at end of file diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/data/stats/skills/00300-00399.xml b/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/data/stats/skills/00300-00399.xml index c2affa2204..345d503e5e 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/data/stats/skills/00300-00399.xml +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/data/stats/skills/00300-00399.xml @@ -1211,6 +1211,12 @@ -1 ENEMY SINGLE + + + + + + 15005 @@ -1262,6 +1268,9 @@ -1 SELF SINGLE + + + 7000 diff --git a/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/handlers/SkillConditionMasterHandler.java b/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/handlers/SkillConditionMasterHandler.java index d22496bfec..2181cea828 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/handlers/SkillConditionMasterHandler.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/handlers/SkillConditionMasterHandler.java @@ -115,6 +115,7 @@ public class SkillConditionMasterHandler SkillConditionHandler.getInstance().registerHandler("OpSkillAcquire", OpSkillAcquireSkillCondition::new); SkillConditionHandler.getInstance().registerHandler("OpSocialClass", OpSocialClassSkillCondition::new); SkillConditionHandler.getInstance().registerHandler("OpSoulMax", OpSoulMaxSkillCondition::new); + SkillConditionHandler.getInstance().registerHandler("OpStrider", OpStriderSkillCondition::new); SkillConditionHandler.getInstance().registerHandler("OpSubjob", OpSubjobSkillCondition::new); SkillConditionHandler.getInstance().registerHandler("OpSweeper", OpSweeperSkillCondition::new); SkillConditionHandler.getInstance().registerHandler("OpTargetAllItemType", OpTargetAllItemTypeSkillCondition::new); diff --git a/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/handlers/skillconditionhandlers/OpStriderSkillCondition.java b/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/handlers/skillconditionhandlers/OpStriderSkillCondition.java new file mode 100644 index 0000000000..19cefcc2cc --- /dev/null +++ b/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/handlers/skillconditionhandlers/OpStriderSkillCondition.java @@ -0,0 +1,40 @@ +/* + * 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.skillconditionhandlers; + +import org.l2jmobius.gameserver.enums.MountType; +import org.l2jmobius.gameserver.model.StatSet; +import org.l2jmobius.gameserver.model.WorldObject; +import org.l2jmobius.gameserver.model.actor.Creature; +import org.l2jmobius.gameserver.model.skill.ISkillCondition; +import org.l2jmobius.gameserver.model.skill.Skill; + +/** + * @author NasSeKa + */ +public class OpStriderSkillCondition implements ISkillCondition +{ + public OpStriderSkillCondition(StatSet params) + { + } + + @Override + public boolean canUse(Creature caster, Skill skill, WorldObject target) + { + return caster.isPlayer() && (caster.getActingPlayer().getMountType() == MountType.STRIDER); + } +} \ No newline at end of file diff --git a/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/stats/skills/00300-00399.xml b/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/stats/skills/00300-00399.xml index 6439b35013..8c535c65a4 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/stats/skills/00300-00399.xml +++ b/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/stats/skills/00300-00399.xml @@ -1211,6 +1211,12 @@ -1 ENEMY SINGLE + + + + + + 15005 @@ -1262,6 +1268,9 @@ -1 SELF SINGLE + + + 7000 diff --git a/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/handlers/SkillConditionMasterHandler.java b/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/handlers/SkillConditionMasterHandler.java index d22496bfec..2181cea828 100644 --- a/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/handlers/SkillConditionMasterHandler.java +++ b/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/handlers/SkillConditionMasterHandler.java @@ -115,6 +115,7 @@ public class SkillConditionMasterHandler SkillConditionHandler.getInstance().registerHandler("OpSkillAcquire", OpSkillAcquireSkillCondition::new); SkillConditionHandler.getInstance().registerHandler("OpSocialClass", OpSocialClassSkillCondition::new); SkillConditionHandler.getInstance().registerHandler("OpSoulMax", OpSoulMaxSkillCondition::new); + SkillConditionHandler.getInstance().registerHandler("OpStrider", OpStriderSkillCondition::new); SkillConditionHandler.getInstance().registerHandler("OpSubjob", OpSubjobSkillCondition::new); SkillConditionHandler.getInstance().registerHandler("OpSweeper", OpSweeperSkillCondition::new); SkillConditionHandler.getInstance().registerHandler("OpTargetAllItemType", OpTargetAllItemTypeSkillCondition::new); diff --git a/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/handlers/skillconditionhandlers/OpStriderSkillCondition.java b/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/handlers/skillconditionhandlers/OpStriderSkillCondition.java new file mode 100644 index 0000000000..19cefcc2cc --- /dev/null +++ b/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/handlers/skillconditionhandlers/OpStriderSkillCondition.java @@ -0,0 +1,40 @@ +/* + * 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.skillconditionhandlers; + +import org.l2jmobius.gameserver.enums.MountType; +import org.l2jmobius.gameserver.model.StatSet; +import org.l2jmobius.gameserver.model.WorldObject; +import org.l2jmobius.gameserver.model.actor.Creature; +import org.l2jmobius.gameserver.model.skill.ISkillCondition; +import org.l2jmobius.gameserver.model.skill.Skill; + +/** + * @author NasSeKa + */ +public class OpStriderSkillCondition implements ISkillCondition +{ + public OpStriderSkillCondition(StatSet params) + { + } + + @Override + public boolean canUse(Creature caster, Skill skill, WorldObject target) + { + return caster.isPlayer() && (caster.getActingPlayer().getMountType() == MountType.STRIDER); + } +} \ No newline at end of file diff --git a/L2J_Mobius_Classic_Interlude/dist/game/data/stats/skills/00300-00399.xml b/L2J_Mobius_Classic_Interlude/dist/game/data/stats/skills/00300-00399.xml index 3fc848125a..989b7a6fc3 100644 --- a/L2J_Mobius_Classic_Interlude/dist/game/data/stats/skills/00300-00399.xml +++ b/L2J_Mobius_Classic_Interlude/dist/game/data/stats/skills/00300-00399.xml @@ -1228,6 +1228,9 @@ + + + 15005 @@ -1279,6 +1282,9 @@ -1 SELF SINGLE + + + 7000 diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/handlers/SkillConditionMasterHandler.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/handlers/SkillConditionMasterHandler.java index 5f700cff89..6c3e79c232 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/handlers/SkillConditionMasterHandler.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/handlers/SkillConditionMasterHandler.java @@ -117,6 +117,7 @@ public class SkillConditionMasterHandler SkillConditionHandler.getInstance().registerHandler("OpSkillAcquire", OpSkillAcquireSkillCondition::new); SkillConditionHandler.getInstance().registerHandler("OpSocialClass", OpSocialClassSkillCondition::new); SkillConditionHandler.getInstance().registerHandler("OpSoulMax", OpSoulMaxSkillCondition::new); + SkillConditionHandler.getInstance().registerHandler("OpStrider", OpStriderSkillCondition::new); SkillConditionHandler.getInstance().registerHandler("OpSubjob", OpSubjobSkillCondition::new); SkillConditionHandler.getInstance().registerHandler("OpSweeper", OpSweeperSkillCondition::new); SkillConditionHandler.getInstance().registerHandler("OpTargetAllItemType", OpTargetAllItemTypeSkillCondition::new); diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/handlers/skillconditionhandlers/OpStriderSkillCondition.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/handlers/skillconditionhandlers/OpStriderSkillCondition.java new file mode 100644 index 0000000000..19cefcc2cc --- /dev/null +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/handlers/skillconditionhandlers/OpStriderSkillCondition.java @@ -0,0 +1,40 @@ +/* + * 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.skillconditionhandlers; + +import org.l2jmobius.gameserver.enums.MountType; +import org.l2jmobius.gameserver.model.StatSet; +import org.l2jmobius.gameserver.model.WorldObject; +import org.l2jmobius.gameserver.model.actor.Creature; +import org.l2jmobius.gameserver.model.skill.ISkillCondition; +import org.l2jmobius.gameserver.model.skill.Skill; + +/** + * @author NasSeKa + */ +public class OpStriderSkillCondition implements ISkillCondition +{ + public OpStriderSkillCondition(StatSet params) + { + } + + @Override + public boolean canUse(Creature caster, Skill skill, WorldObject target) + { + return caster.isPlayer() && (caster.getActingPlayer().getMountType() == MountType.STRIDER); + } +} \ No newline at end of file diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/stats/skills/00300-00399.xml b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/stats/skills/00300-00399.xml index b26551a3ce..be1a41bbb9 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/stats/skills/00300-00399.xml +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/stats/skills/00300-00399.xml @@ -1122,6 +1122,12 @@ -1 ENEMY SINGLE + + + + + + 15005 @@ -1173,6 +1179,9 @@ -1 SELF SINGLE + + + 7000 diff --git a/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/handlers/SkillConditionMasterHandler.java b/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/handlers/SkillConditionMasterHandler.java index 5f700cff89..6c3e79c232 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/handlers/SkillConditionMasterHandler.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/handlers/SkillConditionMasterHandler.java @@ -117,6 +117,7 @@ public class SkillConditionMasterHandler SkillConditionHandler.getInstance().registerHandler("OpSkillAcquire", OpSkillAcquireSkillCondition::new); SkillConditionHandler.getInstance().registerHandler("OpSocialClass", OpSocialClassSkillCondition::new); SkillConditionHandler.getInstance().registerHandler("OpSoulMax", OpSoulMaxSkillCondition::new); + SkillConditionHandler.getInstance().registerHandler("OpStrider", OpStriderSkillCondition::new); SkillConditionHandler.getInstance().registerHandler("OpSubjob", OpSubjobSkillCondition::new); SkillConditionHandler.getInstance().registerHandler("OpSweeper", OpSweeperSkillCondition::new); SkillConditionHandler.getInstance().registerHandler("OpTargetAllItemType", OpTargetAllItemTypeSkillCondition::new); diff --git a/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/handlers/skillconditionhandlers/OpStriderSkillCondition.java b/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/handlers/skillconditionhandlers/OpStriderSkillCondition.java new file mode 100644 index 0000000000..19cefcc2cc --- /dev/null +++ b/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/handlers/skillconditionhandlers/OpStriderSkillCondition.java @@ -0,0 +1,40 @@ +/* + * 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.skillconditionhandlers; + +import org.l2jmobius.gameserver.enums.MountType; +import org.l2jmobius.gameserver.model.StatSet; +import org.l2jmobius.gameserver.model.WorldObject; +import org.l2jmobius.gameserver.model.actor.Creature; +import org.l2jmobius.gameserver.model.skill.ISkillCondition; +import org.l2jmobius.gameserver.model.skill.Skill; + +/** + * @author NasSeKa + */ +public class OpStriderSkillCondition implements ISkillCondition +{ + public OpStriderSkillCondition(StatSet params) + { + } + + @Override + public boolean canUse(Creature caster, Skill skill, WorldObject target) + { + return caster.isPlayer() && (caster.getActingPlayer().getMountType() == MountType.STRIDER); + } +} \ No newline at end of file diff --git a/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/stats/skills/00300-00399.xml b/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/stats/skills/00300-00399.xml index 8807de462b..ba90cd3f95 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/stats/skills/00300-00399.xml +++ b/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/stats/skills/00300-00399.xml @@ -1246,6 +1246,12 @@ -1 ENEMY SINGLE + + + + + + 15005 @@ -1297,6 +1303,9 @@ -1 SELF SINGLE + + + 7000 diff --git a/L2J_Mobius_Essence_6.0_BattleChronicle/dist/game/data/scripts/handlers/SkillConditionMasterHandler.java b/L2J_Mobius_Essence_6.0_BattleChronicle/dist/game/data/scripts/handlers/SkillConditionMasterHandler.java index 5f700cff89..6c3e79c232 100644 --- a/L2J_Mobius_Essence_6.0_BattleChronicle/dist/game/data/scripts/handlers/SkillConditionMasterHandler.java +++ b/L2J_Mobius_Essence_6.0_BattleChronicle/dist/game/data/scripts/handlers/SkillConditionMasterHandler.java @@ -117,6 +117,7 @@ public class SkillConditionMasterHandler SkillConditionHandler.getInstance().registerHandler("OpSkillAcquire", OpSkillAcquireSkillCondition::new); SkillConditionHandler.getInstance().registerHandler("OpSocialClass", OpSocialClassSkillCondition::new); SkillConditionHandler.getInstance().registerHandler("OpSoulMax", OpSoulMaxSkillCondition::new); + SkillConditionHandler.getInstance().registerHandler("OpStrider", OpStriderSkillCondition::new); SkillConditionHandler.getInstance().registerHandler("OpSubjob", OpSubjobSkillCondition::new); SkillConditionHandler.getInstance().registerHandler("OpSweeper", OpSweeperSkillCondition::new); SkillConditionHandler.getInstance().registerHandler("OpTargetAllItemType", OpTargetAllItemTypeSkillCondition::new); diff --git a/L2J_Mobius_Essence_6.0_BattleChronicle/dist/game/data/scripts/handlers/skillconditionhandlers/OpStriderSkillCondition.java b/L2J_Mobius_Essence_6.0_BattleChronicle/dist/game/data/scripts/handlers/skillconditionhandlers/OpStriderSkillCondition.java new file mode 100644 index 0000000000..19cefcc2cc --- /dev/null +++ b/L2J_Mobius_Essence_6.0_BattleChronicle/dist/game/data/scripts/handlers/skillconditionhandlers/OpStriderSkillCondition.java @@ -0,0 +1,40 @@ +/* + * 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.skillconditionhandlers; + +import org.l2jmobius.gameserver.enums.MountType; +import org.l2jmobius.gameserver.model.StatSet; +import org.l2jmobius.gameserver.model.WorldObject; +import org.l2jmobius.gameserver.model.actor.Creature; +import org.l2jmobius.gameserver.model.skill.ISkillCondition; +import org.l2jmobius.gameserver.model.skill.Skill; + +/** + * @author NasSeKa + */ +public class OpStriderSkillCondition implements ISkillCondition +{ + public OpStriderSkillCondition(StatSet params) + { + } + + @Override + public boolean canUse(Creature caster, Skill skill, WorldObject target) + { + return caster.isPlayer() && (caster.getActingPlayer().getMountType() == MountType.STRIDER); + } +} \ No newline at end of file diff --git a/L2J_Mobius_Essence_6.0_BattleChronicle/dist/game/data/stats/skills/00300-00399.xml b/L2J_Mobius_Essence_6.0_BattleChronicle/dist/game/data/stats/skills/00300-00399.xml index 8807de462b..ba90cd3f95 100644 --- a/L2J_Mobius_Essence_6.0_BattleChronicle/dist/game/data/stats/skills/00300-00399.xml +++ b/L2J_Mobius_Essence_6.0_BattleChronicle/dist/game/data/stats/skills/00300-00399.xml @@ -1246,6 +1246,12 @@ -1 ENEMY SINGLE + + + + + + 15005 @@ -1297,6 +1303,9 @@ -1 SELF SINGLE + + + 7000