From 6c9502d7425007aa8d98565b6c6ee456ec441b63 Mon Sep 17 00:00:00 2001 From: Zoey76 <zoey_76@msn.com> Date: Mon, 9 Jan 2012 16:37:39 +0000 Subject: [PATCH] BETA: Transformation fixes: By Nyaran: * Block Checker Blue transformation. * Game Manager transformation. * Wood Horse transformation. * HTML rearranging. * Skill Transform Master(6908). * Skill Rocking Horse Mount(21258). * Skill Transformation Scroll - Blue Block Checker(22190). By me: * Added GPL to all transformations. * Added author to some transformations. * Code formatting and cleanup. '''Note to contributors:''' Please when sharing new code add GPL and author name. --- .../dist/game/data/html/admin/transform2.htm | 1 + .../dist/game/data/html/admin/transform3.htm | 28 ++++--- L2J_DataPack_BETA/dist/game/data/scripts.cfg | 3 + .../scripts/transformations/Akamanah.java | 14 ++++ .../data/scripts/transformations/Anakim.java | 23 +++++- .../data/scripts/transformations/AquaElf.java | 23 +++++- .../transformations/ArcherCaptain.java | 23 +++++- .../transformations/AurabirdFalcon.java | 31 +++++++- .../scripts/transformations/AurabirdOwl.java | 31 +++++++- .../data/scripts/transformations/Benom.java | 23 +++++- .../transformations/BlockCheckerBlue.java | 74 ++++++++++++++++++ .../data/scripts/transformations/Buffalo.java | 23 +++++- .../transformations/DarkElfMercenary.java | 23 +++++- .../transformations/DarkmanePacer.java | 14 ++++ .../scripts/transformations/DemonPrince.java | 24 +++++- .../scripts/transformations/DemonRace.java | 26 ++++++- .../transformations/DivineEnchanter.java | 24 +++++- .../scripts/transformations/DivineHealer.java | 24 +++++- .../scripts/transformations/DivineKnight.java | 24 +++++- .../scripts/transformations/DivineRogue.java | 24 +++++- .../transformations/DivineSummoner.java | 28 ++++++- .../transformations/DivineWarrior.java | 24 +++++- .../scripts/transformations/DivineWizard.java | 24 +++++- .../scripts/transformations/DollBlader.java | 24 +++++- .../scripts/transformations/DoomWraith.java | 24 +++++- .../transformations/DragonBomberNormal.java | 24 +++++- .../transformations/DragonBomberStrong.java | 24 +++++- .../transformations/DragonBomberWeak.java | 24 +++++- .../transformations/DragonMasterKarin.java | 29 ++++++- .../transformations/DragonMasterLee.java | 29 ++++++- .../scripts/transformations/DwarfGolem.java | 24 +++++- .../transformations/DwarfMercenary.java | 24 +++++- .../scripts/transformations/ElfMercenary.java | 24 +++++- .../transformations/EpicQuestChild.java | 23 +++++- .../transformations/EpicQuestFrog.java | 23 +++++- .../transformations/EpicQuestNative.java | 23 +++++- .../transformations/FlyingFinalForm.java | 28 ++++++- .../transformations/FortressCaptain.java | 24 +++++- .../scripts/transformations/GameManager.java | 74 ++++++++++++++++++ .../transformations/GolemGuardianNormal.java | 24 +++++- .../transformations/GolemGuardianStrong.java | 24 +++++- .../transformations/GolemGuardianWeak.java | 24 +++++- .../data/scripts/transformations/Gordon.java | 24 +++++- .../transformations/GrailApostleNormal.java | 24 +++++- .../transformations/GrailApostleStrong.java | 24 +++++- .../transformations/GrailApostleWeak.java | 24 +++++- .../scripts/transformations/GrizzlyBear.java | 24 +++++- .../transformations/GuardianStrider.java | 24 +++++- .../transformations/GuardsoftheDawn.java | 28 ++++++- .../scripts/transformations/HeavyTow.java | 24 +++++- .../data/scripts/transformations/Heretic.java | 24 +++++- .../transformations/HumanMercenary.java | 24 +++++- .../transformations/InfernoDrakeNormal.java | 24 +++++- .../transformations/InfernoDrakeStrong.java | 24 +++++- .../transformations/InfernoDrakeWeak.java | 24 +++++- .../transformations/InquisitorBishop.java | 27 ++++++- .../transformations/InquisitorElvenElder.java | 27 ++++++- .../InquisitorShilienElder.java | 27 ++++++- .../data/scripts/transformations/JetBike.java | 24 +++++- .../data/scripts/transformations/Kadomas.java | 28 ++++++- .../data/scripts/transformations/Kamael.java | 24 +++++- .../transformations/KamaelGuardCaptain.java | 24 +++++- .../transformations/KamaelMercenary.java | 24 +++++- .../data/scripts/transformations/Kiyachi.java | 24 +++++- .../scripts/transformations/KnightofDawn.java | 24 +++++- .../scripts/transformations/LavaGolem.java | 24 +++++- .../transformations/LilimKnightNormal.java | 24 +++++- .../transformations/LilimKnightStrong.java | 24 +++++- .../transformations/LilimKnightWeak.java | 24 +++++- .../data/scripts/transformations/LureTow.java | 24 +++++- .../scripts/transformations/MagicLeader.java | 24 +++++- .../data/scripts/transformations/MyoRace.java | 26 ++++++- .../data/scripts/transformations/Native.java | 24 +++++- .../data/scripts/transformations/OlMahum.java | 24 +++++- .../scripts/transformations/OnyxBeast.java | 24 +++++- .../scripts/transformations/OrcMercenary.java | 24 +++++- .../data/scripts/transformations/Pig.java | 24 +++++- .../data/scripts/transformations/Pixy.java | 24 +++++- .../scripts/transformations/PumpkinGhost.java | 24 +++++- .../data/scripts/transformations/Rabbit.java | 24 +++++- .../data/scripts/transformations/Ranku.java | 24 +++++- .../transformations/RoyalGuardCaptain.java | 24 +++++- .../transformations/SaberToothTiger.java | 24 +++++- .../scripts/transformations/Scarecrow.java | 24 +++++- .../scripts/transformations/ScrollBlue.java | 41 +++++++--- .../scripts/transformations/ScrollRed.java | 41 +++++++--- .../transformations/ShinyPlatform.java | 7 +- .../scripts/transformations/SnowKung.java | 24 +++++- .../scripts/transformations/SteamBeatle.java | 24 +++++- .../scripts/transformations/SujinChild.java | 23 +++++- .../transformations/TawnyManedLion.java | 24 +++++- .../scripts/transformations/Teleporter.java | 55 ++++++------- .../scripts/transformations/Teleporter2.java | 55 ++++++------- .../scripts/transformations/Timitran.java | 24 +++++- .../scripts/transformations/TinGolem.java | 24 +++++- .../data/scripts/transformations/Tow.java | 24 +++++- .../scripts/transformations/TrejuoChild.java | 23 +++++- .../data/scripts/transformations/Treykan.java | 14 ++++ .../transformations/UnicornNormal.java | 24 +++++- .../transformations/UnicornStrong.java | 24 +++++- .../scripts/transformations/UnicornWeak.java | 24 +++++- .../scripts/transformations/Unicorniun.java | 26 ++++++- .../scripts/transformations/ValeMaster.java | 24 +++++- .../transformations/VanguardDarkAvenger.java | 27 ++++++- .../transformations/VanguardPaladin.java | 27 ++++++- .../VanguardShilienKnight.java | 27 ++++++- .../transformations/VanguardTempleKnight.java | 27 ++++++- .../data/scripts/transformations/WingTow.java | 24 +++++- .../scripts/transformations/WoodHorse.java | 78 +++++++++++++++++++ .../data/scripts/transformations/Yeti.java | 24 +++++- .../data/scripts/transformations/Yeti2.java | 24 +++++- .../data/scripts/transformations/Zaken.java | 24 +++++- .../data/scripts/transformations/Zariche.java | 14 ++++ .../data/scripts/transformations/Zombie.java | 24 +++++- .../game/data/stats/skills/06900-06999.xml | 11 ++- .../game/data/stats/skills/21200-21299.xml | 15 +++- .../game/data/stats/skills/22100-22199.xml | 21 +++-- 117 files changed, 2681 insertions(+), 311 deletions(-) create mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/transformations/BlockCheckerBlue.java create mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/transformations/GameManager.java create mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/transformations/WoodHorse.java diff --git a/L2J_DataPack_BETA/dist/game/data/html/admin/transform2.htm b/L2J_DataPack_BETA/dist/game/data/html/admin/transform2.htm index 6f84d567ff..ceb419d344 100644 --- a/L2J_DataPack_BETA/dist/game/data/html/admin/transform2.htm +++ b/L2J_DataPack_BETA/dist/game/data/html/admin/transform2.htm @@ -54,6 +54,7 @@ Monster Transformations:<br1> </tr> <tr> <td><button value="Grizzly" action="bypass -h admin_transform_menu 320 $qbox" width=65 height=21 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> +<td><button value="Treykan" action="bypass -h admin_transform_menu 126 $qbox" width=65 height=21 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> </tr> </table> <br> diff --git a/L2J_DataPack_BETA/dist/game/data/html/admin/transform3.htm b/L2J_DataPack_BETA/dist/game/data/html/admin/transform3.htm index be78547e20..7677c30fd2 100644 --- a/L2J_DataPack_BETA/dist/game/data/html/admin/transform3.htm +++ b/L2J_DataPack_BETA/dist/game/data/html/admin/transform3.htm @@ -31,17 +31,17 @@ Event Transformations:<br1> <tr> <td><button value="Ghost" action="bypass -h admin_transform_menu 108 $qbox" width=80 height=21 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> <td><button value="Snow King" action="bypass -h admin_transform_menu 114 $qbox" width=80 height=21 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> -<td><button value="Gatekeeper 1" action="bypass -h admin_transform_menu 107 $qbox" width=80 height=21 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> +<td><button value="Scarecrow" action="bypass -h admin_transform_menu 115 $qbox" width=80 height=21 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> </tr> <tr> -<td><button value="Red Elf" action="bypass -h admin_transform_menu 121 $qbox" width=80 height=21 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> -<td><button value="Blue Elf" action="bypass -h admin_transform_menu 122 $qbox" width=80 height=21 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> -<td><button value="Gatekeeper 2" action="bypass -h admin_transform_menu 319 $qbox" width=80 height=21 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> +<td><button value="Tin Golem" action="bypass -h admin_transform_menu 116 $qbox" width=80 height=21 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> +<td><button value="Gatekeeper1" action="bypass -h admin_transform_menu 107 $qbox" width=80 height=21 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> +<td><button value="Gatekeeper2" action="bypass -h admin_transform_menu 319 $qbox" width=80 height=21 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> </tr> <tr> -<td><button value="Scarecrow" action="bypass -h admin_transform_menu 115 $qbox" width=80 height=21 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> -<td><button value="Tin Golem" action="bypass -h admin_transform_menu 116 $qbox" width=80 height=21 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> -<td><button value="Child" action="bypass -h admin_transform_menu 112 $qbox" width=80 height=21 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> +<td><button value="Red Elf" action="bypass -h admin_transform_menu 121 $qbox" width=80 height=21 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> +<td><button value="Blue Elf" action="bypass -h admin_transform_menu 122 $qbox" width=80 height=21 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> +<td><button value="Big Blue Elf" action="bypass -h admin_transform_menu 127 $qbox" width=80 height=21 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> </tr> <tr> <td><button value="Purple Tow" action="bypass -h admin_transform_menu 117 $qbox" width=80 height=21 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> @@ -50,11 +50,17 @@ Event Transformations:<br1> </tr> <tr> <td><button value="Grey Tow" action="bypass -h admin_transform_menu 119 $qbox" width=80 height=21 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> -<td><button value="Aqua Elf" action="bypass -h admin_transform_menu 125 $qbox" width=80 height=21 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> +<td><button value="Child" action="bypass -h admin_transform_menu 112 $qbox" width=80 height=21 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> <td><button value="Native Dawn" action="bypass -h admin_transform_menu 124 $qbox" width=80 height=21 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> </tr> <tr> <td><button value="Kadomas" action="bypass -h admin_transform_menu 20000 $qbox" width=80 height=21 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> +<td><button value="Aqua Elf" action="bypass -h admin_transform_menu 125 $qbox" width=80 height=21 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> +<td><button value="Game Man." action="bypass -h admin_transform_menu 22 $qbox" width=80 height=21 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> +</tr> +<tr> +<td><button value="DM Lee" action="bypass -h admin_transform_menu 20005 $qbox" width=80 height=21 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> +<td><button value="DM Karin" action="bypass -h admin_transform_menu 20006 $qbox" width=80 height=21 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> </tr> </table> <br> @@ -66,8 +72,12 @@ Mounts Transformations:<br1> <td><button value="Steam Sledge" action="bypass -h admin_transform_menu 110 $qbox" width=80 height=21 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> </tr> <tr> -<td><button value="Guardian Strider" action="bypass -h admin_transform_menu 123 $qbox" width=80 height=21 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> +<td><button value="Guard Strider" action="bypass -h admin_transform_menu 123 $qbox" width=80 height=21 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> <td><button value="Jet Bike" action="bypass -h admin_transform_menu 20001 $qbox" width=80 height=21 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> +<td><button value="S. Plataform" action="bypass -h admin_transform_menu 20004 $qbox" width=80 height=21 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> +</tr> +<tr> +<td><button value="Wood Horse" action="bypass -h admin_transform_menu 20007 $qbox" width=80 height=21 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> </tr> </table> </center> diff --git a/L2J_DataPack_BETA/dist/game/data/scripts.cfg b/L2J_DataPack_BETA/dist/game/data/scripts.cfg index 9cb829b837..40bbf6c3d9 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts.cfg +++ b/L2J_DataPack_BETA/dist/game/data/scripts.cfg @@ -74,6 +74,7 @@ transformations/ArcherCaptain.java transformations/AurabirdFalcon.java transformations/AurabirdOwl.java transformations/Benom.java +transformations/BlockCheckerBlue.java transformations/Buffalo.java transformations/DarkElfMercenary.java transformations/DemonPrince.java @@ -100,6 +101,7 @@ transformations/EpicQuestChild.java transformations/EpicQuestFrog.java transformations/EpicQuestNative.java transformations/FortressCaptain.java +transformations/GameManager.java transformations/GolemGuardianNormal.java transformations/GolemGuardianStrong.java transformations/GolemGuardianWeak.java @@ -170,6 +172,7 @@ transformations/VanguardPaladin.java transformations/VanguardShilienKnight.java transformations/VanguardTempleKnight.java transformations/WingTow.java +transformations/WoodHorse.java transformations/Yeti.java transformations/Yeti2.java transformations/Zaken.java diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/Akamanah.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/Akamanah.java index c031b12d18..9fc05e2b92 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/Akamanah.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/Akamanah.java @@ -1,3 +1,17 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.instancemanager.TransformationManager; diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/Anakim.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/Anakim.java index 75918e20c9..6a1ae4437d 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/Anakim.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/Anakim.java @@ -1,3 +1,17 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.datatables.SkillTable; @@ -6,7 +20,10 @@ import com.l2jserver.gameserver.model.L2Transformation; public class Anakim extends L2Transformation { - private static final int[] SKILLS = new int[]{720,721,722,723,724,5491,619}; + private static final int[] SKILLS = new int[] + { + 720, 721, 722, 723, 724, 5491, 619 + }; public Anakim() { @@ -17,8 +34,10 @@ public class Anakim extends L2Transformation @Override public void onTransform() { - if (getPlayer().getTransformationId() != 306 || getPlayer().isCursedWeaponEquipped()) + if ((getPlayer().getTransformationId() != 306) || getPlayer().isCursedWeaponEquipped()) + { return; + } transformedSkills(); } diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/AquaElf.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/AquaElf.java index e4e8e1dc5b..14ba45c64d 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/AquaElf.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/AquaElf.java @@ -1,3 +1,17 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.datatables.SkillTable; @@ -6,7 +20,10 @@ import com.l2jserver.gameserver.model.L2Transformation; public class AquaElf extends L2Transformation { - private static final int[] SKILLS = new int[]{619}; + private static final int[] SKILLS = new int[] + { + 619 + }; public AquaElf() { @@ -17,8 +34,10 @@ public class AquaElf extends L2Transformation @Override public void onTransform() { - if (getPlayer().getTransformationId() != 125 || getPlayer().isCursedWeaponEquipped()) + if ((getPlayer().getTransformationId() != 125) || getPlayer().isCursedWeaponEquipped()) + { return; + } transformedSkills(); } diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/ArcherCaptain.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/ArcherCaptain.java index 01f386905e..79170ca8eb 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/ArcherCaptain.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/ArcherCaptain.java @@ -1,3 +1,17 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.datatables.SkillTable; @@ -6,7 +20,10 @@ import com.l2jserver.gameserver.model.L2Transformation; public class ArcherCaptain extends L2Transformation { - private static final int[] SKILLS = new int[]{5491, 619}; + private static final int[] SKILLS = new int[] + { + 5491, 619 + }; public ArcherCaptain() { @@ -17,8 +34,10 @@ public class ArcherCaptain extends L2Transformation @Override public void onTransform() { - if (getPlayer().getTransformationId() != 17 || getPlayer().isCursedWeaponEquipped()) + if ((getPlayer().getTransformationId() != 17) || getPlayer().isCursedWeaponEquipped()) + { return; + } transformedSkills(); } diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/AurabirdFalcon.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/AurabirdFalcon.java index 571a2b72c9..ae1a120e54 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/AurabirdFalcon.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/AurabirdFalcon.java @@ -1,3 +1,17 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.datatables.SkillTable; @@ -6,7 +20,10 @@ import com.l2jserver.gameserver.model.L2Transformation; public class AurabirdFalcon extends L2Transformation { - private static final int[] SKILLS = new int[]{884,885,886,888,890,891,894,911,932,619}; + private static final int[] SKILLS = new int[] + { + 884, 885, 886, 888, 890, 891, 894, 911, 932, 619 + }; public AurabirdFalcon() { @@ -17,8 +34,10 @@ public class AurabirdFalcon extends L2Transformation @Override public void onTransform() { - if (getPlayer().getTransformationId() != 8 || getPlayer().isCursedWeaponEquipped()) + if ((getPlayer().getTransformationId() != 8) || getPlayer().isCursedWeaponEquipped()) + { return; + } getPlayer().setIsFlyingMounted(true); transformedSkills(); @@ -28,13 +47,17 @@ public class AurabirdFalcon extends L2Transformation { // Air Blink if (getPlayer().getLevel() >= 75) + { getPlayer().addSkill(SkillTable.getInstance().getInfo(885, 1), false); + } // Exhilarate if (getPlayer().getLevel() >= 83) + { getPlayer().addSkill(SkillTable.getInstance().getInfo(894, 1), false); + } - int lvl = getPlayer().getLevel() -74; + int lvl = getPlayer().getLevel() - 74; if (lvl > 0) { @@ -73,7 +96,7 @@ public class AurabirdFalcon extends L2Transformation // Exhilarate getPlayer().removeSkill(SkillTable.getInstance().getInfo(894, 1), false); - int lvl = getPlayer().getLevel() -74; + int lvl = getPlayer().getLevel() - 74; if (lvl > 0) { diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/AurabirdOwl.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/AurabirdOwl.java index 5d7f66f9f2..ea965ed141 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/AurabirdOwl.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/AurabirdOwl.java @@ -1,3 +1,17 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.datatables.SkillTable; @@ -6,7 +20,10 @@ import com.l2jserver.gameserver.model.L2Transformation; public class AurabirdOwl extends L2Transformation { - private static final int[] SKILLS = new int[]{884,885,887,889,892,893,895,911,932,619}; + private static final int[] SKILLS = new int[] + { + 884, 885, 887, 889, 892, 893, 895, 911, 932, 619 + }; public AurabirdOwl() { @@ -17,8 +34,10 @@ public class AurabirdOwl extends L2Transformation @Override public void onTransform() { - if (getPlayer().getTransformationId() != 9 || getPlayer().isCursedWeaponEquipped()) + if ((getPlayer().getTransformationId() != 9) || getPlayer().isCursedWeaponEquipped()) + { return; + } getPlayer().setIsFlyingMounted(true); transformedSkills(); @@ -28,13 +47,17 @@ public class AurabirdOwl extends L2Transformation { // Air Blink if (getPlayer().getLevel() >= 75) + { getPlayer().addSkill(SkillTable.getInstance().getInfo(885, 1), false); + } // Exhilarate if (getPlayer().getLevel() >= 83) + { getPlayer().addSkill(SkillTable.getInstance().getInfo(895, 1), false); + } - int lvl = getPlayer().getLevel() -74; + int lvl = getPlayer().getLevel() - 74; if (lvl > 0) { @@ -73,7 +96,7 @@ public class AurabirdOwl extends L2Transformation // Exhilarate getPlayer().removeSkill(SkillTable.getInstance().getInfo(895, 1), false); - int lvl = getPlayer().getLevel() -74; + int lvl = getPlayer().getLevel() - 74; if (lvl > 0) { diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/Benom.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/Benom.java index fbfa94ea5e..80bf9d0bfb 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/Benom.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/Benom.java @@ -1,3 +1,17 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.datatables.SkillTable; @@ -6,7 +20,10 @@ import com.l2jserver.gameserver.model.L2Transformation; public class Benom extends L2Transformation { - private static final int[] SKILLS = new int[]{725,726,727,5491,619}; + private static final int[] SKILLS = new int[] + { + 725, 726, 727, 5491, 619 + }; public Benom() { @@ -17,8 +34,10 @@ public class Benom extends L2Transformation @Override public void onTransform() { - if (getPlayer().getTransformationId() != 307 || getPlayer().isCursedWeaponEquipped()) + if ((getPlayer().getTransformationId() != 307) || getPlayer().isCursedWeaponEquipped()) + { return; + } transformedSkills(); } diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/BlockCheckerBlue.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/BlockCheckerBlue.java new file mode 100644 index 0000000000..d65d148140 --- /dev/null +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/BlockCheckerBlue.java @@ -0,0 +1,74 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ +package transformations; + +import com.l2jserver.gameserver.datatables.SkillTable; +import com.l2jserver.gameserver.instancemanager.TransformationManager; +import com.l2jserver.gameserver.model.L2Transformation; + +/** + * @author Nyaran + */ +public class BlockCheckerBlue extends L2Transformation +{ + private static final int[] SKILLS = + { + 619 + }; + + public BlockCheckerBlue() + { + // id, colRadius, colHeight + super(127, 8, 20.3); + } + + @Override + public void onTransform() + { + if ((getPlayer().getTransformationId() != 127) || getPlayer().isCursedWeaponEquipped()) + { + return; + } + + transformedSkills(); + } + + public void transformedSkills() + { + // Transform Dispel + getPlayer().addSkill(SkillTable.getInstance().getInfo(619, 1), false); + + getPlayer().setTransformAllowedSkills(SKILLS); + } + + @Override + public void onUntransform() + { + removeSkills(); + } + + public void removeSkills() + { + // Transform Dispel + getPlayer().removeSkill(SkillTable.getInstance().getInfo(619, 1), false); + + getPlayer().setTransformAllowedSkills(EMPTY_ARRAY); + } + + public static void main(String[] args) + { + TransformationManager.getInstance().registerTransformation(new BlockCheckerBlue()); + } +} diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/Buffalo.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/Buffalo.java index 3a96684496..0e1796097d 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/Buffalo.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/Buffalo.java @@ -1,3 +1,17 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.datatables.SkillTable; @@ -6,7 +20,10 @@ import com.l2jserver.gameserver.model.L2Transformation; public class Buffalo extends L2Transformation { - private static final int[] SKILLS = new int[]{5437,619}; + private static final int[] SKILLS = new int[] + { + 5437, 619 + }; public Buffalo() { @@ -17,8 +34,10 @@ public class Buffalo extends L2Transformation @Override public void onTransform() { - if (getPlayer().getTransformationId() != 103 || getPlayer().isCursedWeaponEquipped()) + if ((getPlayer().getTransformationId() != 103) || getPlayer().isCursedWeaponEquipped()) + { return; + } transformedSkills(); } diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/DarkElfMercenary.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/DarkElfMercenary.java index ca203309d4..0b8b21baec 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/DarkElfMercenary.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/DarkElfMercenary.java @@ -1,3 +1,17 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.datatables.SkillTable; @@ -6,7 +20,10 @@ import com.l2jserver.gameserver.model.L2Transformation; public class DarkElfMercenary extends L2Transformation { - private static final int[] SKILLS = new int[]{5491, 619}; + private static final int[] SKILLS = new int[] + { + 5491, 619 + }; public DarkElfMercenary() { @@ -17,8 +34,10 @@ public class DarkElfMercenary extends L2Transformation @Override public void onTransform() { - if (getPlayer().getTransformationId() != 12 || getPlayer().isCursedWeaponEquipped()) + if ((getPlayer().getTransformationId() != 12) || getPlayer().isCursedWeaponEquipped()) + { return; + } transformedSkills(); } diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/DarkmanePacer.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/DarkmanePacer.java index 005c4e2b9f..05c470cf8a 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/DarkmanePacer.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/DarkmanePacer.java @@ -1,3 +1,17 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.datatables.SkillTable; diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/DemonPrince.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/DemonPrince.java index 1499f6776a..954480b502 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/DemonPrince.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/DemonPrince.java @@ -1,3 +1,17 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.datatables.SkillTable; @@ -6,7 +20,11 @@ import com.l2jserver.gameserver.model.L2Transformation; public class DemonPrince extends L2Transformation { - private static final int[] SKILLS = {735,736,737,5491,619}; + private static final int[] SKILLS = + { + 735, 736, 737, 5491, 619 + }; + public DemonPrince() { // id, colRadius, colHeight @@ -16,8 +34,10 @@ public class DemonPrince extends L2Transformation @Override public void onTransform() { - if (getPlayer().getTransformationId() != 311 || getPlayer().isCursedWeaponEquipped()) + if ((getPlayer().getTransformationId() != 311) || getPlayer().isCursedWeaponEquipped()) + { return; + } transformedSkills(); } diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/DemonRace.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/DemonRace.java index f13b267e27..6561887c47 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/DemonRace.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/DemonRace.java @@ -1,3 +1,17 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.datatables.SkillTable; @@ -9,7 +23,11 @@ import com.l2jserver.gameserver.model.L2Transformation; */ public class DemonRace extends L2Transformation { - private static final int[] SKILLS = {901,902,903,904,905,5491,619}; + private static final int[] SKILLS = + { + 901, 902, 903, 904, 905, 5491, 619 + }; + public DemonRace() { // id, colRadius, colHeight @@ -19,11 +37,15 @@ public class DemonRace extends L2Transformation @Override public void onTransform() { - if (getPlayer().getTransformationId() != 221 || getPlayer().isCursedWeaponEquipped()) + if ((getPlayer().getTransformationId() != 221) || getPlayer().isCursedWeaponEquipped()) + { return; + } if (getPlayer().getPet() != null) + { getPlayer().getPet().unSummon(getPlayer()); + } transformedSkills(); } diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/DivineEnchanter.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/DivineEnchanter.java index a625849bc1..314aac4d7a 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/DivineEnchanter.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/DivineEnchanter.java @@ -1,3 +1,17 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.datatables.SkillTable; @@ -6,7 +20,11 @@ import com.l2jserver.gameserver.model.L2Transformation; public class DivineEnchanter extends L2Transformation { - private static final int[] SKILLS = {704,705,706,707,708,709,5779,619}; + private static final int[] SKILLS = + { + 704, 705, 706, 707, 708, 709, 5779, 619 + }; + public DivineEnchanter() { // id, colRadius, colHeight @@ -16,8 +34,10 @@ public class DivineEnchanter extends L2Transformation @Override public void onTransform() { - if (getPlayer().getTransformationId() != 257 || getPlayer().isCursedWeaponEquipped()) + if ((getPlayer().getTransformationId() != 257) || getPlayer().isCursedWeaponEquipped()) + { return; + } transformedSkills(); } diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/DivineHealer.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/DivineHealer.java index 2628a70950..443f19fec8 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/DivineHealer.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/DivineHealer.java @@ -1,3 +1,17 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.datatables.SkillTable; @@ -6,7 +20,11 @@ import com.l2jserver.gameserver.model.L2Transformation; public class DivineHealer extends L2Transformation { - private static final int[] SKILLS = {648,803,1490,698,699,700,701,702,703,5491,619}; + private static final int[] SKILLS = + { + 648, 803, 1490, 698, 699, 700, 701, 702, 703, 5491, 619 + }; + public DivineHealer() { // id, colRadius, colHeight @@ -16,8 +34,10 @@ public class DivineHealer extends L2Transformation @Override public void onTransform() { - if (getPlayer().getTransformationId() != 255 || getPlayer().isCursedWeaponEquipped()) + if ((getPlayer().getTransformationId() != 255) || getPlayer().isCursedWeaponEquipped()) + { return; + } transformedSkills(); } diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/DivineKnight.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/DivineKnight.java index dce6f29135..3fcf4d53c5 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/DivineKnight.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/DivineKnight.java @@ -1,3 +1,17 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.datatables.SkillTable; @@ -6,7 +20,11 @@ import com.l2jserver.gameserver.model.L2Transformation; public class DivineKnight extends L2Transformation { - private static final int[] SKILLS = {680,681,682,683,684,685,795,796,5491,619}; + private static final int[] SKILLS = + { + 680, 681, 682, 683, 684, 685, 795, 796, 5491, 619 + }; + public DivineKnight() { // id, colRadius, colHeight @@ -16,8 +34,10 @@ public class DivineKnight extends L2Transformation @Override public void onTransform() { - if (getPlayer().getTransformationId() != 252 || getPlayer().isCursedWeaponEquipped()) + if ((getPlayer().getTransformationId() != 252) || getPlayer().isCursedWeaponEquipped()) + { return; + } transformedSkills(); } diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/DivineRogue.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/DivineRogue.java index a3898a200b..f76ca59f11 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/DivineRogue.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/DivineRogue.java @@ -1,3 +1,17 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.datatables.SkillTable; @@ -6,7 +20,11 @@ import com.l2jserver.gameserver.model.L2Transformation; public class DivineRogue extends L2Transformation { - private static final int[] SKILLS = {686,687,688,689,690,691,797,5491,619}; + private static final int[] SKILLS = + { + 686, 687, 688, 689, 690, 691, 797, 5491, 619 + }; + public DivineRogue() { // id, colRadius, colHeight @@ -16,8 +34,10 @@ public class DivineRogue extends L2Transformation @Override public void onTransform() { - if (getPlayer().getTransformationId() != 254 || getPlayer().isCursedWeaponEquipped()) + if ((getPlayer().getTransformationId() != 254) || getPlayer().isCursedWeaponEquipped()) + { return; + } transformedSkills(); } diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/DivineSummoner.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/DivineSummoner.java index 3fef635fb1..e18182316f 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/DivineSummoner.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/DivineSummoner.java @@ -1,3 +1,17 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.datatables.SkillTable; @@ -6,7 +20,11 @@ import com.l2jserver.gameserver.model.L2Transformation; public class DivineSummoner extends L2Transformation { - private static final int[] SKILLS = {710,711,712,713,714,5779,619}; + private static final int[] SKILLS = + { + 710, 711, 712, 713, 714, 5779, 619 + }; + public DivineSummoner() { // id, colRadius, colHeight @@ -16,11 +34,15 @@ public class DivineSummoner extends L2Transformation @Override public void onTransform() { - if (getPlayer().getTransformationId() != 258 || getPlayer().isCursedWeaponEquipped()) + if ((getPlayer().getTransformationId() != 258) || getPlayer().isCursedWeaponEquipped()) + { return; + } if (getPlayer().getPet() != null) + { getPlayer().getPet().unSummon(getPlayer()); + } transformedSkills(); } @@ -49,7 +71,9 @@ public class DivineSummoner extends L2Transformation public void onUntransform() { if (getPlayer().getPet() != null) + { getPlayer().getPet().unSummon(getPlayer()); + } removeSkills(); } diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/DivineWarrior.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/DivineWarrior.java index 6b238c20f3..8b425f4bd6 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/DivineWarrior.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/DivineWarrior.java @@ -1,3 +1,17 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.datatables.SkillTable; @@ -6,7 +20,11 @@ import com.l2jserver.gameserver.model.L2Transformation; public class DivineWarrior extends L2Transformation { - private static final int[] SKILLS = {675,676,677,678,679,798,5491,619}; + private static final int[] SKILLS = + { + 675, 676, 677, 678, 679, 798, 5491, 619 + }; + public DivineWarrior() { // id, colRadius, colHeight @@ -16,8 +34,10 @@ public class DivineWarrior extends L2Transformation @Override public void onTransform() { - if (getPlayer().getTransformationId() != 253 || getPlayer().isCursedWeaponEquipped()) + if ((getPlayer().getTransformationId() != 253) || getPlayer().isCursedWeaponEquipped()) + { return; + } transformedSkills(); } diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/DivineWizard.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/DivineWizard.java index de13eee5cc..6564a35c89 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/DivineWizard.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/DivineWizard.java @@ -1,3 +1,17 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.datatables.SkillTable; @@ -6,7 +20,11 @@ import com.l2jserver.gameserver.model.L2Transformation; public class DivineWizard extends L2Transformation { - private static final int[] SKILLS = {692,693,694,695,696,697,5491,619}; + private static final int[] SKILLS = + { + 692, 693, 694, 695, 696, 697, 5491, 619 + }; + public DivineWizard() { // id, colRadius, colHeight @@ -16,8 +34,10 @@ public class DivineWizard extends L2Transformation @Override public void onTransform() { - if (getPlayer().getTransformationId() != 256 || getPlayer().isCursedWeaponEquipped()) + if ((getPlayer().getTransformationId() != 256) || getPlayer().isCursedWeaponEquipped()) + { return; + } transformedSkills(); } diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/DollBlader.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/DollBlader.java index aba31afde2..c555d85815 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/DollBlader.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/DollBlader.java @@ -1,3 +1,17 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.datatables.SkillTable; @@ -6,7 +20,11 @@ import com.l2jserver.gameserver.model.L2Transformation; public class DollBlader extends L2Transformation { - private static final int[] SKILLS = {752,753,754,5491,619}; + private static final int[] SKILLS = + { + 752, 753, 754, 5491, 619 + }; + public DollBlader() { // id, colRadius, colHeight @@ -16,8 +34,10 @@ public class DollBlader extends L2Transformation @Override public void onTransform() { - if (getPlayer().getTransformationId() != 7 || getPlayer().isCursedWeaponEquipped()) + if ((getPlayer().getTransformationId() != 7) || getPlayer().isCursedWeaponEquipped()) + { return; + } transformedSkills(); } diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/DoomWraith.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/DoomWraith.java index b0a75823d9..07363276af 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/DoomWraith.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/DoomWraith.java @@ -1,3 +1,17 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.datatables.SkillTable; @@ -6,7 +20,11 @@ import com.l2jserver.gameserver.model.L2Transformation; public class DoomWraith extends L2Transformation { - private static final int[] SKILLS = {586,587,588,589,5491,619}; + private static final int[] SKILLS = + { + 586, 587, 588, 589, 5491, 619 + }; + public DoomWraith() { // id, colRadius, colHeight @@ -16,8 +34,10 @@ public class DoomWraith extends L2Transformation @Override public void onTransform() { - if (getPlayer().getTransformationId() != 2 || getPlayer().isCursedWeaponEquipped()) + if ((getPlayer().getTransformationId() != 2) || getPlayer().isCursedWeaponEquipped()) + { return; + } transformedSkills(); } diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/DragonBomberNormal.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/DragonBomberNormal.java index fc57d7996a..81d847f6ca 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/DragonBomberNormal.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/DragonBomberNormal.java @@ -1,3 +1,17 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.datatables.SkillTable; @@ -6,7 +20,11 @@ import com.l2jserver.gameserver.model.L2Transformation; public class DragonBomberNormal extends L2Transformation { - private static final int[] SKILLS = {580,581,582,583,5491,619}; + private static final int[] SKILLS = + { + 580, 581, 582, 583, 5491, 619 + }; + public DragonBomberNormal() { // id, colRadius, colHeight @@ -16,8 +34,10 @@ public class DragonBomberNormal extends L2Transformation @Override public void onTransform() { - if (getPlayer().getTransformationId() != 217 || getPlayer().isCursedWeaponEquipped()) + if ((getPlayer().getTransformationId() != 217) || getPlayer().isCursedWeaponEquipped()) + { return; + } transformedSkills(); } diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/DragonBomberStrong.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/DragonBomberStrong.java index bfd3a0db52..a7cdddac8e 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/DragonBomberStrong.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/DragonBomberStrong.java @@ -1,3 +1,17 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.datatables.SkillTable; @@ -6,7 +20,11 @@ import com.l2jserver.gameserver.model.L2Transformation; public class DragonBomberStrong extends L2Transformation { - private static final int[] SKILLS = {580,581,582,583,5491,619}; + private static final int[] SKILLS = + { + 580, 581, 582, 583, 5491, 619 + }; + public DragonBomberStrong() { // id, colRadius, colHeight @@ -16,8 +34,10 @@ public class DragonBomberStrong extends L2Transformation @Override public void onTransform() { - if (getPlayer().getTransformationId() != 216 || getPlayer().isCursedWeaponEquipped()) + if ((getPlayer().getTransformationId() != 216) || getPlayer().isCursedWeaponEquipped()) + { return; + } transformedSkills(); } diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/DragonBomberWeak.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/DragonBomberWeak.java index c8ad60cff5..10094e7ba0 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/DragonBomberWeak.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/DragonBomberWeak.java @@ -1,3 +1,17 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.datatables.SkillTable; @@ -6,7 +20,11 @@ import com.l2jserver.gameserver.model.L2Transformation; public class DragonBomberWeak extends L2Transformation { - private static final int[] SKILLS = {580,581,582,583,5491,619}; + private static final int[] SKILLS = + { + 580, 581, 582, 583, 5491, 619 + }; + public DragonBomberWeak() { // id, colRadius, colHeight @@ -16,8 +34,10 @@ public class DragonBomberWeak extends L2Transformation @Override public void onTransform() { - if (getPlayer().getTransformationId() != 218 || getPlayer().isCursedWeaponEquipped()) + if ((getPlayer().getTransformationId() != 218) || getPlayer().isCursedWeaponEquipped()) + { return; + } transformedSkills(); } diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/DragonMasterKarin.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/DragonMasterKarin.java index 28d6edac46..e9643f06ee 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/DragonMasterKarin.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/DragonMasterKarin.java @@ -1,12 +1,33 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.datatables.SkillTable; import com.l2jserver.gameserver.instancemanager.TransformationManager; import com.l2jserver.gameserver.model.L2Transformation; +/** + * @author Tan + */ public class DragonMasterKarin extends L2Transformation { - private static final int[] SKILLS = {5491,619,20003,20004,20005}; + private static final int[] SKILLS = + { + 5491, 619, 20003, 20004, 20005 + }; + public DragonMasterKarin() { // id, colRadius, colHeight @@ -16,8 +37,10 @@ public class DragonMasterKarin extends L2Transformation @Override public void onTransform() { - if (getPlayer().getTransformationId() != 20006 || getPlayer().isCursedWeaponEquipped()) + if ((getPlayer().getTransformationId() != 20006) || getPlayer().isCursedWeaponEquipped()) + { return; + } transformedSkills(); } @@ -64,4 +87,4 @@ public class DragonMasterKarin extends L2Transformation { TransformationManager.getInstance().registerTransformation(new DragonMasterKarin()); } -} \ No newline at end of file +} diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/DragonMasterLee.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/DragonMasterLee.java index 3121eb8529..55d2afc1ea 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/DragonMasterLee.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/DragonMasterLee.java @@ -1,12 +1,33 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.datatables.SkillTable; import com.l2jserver.gameserver.instancemanager.TransformationManager; import com.l2jserver.gameserver.model.L2Transformation; +/** + * @author Tan + */ public class DragonMasterLee extends L2Transformation { - private static final int[] SKILLS = {5491,619,20002,20004,20005}; + private static final int[] SKILLS = + { + 5491, 619, 20002, 20004, 20005 + }; + public DragonMasterLee() { // id, colRadius, colHeight @@ -16,8 +37,10 @@ public class DragonMasterLee extends L2Transformation @Override public void onTransform() { - if (getPlayer().getTransformationId() != 20005 || getPlayer().isCursedWeaponEquipped()) + if ((getPlayer().getTransformationId() != 20005) || getPlayer().isCursedWeaponEquipped()) + { return; + } transformedSkills(); } @@ -64,4 +87,4 @@ public class DragonMasterLee extends L2Transformation { TransformationManager.getInstance().registerTransformation(new DragonMasterLee()); } -} \ No newline at end of file +} diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/DwarfGolem.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/DwarfGolem.java index 9c62b0efde..720fcb1ef2 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/DwarfGolem.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/DwarfGolem.java @@ -1,3 +1,17 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.datatables.SkillTable; @@ -6,7 +20,11 @@ import com.l2jserver.gameserver.model.L2Transformation; public class DwarfGolem extends L2Transformation { - private static final int[] SKILLS = {806,807,808,809,5491,619}; + private static final int[] SKILLS = + { + 806, 807, 808, 809, 5491, 619 + }; + public DwarfGolem() { // id, colRadius, colHeight @@ -16,8 +34,10 @@ public class DwarfGolem extends L2Transformation @Override public void onTransform() { - if (getPlayer().getTransformationId() != 259 || getPlayer().isCursedWeaponEquipped()) + if ((getPlayer().getTransformationId() != 259) || getPlayer().isCursedWeaponEquipped()) + { return; + } transformedSkills(); } diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/DwarfMercenary.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/DwarfMercenary.java index 73e259178d..852fb60ddb 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/DwarfMercenary.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/DwarfMercenary.java @@ -1,3 +1,17 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.datatables.SkillTable; @@ -6,7 +20,11 @@ import com.l2jserver.gameserver.model.L2Transformation; public class DwarfMercenary extends L2Transformation { - private static final int[] SKILLS = {5491,619}; + private static final int[] SKILLS = + { + 5491, 619 + }; + public DwarfMercenary() { // id, colRadius, colHeight @@ -16,8 +34,10 @@ public class DwarfMercenary extends L2Transformation @Override public void onTransform() { - if (getPlayer().getTransformationId() != 14 || getPlayer().isCursedWeaponEquipped()) + if ((getPlayer().getTransformationId() != 14) || getPlayer().isCursedWeaponEquipped()) + { return; + } transformedSkills(); } diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/ElfMercenary.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/ElfMercenary.java index 921eef8b2b..92c82cde39 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/ElfMercenary.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/ElfMercenary.java @@ -1,3 +1,17 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.datatables.SkillTable; @@ -6,7 +20,11 @@ import com.l2jserver.gameserver.model.L2Transformation; public class ElfMercenary extends L2Transformation { - private static final int[] SKILLS = {5491,619}; + private static final int[] SKILLS = + { + 5491, 619 + }; + public ElfMercenary() { // id, colRadius, colHeight @@ -16,8 +34,10 @@ public class ElfMercenary extends L2Transformation @Override public void onTransform() { - if (getPlayer().getTransformationId() != 11 || getPlayer().isCursedWeaponEquipped()) + if ((getPlayer().getTransformationId() != 11) || getPlayer().isCursedWeaponEquipped()) + { return; + } transformedSkills(); } diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/EpicQuestChild.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/EpicQuestChild.java index 734dcc58d4..1e1785fbbb 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/EpicQuestChild.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/EpicQuestChild.java @@ -1,3 +1,17 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.datatables.SkillTable; @@ -6,7 +20,10 @@ import com.l2jserver.gameserver.model.L2Transformation; public class EpicQuestChild extends L2Transformation { - private static final int[] SKILLS = { 5437, 960 }; + private static final int[] SKILLS = + { + 5437, 960 + }; public EpicQuestChild() { @@ -17,8 +34,10 @@ public class EpicQuestChild extends L2Transformation @Override public void onTransform() { - if (getPlayer().getTransformationId() != 112 || getPlayer().isCursedWeaponEquipped()) + if ((getPlayer().getTransformationId() != 112) || getPlayer().isCursedWeaponEquipped()) + { return; + } transformedSkills(); } diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/EpicQuestFrog.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/EpicQuestFrog.java index 198888effc..a7e1131241 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/EpicQuestFrog.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/EpicQuestFrog.java @@ -1,3 +1,17 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.datatables.SkillTable; @@ -6,7 +20,10 @@ import com.l2jserver.gameserver.model.L2Transformation; public class EpicQuestFrog extends L2Transformation { - private static final int[] SKILLS = { 5437, 959 }; + private static final int[] SKILLS = + { + 5437, 959 + }; public EpicQuestFrog() { @@ -17,8 +34,10 @@ public class EpicQuestFrog extends L2Transformation @Override public void onTransform() { - if (getPlayer().getTransformationId() != 111 || getPlayer().isCursedWeaponEquipped()) + if ((getPlayer().getTransformationId() != 111) || getPlayer().isCursedWeaponEquipped()) + { return; + } transformedSkills(); } diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/EpicQuestNative.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/EpicQuestNative.java index d792436cde..229e408963 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/EpicQuestNative.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/EpicQuestNative.java @@ -1,3 +1,17 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.datatables.SkillTable; @@ -6,7 +20,10 @@ import com.l2jserver.gameserver.model.L2Transformation; public class EpicQuestNative extends L2Transformation { - private static final int[] SKILLS = { 5437, 961 }; + private static final int[] SKILLS = + { + 5437, 961 + }; public EpicQuestNative() { @@ -17,8 +34,10 @@ public class EpicQuestNative extends L2Transformation @Override public void onTransform() { - if (getPlayer().getTransformationId() != 124 || getPlayer().isCursedWeaponEquipped()) + if ((getPlayer().getTransformationId() != 124) || getPlayer().isCursedWeaponEquipped()) + { return; + } transformedSkills(); } diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/FlyingFinalForm.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/FlyingFinalForm.java index e50d9223c7..1c9e0e0574 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/FlyingFinalForm.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/FlyingFinalForm.java @@ -1,3 +1,17 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.datatables.SkillTable; @@ -6,7 +20,11 @@ import com.l2jserver.gameserver.model.L2Transformation; public class FlyingFinalForm extends L2Transformation { - private static final int[] SKILLS = {932,950,951,953,1544,1545,619}; + private static final int[] SKILLS = + { + 932, 950, 951, 953, 1544, 1545, 619 + }; + public FlyingFinalForm() { // id, colRadius, colHeight @@ -16,8 +34,10 @@ public class FlyingFinalForm extends L2Transformation @Override public void onTransform() { - if (getPlayer().getTransformationId() != 260 || getPlayer().isCursedWeaponEquipped()) + if ((getPlayer().getTransformationId() != 260) || getPlayer().isCursedWeaponEquipped()) + { return; + } getPlayer().setIsFlyingMounted(true); @@ -31,7 +51,7 @@ public class FlyingFinalForm extends L2Transformation // Soul Sucking getPlayer().addSkill(SkillTable.getInstance().getInfo(1545, 1), false); - int lvl = getPlayer().getLevel() -78; + int lvl = getPlayer().getLevel() - 78; if (lvl > 0) { @@ -63,7 +83,7 @@ public class FlyingFinalForm extends L2Transformation // Soul Sucking getPlayer().removeSkill(SkillTable.getInstance().getInfo(1545, 1), false); - int lvl = getPlayer().getLevel() -78; + int lvl = getPlayer().getLevel() - 78; if (lvl > 0) { diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/FortressCaptain.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/FortressCaptain.java index cf6a4c1934..be2df52e6a 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/FortressCaptain.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/FortressCaptain.java @@ -1,3 +1,17 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.datatables.SkillTable; @@ -6,7 +20,11 @@ import com.l2jserver.gameserver.model.L2Transformation; public class FortressCaptain extends L2Transformation { - private static final int[] SKILLS = {5491,619}; + private static final int[] SKILLS = + { + 5491, 619 + }; + public FortressCaptain() { // id, colRadius, colHeight @@ -16,8 +34,10 @@ public class FortressCaptain extends L2Transformation @Override public void onTransform() { - if (getPlayer().getTransformationId() != 21 || getPlayer().isCursedWeaponEquipped()) + if ((getPlayer().getTransformationId() != 21) || getPlayer().isCursedWeaponEquipped()) + { return; + } transformedSkills(); } diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/GameManager.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/GameManager.java new file mode 100644 index 0000000000..79cf39c4be --- /dev/null +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/GameManager.java @@ -0,0 +1,74 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ +package transformations; + +import com.l2jserver.gameserver.datatables.SkillTable; +import com.l2jserver.gameserver.instancemanager.TransformationManager; +import com.l2jserver.gameserver.model.L2Transformation; + +/** + * @author Nyaran + */ +public class GameManager extends L2Transformation +{ + private static final int[] SKILLS = + { + 619 + }; + + public GameManager() + { + // id, colRadius, colHeight + super(22, 8, 22.3); + } + + @Override + public void onTransform() + { + if ((getPlayer().getTransformationId() != 22) || getPlayer().isCursedWeaponEquipped()) + { + return; + } + + transformedSkills(); + } + + public void transformedSkills() + { + // Transform Dispel + getPlayer().addSkill(SkillTable.getInstance().getInfo(619, 1), false); + + getPlayer().setTransformAllowedSkills(SKILLS); + } + + @Override + public void onUntransform() + { + removeSkills(); + } + + public void removeSkills() + { + // Transform Dispel + getPlayer().removeSkill(SkillTable.getInstance().getInfo(619, 1), false); + + getPlayer().setTransformAllowedSkills(EMPTY_ARRAY); + } + + public static void main(String[] args) + { + TransformationManager.getInstance().registerTransformation(new GameManager()); + } +} diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/GolemGuardianNormal.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/GolemGuardianNormal.java index f1d82c8eec..1e2b4b35db 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/GolemGuardianNormal.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/GolemGuardianNormal.java @@ -1,3 +1,17 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.datatables.SkillTable; @@ -6,7 +20,11 @@ import com.l2jserver.gameserver.model.L2Transformation; public class GolemGuardianNormal extends L2Transformation { - private static final int[] SKILLS = {572,573,574,575,5491,619}; + private static final int[] SKILLS = + { + 572, 573, 574, 575, 5491, 619 + }; + public GolemGuardianNormal() { // id, colRadius, colHeight @@ -16,8 +34,10 @@ public class GolemGuardianNormal extends L2Transformation @Override public void onTransform() { - if (getPlayer().getTransformationId() != 211 || getPlayer().isCursedWeaponEquipped()) + if ((getPlayer().getTransformationId() != 211) || getPlayer().isCursedWeaponEquipped()) + { return; + } transformedSkills(); } diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/GolemGuardianStrong.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/GolemGuardianStrong.java index d3eb3c0cd3..8494ff9e4c 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/GolemGuardianStrong.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/GolemGuardianStrong.java @@ -1,3 +1,17 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.datatables.SkillTable; @@ -6,7 +20,11 @@ import com.l2jserver.gameserver.model.L2Transformation; public class GolemGuardianStrong extends L2Transformation { - private static final int[] SKILLS = {572,573,574,575,5491,619}; + private static final int[] SKILLS = + { + 572, 573, 574, 575, 5491, 619 + }; + public GolemGuardianStrong() { // id, colRadius, colHeight @@ -16,8 +34,10 @@ public class GolemGuardianStrong extends L2Transformation @Override public void onTransform() { - if (getPlayer().getTransformationId() != 210 || getPlayer().isCursedWeaponEquipped()) + if ((getPlayer().getTransformationId() != 210) || getPlayer().isCursedWeaponEquipped()) + { return; + } transformedSkills(); } diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/GolemGuardianWeak.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/GolemGuardianWeak.java index 614d4557f8..15e3f1c484 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/GolemGuardianWeak.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/GolemGuardianWeak.java @@ -1,3 +1,17 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.datatables.SkillTable; @@ -6,7 +20,11 @@ import com.l2jserver.gameserver.model.L2Transformation; public class GolemGuardianWeak extends L2Transformation { - private static final int[] SKILLS = {572,573,574,575,5491,619}; + private static final int[] SKILLS = + { + 572, 573, 574, 575, 5491, 619 + }; + public GolemGuardianWeak() { // id, colRadius, colHeight @@ -16,8 +34,10 @@ public class GolemGuardianWeak extends L2Transformation @Override public void onTransform() { - if (getPlayer().getTransformationId() != 212 || getPlayer().isCursedWeaponEquipped()) + if ((getPlayer().getTransformationId() != 212) || getPlayer().isCursedWeaponEquipped()) + { return; + } transformedSkills(); } diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/Gordon.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/Gordon.java index f67bfb89c3..d6309101cc 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/Gordon.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/Gordon.java @@ -1,3 +1,17 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.datatables.SkillTable; @@ -6,7 +20,11 @@ import com.l2jserver.gameserver.model.L2Transformation; public class Gordon extends L2Transformation { - private static final int[] SKILLS = {728,729,730,5491,619}; + private static final int[] SKILLS = + { + 728, 729, 730, 5491, 619 + }; + public Gordon() { // id, colRadius, colHeight @@ -16,8 +34,10 @@ public class Gordon extends L2Transformation @Override public void onTransform() { - if (getPlayer().getTransformationId() != 308 || getPlayer().isCursedWeaponEquipped()) + if ((getPlayer().getTransformationId() != 308) || getPlayer().isCursedWeaponEquipped()) + { return; + } transformedSkills(); } diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/GrailApostleNormal.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/GrailApostleNormal.java index fa88d05f92..7915d291b8 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/GrailApostleNormal.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/GrailApostleNormal.java @@ -1,3 +1,17 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.datatables.SkillTable; @@ -6,7 +20,11 @@ import com.l2jserver.gameserver.model.L2Transformation; public class GrailApostleNormal extends L2Transformation { - private static final int[] SKILLS = {559,560,561,562,5491,619}; + private static final int[] SKILLS = + { + 559, 560, 561, 562, 5491, 619 + }; + public GrailApostleNormal() { // id, colRadius, colHeight @@ -16,8 +34,10 @@ public class GrailApostleNormal extends L2Transformation @Override public void onTransform() { - if (getPlayer().getTransformationId() != 202 || getPlayer().isCursedWeaponEquipped()) + if ((getPlayer().getTransformationId() != 202) || getPlayer().isCursedWeaponEquipped()) + { return; + } transformedSkills(); } diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/GrailApostleStrong.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/GrailApostleStrong.java index 1bc815dcaa..ec5f1a6f2d 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/GrailApostleStrong.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/GrailApostleStrong.java @@ -1,3 +1,17 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.datatables.SkillTable; @@ -6,7 +20,11 @@ import com.l2jserver.gameserver.model.L2Transformation; public class GrailApostleStrong extends L2Transformation { - private static final int[] SKILLS = {559,560,561,562,5491,619}; + private static final int[] SKILLS = + { + 559, 560, 561, 562, 5491, 619 + }; + public GrailApostleStrong() { // id, colRadius, colHeight @@ -16,8 +34,10 @@ public class GrailApostleStrong extends L2Transformation @Override public void onTransform() { - if (getPlayer().getTransformationId() != 201 || getPlayer().isCursedWeaponEquipped()) + if ((getPlayer().getTransformationId() != 201) || getPlayer().isCursedWeaponEquipped()) + { return; + } transformedSkills(); } diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/GrailApostleWeak.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/GrailApostleWeak.java index 8624b22414..a91542213c 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/GrailApostleWeak.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/GrailApostleWeak.java @@ -1,3 +1,17 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.datatables.SkillTable; @@ -6,7 +20,11 @@ import com.l2jserver.gameserver.model.L2Transformation; public class GrailApostleWeak extends L2Transformation { - private static final int[] SKILLS = {559,560,561,562,5491,619}; + private static final int[] SKILLS = + { + 559, 560, 561, 562, 5491, 619 + }; + public GrailApostleWeak() { // id, colRadius, colHeight @@ -16,8 +34,10 @@ public class GrailApostleWeak extends L2Transformation @Override public void onTransform() { - if (getPlayer().getTransformationId() != 203 || getPlayer().isCursedWeaponEquipped()) + if ((getPlayer().getTransformationId() != 203) || getPlayer().isCursedWeaponEquipped()) + { return; + } transformedSkills(); } diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/GrizzlyBear.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/GrizzlyBear.java index 13a7c38cea..7832f2ffac 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/GrizzlyBear.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/GrizzlyBear.java @@ -1,3 +1,17 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.datatables.SkillTable; @@ -6,7 +20,11 @@ import com.l2jserver.gameserver.model.L2Transformation; public class GrizzlyBear extends L2Transformation { - private static final int[] SKILLS = {5491,619}; + private static final int[] SKILLS = + { + 5491, 619 + }; + public GrizzlyBear() { // id, colRadius, colHeight @@ -16,8 +34,10 @@ public class GrizzlyBear extends L2Transformation @Override public void onTransform() { - if (getPlayer().getTransformationId() != 320 || getPlayer().isCursedWeaponEquipped()) + if ((getPlayer().getTransformationId() != 320) || getPlayer().isCursedWeaponEquipped()) + { return; + } transformedSkills(); } diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/GuardianStrider.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/GuardianStrider.java index cca9bd3ad3..230a286cde 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/GuardianStrider.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/GuardianStrider.java @@ -1,3 +1,17 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.datatables.SkillTable; @@ -6,7 +20,11 @@ import com.l2jserver.gameserver.model.L2Transformation; public class GuardianStrider extends L2Transformation { - private static final int[] SKILLS = {839}; + private static final int[] SKILLS = + { + 839 + }; + public GuardianStrider() { // id, colRadius, colHeight @@ -16,8 +34,10 @@ public class GuardianStrider extends L2Transformation @Override public void onTransform() { - if (getPlayer().getTransformationId() != 123 || getPlayer().isCursedWeaponEquipped()) + if ((getPlayer().getTransformationId() != 123) || getPlayer().isCursedWeaponEquipped()) + { return; + } transformedSkills(); } diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/GuardsoftheDawn.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/GuardsoftheDawn.java index a467da3836..48eda88d5a 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/GuardsoftheDawn.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/GuardsoftheDawn.java @@ -1,3 +1,17 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.datatables.SkillTable; @@ -6,7 +20,11 @@ import com.l2jserver.gameserver.model.L2Transformation; public class GuardsoftheDawn extends L2Transformation { - private static final int[] SKILLS = {5491,619,963}; + private static final int[] SKILLS = + { + 5491, 619, 963 + }; + public GuardsoftheDawn() { // id, colRadius, colHeight @@ -16,8 +34,10 @@ public class GuardsoftheDawn extends L2Transformation @Override public void onTransform() { - if (getPlayer().getTransformationId() != 113 || getPlayer().isCursedWeaponEquipped()) + if ((getPlayer().getTransformationId() != 113) || getPlayer().isCursedWeaponEquipped()) + { return; + } transformedSkills(); } @@ -29,7 +49,7 @@ public class GuardsoftheDawn extends L2Transformation // Transform Dispel getPlayer().addSkill(SkillTable.getInstance().getInfo(619, 1), false); // Guard Ambush - getPlayer().addSkill(SkillTable.getInstance().getInfo(963, 1), false); + getPlayer().addSkill(SkillTable.getInstance().getInfo(963, 1), false); getPlayer().setTransformAllowedSkills(SKILLS); } @@ -47,7 +67,7 @@ public class GuardsoftheDawn extends L2Transformation // Transform Dispel getPlayer().removeSkill(SkillTable.getInstance().getInfo(619, 1), false); // Guard's Ambush - getPlayer().removeSkill(SkillTable.getInstance().getInfo(963, 1), false); + getPlayer().removeSkill(SkillTable.getInstance().getInfo(963, 1), false); getPlayer().setTransformAllowedSkills(EMPTY_ARRAY); } diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/HeavyTow.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/HeavyTow.java index 4fb3f855bd..87f1b686df 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/HeavyTow.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/HeavyTow.java @@ -1,3 +1,17 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.datatables.SkillTable; @@ -6,7 +20,11 @@ import com.l2jserver.gameserver.model.L2Transformation; public class HeavyTow extends L2Transformation { - private static final int[] SKILLS = {5491,619}; + private static final int[] SKILLS = + { + 5491, 619 + }; + public HeavyTow() { // id, colRadius, colHeight @@ -16,8 +34,10 @@ public class HeavyTow extends L2Transformation @Override public void onTransform() { - if (getPlayer().getTransformationId() != 119 || getPlayer().isCursedWeaponEquipped()) + if ((getPlayer().getTransformationId() != 119) || getPlayer().isCursedWeaponEquipped()) + { return; + } transformedSkills(); } diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/Heretic.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/Heretic.java index c5c656a919..aa90579813 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/Heretic.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/Heretic.java @@ -1,3 +1,17 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.datatables.SkillTable; @@ -6,7 +20,11 @@ import com.l2jserver.gameserver.model.L2Transformation; public class Heretic extends L2Transformation { - private static final int[] SKILLS = {738,739,740,741,5491,619}; + private static final int[] SKILLS = + { + 738, 739, 740, 741, 5491, 619 + }; + public Heretic() { // id, colRadius, colHeight @@ -16,8 +34,10 @@ public class Heretic extends L2Transformation @Override public void onTransform() { - if (getPlayer().getTransformationId() != 3 || getPlayer().isCursedWeaponEquipped()) + if ((getPlayer().getTransformationId() != 3) || getPlayer().isCursedWeaponEquipped()) + { return; + } transformedSkills(); } diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/HumanMercenary.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/HumanMercenary.java index 20d5a79f8f..e518c05934 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/HumanMercenary.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/HumanMercenary.java @@ -1,3 +1,17 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.datatables.SkillTable; @@ -6,7 +20,11 @@ import com.l2jserver.gameserver.model.L2Transformation; public class HumanMercenary extends L2Transformation { - private static final int[] SKILLS = {5491,619}; + private static final int[] SKILLS = + { + 5491, 619 + }; + public HumanMercenary() { // id, colRadius, colHeight @@ -16,8 +34,10 @@ public class HumanMercenary extends L2Transformation @Override public void onTransform() { - if (getPlayer().getTransformationId() != 10 || getPlayer().isCursedWeaponEquipped()) + if ((getPlayer().getTransformationId() != 10) || getPlayer().isCursedWeaponEquipped()) + { return; + } transformedSkills(); } diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/InfernoDrakeNormal.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/InfernoDrakeNormal.java index f94f327abc..4a91559a4c 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/InfernoDrakeNormal.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/InfernoDrakeNormal.java @@ -1,3 +1,17 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.datatables.SkillTable; @@ -6,7 +20,11 @@ import com.l2jserver.gameserver.model.L2Transformation; public class InfernoDrakeNormal extends L2Transformation { - private static final int[] SKILLS = {619,5491,576,577,578,579}; + private static final int[] SKILLS = + { + 619, 5491, 576, 577, 578, 579 + }; + public InfernoDrakeNormal() { // id, colRadius, colHeight @@ -16,8 +34,10 @@ public class InfernoDrakeNormal extends L2Transformation @Override public void onTransform() { - if (getPlayer().getTransformationId() != 214 || getPlayer().isCursedWeaponEquipped()) + if ((getPlayer().getTransformationId() != 214) || getPlayer().isCursedWeaponEquipped()) + { return; + } transformedSkills(); } diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/InfernoDrakeStrong.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/InfernoDrakeStrong.java index 7de56cfa64..3fc24bedb6 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/InfernoDrakeStrong.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/InfernoDrakeStrong.java @@ -1,3 +1,17 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.datatables.SkillTable; @@ -6,7 +20,11 @@ import com.l2jserver.gameserver.model.L2Transformation; public class InfernoDrakeStrong extends L2Transformation { - private static final int[] SKILLS = {576,577,578,579,5491,619}; + private static final int[] SKILLS = + { + 576, 577, 578, 579, 5491, 619 + }; + public InfernoDrakeStrong() { // id, colRadius, colHeight @@ -16,8 +34,10 @@ public class InfernoDrakeStrong extends L2Transformation @Override public void onTransform() { - if (getPlayer().getTransformationId() != 213 || getPlayer().isCursedWeaponEquipped()) + if ((getPlayer().getTransformationId() != 213) || getPlayer().isCursedWeaponEquipped()) + { return; + } transformedSkills(); } diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/InfernoDrakeWeak.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/InfernoDrakeWeak.java index 34652b6e41..3978a49334 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/InfernoDrakeWeak.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/InfernoDrakeWeak.java @@ -1,3 +1,17 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.datatables.SkillTable; @@ -6,7 +20,11 @@ import com.l2jserver.gameserver.model.L2Transformation; public class InfernoDrakeWeak extends L2Transformation { - private static final int[] SKILLS = {576,577,578,579,5491,619}; + private static final int[] SKILLS = + { + 576, 577, 578, 579, 5491, 619 + }; + public InfernoDrakeWeak() { // id, colRadius, colHeight @@ -16,8 +34,10 @@ public class InfernoDrakeWeak extends L2Transformation @Override public void onTransform() { - if (getPlayer().getTransformationId() != 215 || getPlayer().isCursedWeaponEquipped()) + if ((getPlayer().getTransformationId() != 215) || getPlayer().isCursedWeaponEquipped()) + { return; + } transformedSkills(); } diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/InquisitorBishop.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/InquisitorBishop.java index 600971e436..d6540efab5 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/InquisitorBishop.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/InquisitorBishop.java @@ -1,3 +1,17 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.datatables.SkillTable; @@ -15,8 +29,10 @@ public class InquisitorBishop extends L2Transformation @Override public void onTransform() { - if (getPlayer().getTransformationId() != 316 || getPlayer().isCursedWeaponEquipped()) + if ((getPlayer().getTransformationId() != 316) || getPlayer().isCursedWeaponEquipped()) + { return; + } transformedSkills(); } @@ -25,7 +41,9 @@ public class InquisitorBishop extends L2Transformation { int lvl = 1; if (getPlayer().getLevel() > 43) + { lvl = (getPlayer().getLevel() - 43); + } // Divine Punishment getPlayer().addSkill(SkillTable.getInstance().getInfo(1523, lvl), false); @@ -36,7 +54,10 @@ public class InquisitorBishop extends L2Transformation // Divine Curse getPlayer().addSkill(SkillTable.getInstance().getInfo(1525, lvl), false); // Set allowed skills - getPlayer().setTransformAllowedSkills(new int[]{838,1523,1528,1524,1525,1430,1043,1042,1400,1418}); + getPlayer().setTransformAllowedSkills(new int[] + { + 838, 1523, 1528, 1524, 1525, 1430, 1043, 1042, 1400, 1418 + }); // Switch Stance getPlayer().addSkill(SkillTable.getInstance().getInfo(838, 1), false); } @@ -51,7 +72,9 @@ public class InquisitorBishop extends L2Transformation { int lvl = 1; if (getPlayer().getLevel() > 43) + { lvl = (getPlayer().getLevel() - 43); + } // Divine Punishment getPlayer().removeSkill(SkillTable.getInstance().getInfo(1523, lvl), false); diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/InquisitorElvenElder.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/InquisitorElvenElder.java index d5d575b73c..93508ae883 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/InquisitorElvenElder.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/InquisitorElvenElder.java @@ -1,3 +1,17 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.datatables.SkillTable; @@ -15,8 +29,10 @@ public class InquisitorElvenElder extends L2Transformation @Override public void onTransform() { - if (getPlayer().getTransformationId() != 317 || getPlayer().isCursedWeaponEquipped()) + if ((getPlayer().getTransformationId() != 317) || getPlayer().isCursedWeaponEquipped()) + { return; + } transformedSkills(); } @@ -25,7 +41,9 @@ public class InquisitorElvenElder extends L2Transformation { int lvl = 1; if (getPlayer().getLevel() > 43) + { lvl = (getPlayer().getLevel() - 43); + } // Divine Punishment getPlayer().addSkill(SkillTable.getInstance().getInfo(1523, lvl), false); @@ -36,7 +54,10 @@ public class InquisitorElvenElder extends L2Transformation // Divine Curse getPlayer().addSkill(SkillTable.getInstance().getInfo(1525, lvl), false); // Set allowed skills - getPlayer().setTransformAllowedSkills(new int[]{838,1523,1528,1524,1525,1430,1043,1400,1303}); + getPlayer().setTransformAllowedSkills(new int[] + { + 838, 1523, 1528, 1524, 1525, 1430, 1043, 1400, 1303 + }); // Switch Stance getPlayer().addSkill(SkillTable.getInstance().getInfo(838, 1), false); } @@ -51,7 +72,9 @@ public class InquisitorElvenElder extends L2Transformation { int lvl = 1; if (getPlayer().getLevel() > 43) + { lvl = (getPlayer().getLevel() - 43); + } // Divine Punishment getPlayer().removeSkill(SkillTable.getInstance().getInfo(1523, lvl), false); diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/InquisitorShilienElder.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/InquisitorShilienElder.java index d4adba0a15..9d5a7aa38b 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/InquisitorShilienElder.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/InquisitorShilienElder.java @@ -1,3 +1,17 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.datatables.SkillTable; @@ -15,8 +29,10 @@ public class InquisitorShilienElder extends L2Transformation @Override public void onTransform() { - if (getPlayer().getTransformationId() != 318 || getPlayer().isCursedWeaponEquipped()) + if ((getPlayer().getTransformationId() != 318) || getPlayer().isCursedWeaponEquipped()) + { return; + } transformedSkills(); } @@ -25,7 +41,9 @@ public class InquisitorShilienElder extends L2Transformation { int lvl = 1; if (getPlayer().getLevel() > 43) + { lvl = (getPlayer().getLevel() - 43); + } // Divine Punishment getPlayer().addSkill(SkillTable.getInstance().getInfo(1523, lvl), false); @@ -38,7 +56,10 @@ public class InquisitorShilienElder extends L2Transformation // Divine Curse getPlayer().addSkill(SkillTable.getInstance().getInfo(1525, lvl), false); // Set allowed skills - getPlayer().setTransformAllowedSkills(new int[]{838,1523,1528,1524,1525,1430,1303,1059,1043}); + getPlayer().setTransformAllowedSkills(new int[] + { + 838, 1523, 1528, 1524, 1525, 1430, 1303, 1059, 1043 + }); // Switch Stance getPlayer().addSkill(SkillTable.getInstance().getInfo(838, 1), false); } @@ -53,7 +74,9 @@ public class InquisitorShilienElder extends L2Transformation { int lvl = 1; if (getPlayer().getLevel() > 43) + { lvl = (getPlayer().getLevel() - 43); + } // Divine Punishment getPlayer().removeSkill(SkillTable.getInstance().getInfo(1523, lvl), false); diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/JetBike.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/JetBike.java index 2eab7ed4b3..661c9b887a 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/JetBike.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/JetBike.java @@ -1,3 +1,17 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.datatables.SkillTable; @@ -6,7 +20,11 @@ import com.l2jserver.gameserver.model.L2Transformation; public class JetBike extends L2Transformation { - private static final int[] SKILLS = {5491,839}; + private static final int[] SKILLS = + { + 5491, 839 + }; + public JetBike() { // id, colRadius, colHeight @@ -16,8 +34,10 @@ public class JetBike extends L2Transformation @Override public void onTransform() { - if (getPlayer().getTransformationId() != 20001 || getPlayer().isCursedWeaponEquipped()) + if ((getPlayer().getTransformationId() != 20001) || getPlayer().isCursedWeaponEquipped()) + { return; + } transformedSkills(); } diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/Kadomas.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/Kadomas.java index 30dc03b4d5..4c0c414bbd 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/Kadomas.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/Kadomas.java @@ -1,3 +1,17 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.datatables.SkillTable; @@ -6,7 +20,11 @@ import com.l2jserver.gameserver.model.L2Transformation; public class Kadomas extends L2Transformation { - private static final int[] SKILLS = {23154,619}; + private static final int[] SKILLS = + { + 23154, 619 + }; + public Kadomas() { // id, colRadius, colHeight @@ -16,15 +34,17 @@ public class Kadomas extends L2Transformation @Override public void onTransform() { - if (getPlayer().getTransformationId() != 20000 || getPlayer().isCursedWeaponEquipped()) + if ((getPlayer().getTransformationId() != 20000) || getPlayer().isCursedWeaponEquipped()) + { return; + } transformedSkills(); } public void transformedSkills() { - //Kadomas Special Skill - Fireworks + // Kadomas Special Skill - Fireworks getPlayer().addSkill(SkillTable.getInstance().getInfo(23154, 1), false); // Transform Dispel getPlayer().addSkill(SkillTable.getInstance().getInfo(619, 1), false); @@ -40,7 +60,7 @@ public class Kadomas extends L2Transformation public void removeSkills() { - //Kadomas Special Skill - Fireworks + // Kadomas Special Skill - Fireworks getPlayer().removeSkill(SkillTable.getInstance().getInfo(23154, 1), false); // Transform Dispel getPlayer().removeSkill(SkillTable.getInstance().getInfo(619, 1), false); diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/Kamael.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/Kamael.java index a0d1e1c276..ee3e746f2d 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/Kamael.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/Kamael.java @@ -1,3 +1,17 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.datatables.SkillTable; @@ -6,7 +20,11 @@ import com.l2jserver.gameserver.model.L2Transformation; public class Kamael extends L2Transformation { - private static final int[] SKILLS = {539,540,1471,1472,5491,619}; + private static final int[] SKILLS = + { + 539, 540, 1471, 1472, 5491, 619 + }; + public Kamael() { // id, duration (secs), colRadius, colHeight @@ -16,8 +34,10 @@ public class Kamael extends L2Transformation @Override public void onTransform() { - if (getPlayer().getTransformationId() != 251 || getPlayer().isCursedWeaponEquipped()) + if ((getPlayer().getTransformationId() != 251) || getPlayer().isCursedWeaponEquipped()) + { return; + } transformedSkills(); } diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/KamaelGuardCaptain.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/KamaelGuardCaptain.java index 3a8156e2b2..9ecb591eed 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/KamaelGuardCaptain.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/KamaelGuardCaptain.java @@ -1,3 +1,17 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.datatables.SkillTable; @@ -6,7 +20,11 @@ import com.l2jserver.gameserver.model.L2Transformation; public class KamaelGuardCaptain extends L2Transformation { - private static final int[] SKILLS = {5491,619}; + private static final int[] SKILLS = + { + 5491, 619 + }; + public KamaelGuardCaptain() { // id, colRadius, colHeight @@ -16,8 +34,10 @@ public class KamaelGuardCaptain extends L2Transformation @Override public void onTransform() { - if (getPlayer().getTransformationId() != 19 || getPlayer().isCursedWeaponEquipped()) + if ((getPlayer().getTransformationId() != 19) || getPlayer().isCursedWeaponEquipped()) + { return; + } transformedSkills(); } diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/KamaelMercenary.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/KamaelMercenary.java index e63611b17e..df8af3849c 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/KamaelMercenary.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/KamaelMercenary.java @@ -1,3 +1,17 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.datatables.SkillTable; @@ -6,7 +20,11 @@ import com.l2jserver.gameserver.model.L2Transformation; public class KamaelMercenary extends L2Transformation { - private static final int[] SKILLS = {5491,619}; + private static final int[] SKILLS = + { + 5491, 619 + }; + public KamaelMercenary() { // id, colRadius, colHeight @@ -16,8 +34,10 @@ public class KamaelMercenary extends L2Transformation @Override public void onTransform() { - if (getPlayer().getTransformationId() != 15 || getPlayer().isCursedWeaponEquipped()) + if ((getPlayer().getTransformationId() != 15) || getPlayer().isCursedWeaponEquipped()) + { return; + } transformedSkills(); } diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/Kiyachi.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/Kiyachi.java index 848dd04cbb..fba193d56a 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/Kiyachi.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/Kiyachi.java @@ -1,3 +1,17 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.datatables.SkillTable; @@ -6,7 +20,11 @@ import com.l2jserver.gameserver.model.L2Transformation; public class Kiyachi extends L2Transformation { - private static final int[] SKILLS = {733,734,5491,619}; + private static final int[] SKILLS = + { + 733, 734, 5491, 619 + }; + public Kiyachi() { // id, colRadius, colHeight @@ -16,8 +34,10 @@ public class Kiyachi extends L2Transformation @Override public void onTransform() { - if (getPlayer().getTransformationId() != 310 || getPlayer().isCursedWeaponEquipped()) + if ((getPlayer().getTransformationId() != 310) || getPlayer().isCursedWeaponEquipped()) + { return; + } transformedSkills(); } diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/KnightofDawn.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/KnightofDawn.java index f05c39da18..567b0e517d 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/KnightofDawn.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/KnightofDawn.java @@ -1,3 +1,17 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.datatables.SkillTable; @@ -6,7 +20,11 @@ import com.l2jserver.gameserver.model.L2Transformation; public class KnightofDawn extends L2Transformation { - private static final int[] SKILLS = {5491,619}; + private static final int[] SKILLS = + { + 5491, 619 + }; + public KnightofDawn() { // id, colRadius, colHeight @@ -16,8 +34,10 @@ public class KnightofDawn extends L2Transformation @Override public void onTransform() { - if (getPlayer().getTransformationId() != 20 || getPlayer().isCursedWeaponEquipped()) + if ((getPlayer().getTransformationId() != 20) || getPlayer().isCursedWeaponEquipped()) + { return; + } transformedSkills(); } diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/LavaGolem.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/LavaGolem.java index c9228b49be..da652d3c8a 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/LavaGolem.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/LavaGolem.java @@ -1,3 +1,17 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.datatables.SkillTable; @@ -6,7 +20,11 @@ import com.l2jserver.gameserver.model.L2Transformation; public class LavaGolem extends L2Transformation { - private static final int[] SKILLS = {5491,619}; + private static final int[] SKILLS = + { + 5491, 619 + }; + public LavaGolem() { // id, colRadius, colHeight @@ -16,8 +34,10 @@ public class LavaGolem extends L2Transformation @Override public void onTransform() { - if (getPlayer().getTransformationId() != 322 || getPlayer().isCursedWeaponEquipped()) + if ((getPlayer().getTransformationId() != 322) || getPlayer().isCursedWeaponEquipped()) + { return; + } transformedSkills(); } diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/LilimKnightNormal.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/LilimKnightNormal.java index 71030c32ce..ce8ef6e2fc 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/LilimKnightNormal.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/LilimKnightNormal.java @@ -1,3 +1,17 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.datatables.SkillTable; @@ -6,7 +20,11 @@ import com.l2jserver.gameserver.model.L2Transformation; public class LilimKnightNormal extends L2Transformation { - private static final int[] SKILLS = {568,569,570,571,5491,619}; + private static final int[] SKILLS = + { + 568, 569, 570, 571, 5491, 619 + }; + public LilimKnightNormal() { // id, colRadius, colHeight @@ -16,8 +34,10 @@ public class LilimKnightNormal extends L2Transformation @Override public void onTransform() { - if (getPlayer().getTransformationId() != 208 || getPlayer().isCursedWeaponEquipped()) + if ((getPlayer().getTransformationId() != 208) || getPlayer().isCursedWeaponEquipped()) + { return; + } transformedSkills(); } diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/LilimKnightStrong.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/LilimKnightStrong.java index f2522c3282..624ad6e0cc 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/LilimKnightStrong.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/LilimKnightStrong.java @@ -1,3 +1,17 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.datatables.SkillTable; @@ -6,7 +20,11 @@ import com.l2jserver.gameserver.model.L2Transformation; public class LilimKnightStrong extends L2Transformation { - private static final int[] SKILLS = {568,569,570,571,5491,619}; + private static final int[] SKILLS = + { + 568, 569, 570, 571, 5491, 619 + }; + public LilimKnightStrong() { // id, colRadius, colHeight @@ -16,8 +34,10 @@ public class LilimKnightStrong extends L2Transformation @Override public void onTransform() { - if (getPlayer().getTransformationId() != 207 || getPlayer().isCursedWeaponEquipped()) + if ((getPlayer().getTransformationId() != 207) || getPlayer().isCursedWeaponEquipped()) + { return; + } transformedSkills(); } diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/LilimKnightWeak.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/LilimKnightWeak.java index 35b00e8544..4d39f6013c 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/LilimKnightWeak.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/LilimKnightWeak.java @@ -1,3 +1,17 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.datatables.SkillTable; @@ -6,7 +20,11 @@ import com.l2jserver.gameserver.model.L2Transformation; public class LilimKnightWeak extends L2Transformation { - private static final int[] SKILLS = {568,569,570,571,5491,619}; + private static final int[] SKILLS = + { + 568, 569, 570, 571, 5491, 619 + }; + public LilimKnightWeak() { // id, colRadius, colHeight @@ -16,8 +34,10 @@ public class LilimKnightWeak extends L2Transformation @Override public void onTransform() { - if (getPlayer().getTransformationId() != 209 || getPlayer().isCursedWeaponEquipped()) + if ((getPlayer().getTransformationId() != 209) || getPlayer().isCursedWeaponEquipped()) + { return; + } transformedSkills(); } diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/LureTow.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/LureTow.java index c2eda5890f..c005c67ba6 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/LureTow.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/LureTow.java @@ -1,3 +1,17 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.datatables.SkillTable; @@ -6,7 +20,11 @@ import com.l2jserver.gameserver.model.L2Transformation; public class LureTow extends L2Transformation { - private static final int[] SKILLS = {5491,619}; + private static final int[] SKILLS = + { + 5491, 619 + }; + public LureTow() { // id, colRadius, colHeight @@ -16,8 +34,10 @@ public class LureTow extends L2Transformation @Override public void onTransform() { - if (getPlayer().getTransformationId() != 118 || getPlayer().isCursedWeaponEquipped()) + if ((getPlayer().getTransformationId() != 118) || getPlayer().isCursedWeaponEquipped()) + { return; + } transformedSkills(); } diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/MagicLeader.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/MagicLeader.java index 3504da556b..1d6e447228 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/MagicLeader.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/MagicLeader.java @@ -1,3 +1,17 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.datatables.SkillTable; @@ -6,7 +20,11 @@ import com.l2jserver.gameserver.model.L2Transformation; public class MagicLeader extends L2Transformation { - private static final int[] SKILLS = {5491,619}; + private static final int[] SKILLS = + { + 5491, 619 + }; + public MagicLeader() { // id, colRadius, colHeight @@ -16,8 +34,10 @@ public class MagicLeader extends L2Transformation @Override public void onTransform() { - if (getPlayer().getTransformationId() != 18 || getPlayer().isCursedWeaponEquipped()) + if ((getPlayer().getTransformationId() != 18) || getPlayer().isCursedWeaponEquipped()) + { return; + } transformedSkills(); } diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/MyoRace.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/MyoRace.java index f67649bcc1..37d51995de 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/MyoRace.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/MyoRace.java @@ -1,3 +1,17 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.datatables.SkillTable; @@ -9,7 +23,11 @@ import com.l2jserver.gameserver.model.L2Transformation; */ public class MyoRace extends L2Transformation { - private static final int[] SKILLS = {896,897,898,899,900,5491,619}; + private static final int[] SKILLS = + { + 896, 897, 898, 899, 900, 5491, 619 + }; + public MyoRace() { // id, colRadius, colHeight @@ -19,11 +37,15 @@ public class MyoRace extends L2Transformation @Override public void onTransform() { - if (getPlayer().getTransformationId() != 219 || getPlayer().isCursedWeaponEquipped()) + if ((getPlayer().getTransformationId() != 219) || getPlayer().isCursedWeaponEquipped()) + { return; + } if (getPlayer().getPet() != null) + { getPlayer().getPet().unSummon(getPlayer()); + } transformedSkills(); } diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/Native.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/Native.java index ad28b0fc51..a903355847 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/Native.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/Native.java @@ -1,3 +1,17 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.datatables.SkillTable; @@ -6,7 +20,11 @@ import com.l2jserver.gameserver.model.L2Transformation; public class Native extends L2Transformation { - private static final int[] SKILLS = {5491,619}; + private static final int[] SKILLS = + { + 5491, 619 + }; + public Native() { // id, colRadius, colHeight @@ -16,8 +34,10 @@ public class Native extends L2Transformation @Override public void onTransform() { - if (getPlayer().getTransformationId() != 101 || getPlayer().isCursedWeaponEquipped()) + if ((getPlayer().getTransformationId() != 101) || getPlayer().isCursedWeaponEquipped()) + { return; + } transformedSkills(); } diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/OlMahum.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/OlMahum.java index 0bd10b378c..895624bc7c 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/OlMahum.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/OlMahum.java @@ -1,3 +1,17 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.datatables.SkillTable; @@ -6,7 +20,11 @@ import com.l2jserver.gameserver.model.L2Transformation; public class OlMahum extends L2Transformation { - private static final int[] SKILLS = {749,750,751,5491,619}; + private static final int[] SKILLS = + { + 749, 750, 751, 5491, 619 + }; + public OlMahum() { // id, colRadius, colHeight @@ -16,8 +34,10 @@ public class OlMahum extends L2Transformation @Override public void onTransform() { - if (getPlayer().getTransformationId() != 6 || getPlayer().isCursedWeaponEquipped()) + if ((getPlayer().getTransformationId() != 6) || getPlayer().isCursedWeaponEquipped()) + { return; + } transformedSkills(); } diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/OnyxBeast.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/OnyxBeast.java index 01fde1d01d..0df7bbb3a2 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/OnyxBeast.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/OnyxBeast.java @@ -1,3 +1,17 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.datatables.SkillTable; @@ -6,7 +20,11 @@ import com.l2jserver.gameserver.model.L2Transformation; public class OnyxBeast extends L2Transformation { - private static final int[] SKILLS = {584,585,5491,619}; + private static final int[] SKILLS = + { + 584, 585, 5491, 619 + }; + public OnyxBeast() { // id, colRadius, colHeight @@ -16,8 +34,10 @@ public class OnyxBeast extends L2Transformation @Override public void onTransform() { - if (getPlayer().getTransformationId() != 1 || getPlayer().isCursedWeaponEquipped()) + if ((getPlayer().getTransformationId() != 1) || getPlayer().isCursedWeaponEquipped()) + { return; + } transformedSkills(); } diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/OrcMercenary.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/OrcMercenary.java index 51380616c3..4997f474a6 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/OrcMercenary.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/OrcMercenary.java @@ -1,3 +1,17 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.datatables.SkillTable; @@ -6,7 +20,11 @@ import com.l2jserver.gameserver.model.L2Transformation; public class OrcMercenary extends L2Transformation { - private static final int[] SKILLS = {5491,619}; + private static final int[] SKILLS = + { + 5491, 619 + }; + public OrcMercenary() { // id, colRadius, colHeight @@ -16,8 +34,10 @@ public class OrcMercenary extends L2Transformation @Override public void onTransform() { - if (getPlayer().getTransformationId() != 13 || getPlayer().isCursedWeaponEquipped()) + if ((getPlayer().getTransformationId() != 13) || getPlayer().isCursedWeaponEquipped()) + { return; + } transformedSkills(); } diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/Pig.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/Pig.java index 08c2b76824..acefc5115e 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/Pig.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/Pig.java @@ -1,3 +1,17 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.datatables.SkillTable; @@ -6,7 +20,11 @@ import com.l2jserver.gameserver.model.L2Transformation; public class Pig extends L2Transformation { - private static final int[] SKILLS = {5491,619}; + private static final int[] SKILLS = + { + 5491, 619 + }; + public Pig() { // id, colRadius, colHeight @@ -16,8 +34,10 @@ public class Pig extends L2Transformation @Override public void onTransform() { - if (getPlayer().getTransformationId() != 104 || getPlayer().isCursedWeaponEquipped()) + if ((getPlayer().getTransformationId() != 104) || getPlayer().isCursedWeaponEquipped()) + { return; + } transformedSkills(); } diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/Pixy.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/Pixy.java index ceb96ef52a..e900575328 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/Pixy.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/Pixy.java @@ -1,3 +1,17 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.datatables.SkillTable; @@ -6,7 +20,11 @@ import com.l2jserver.gameserver.model.L2Transformation; public class Pixy extends L2Transformation { - private static final int[] SKILLS = {5491,619}; + private static final int[] SKILLS = + { + 5491, 619 + }; + public Pixy() { // id, colRadius, colHeight @@ -16,8 +34,10 @@ public class Pixy extends L2Transformation @Override public void onTransform() { - if (getPlayer().getTransformationId() != 304 || getPlayer().isCursedWeaponEquipped()) + if ((getPlayer().getTransformationId() != 304) || getPlayer().isCursedWeaponEquipped()) + { return; + } transformedSkills(); } diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/PumpkinGhost.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/PumpkinGhost.java index 745855ce24..9b5bd930db 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/PumpkinGhost.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/PumpkinGhost.java @@ -1,3 +1,17 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.datatables.SkillTable; @@ -6,7 +20,11 @@ import com.l2jserver.gameserver.model.L2Transformation; public class PumpkinGhost extends L2Transformation { - private static final int[] SKILLS = {5491,619}; + private static final int[] SKILLS = + { + 5491, 619 + }; + public PumpkinGhost() { // id, colRadius, colHeight @@ -16,8 +34,10 @@ public class PumpkinGhost extends L2Transformation @Override public void onTransform() { - if (getPlayer().getTransformationId() != 108 || getPlayer().isCursedWeaponEquipped()) + if ((getPlayer().getTransformationId() != 108) || getPlayer().isCursedWeaponEquipped()) + { return; + } transformedSkills(); } diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/Rabbit.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/Rabbit.java index bf69a52380..aec6c1b74a 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/Rabbit.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/Rabbit.java @@ -1,3 +1,17 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.datatables.SkillTable; @@ -6,7 +20,11 @@ import com.l2jserver.gameserver.model.L2Transformation; public class Rabbit extends L2Transformation { - private static final int[] SKILLS = {629,630,5491,619}; + private static final int[] SKILLS = + { + 629, 630, 5491, 619 + }; + public Rabbit() { // id, colRadius, colHeight @@ -16,8 +34,10 @@ public class Rabbit extends L2Transformation @Override public void onTransform() { - if (getPlayer().getTransformationId() != 105 || getPlayer().isCursedWeaponEquipped()) + if ((getPlayer().getTransformationId() != 105) || getPlayer().isCursedWeaponEquipped()) + { return; + } transformedSkills(); } diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/Ranku.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/Ranku.java index 9bbc9ddb4d..e4b6ebe8b7 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/Ranku.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/Ranku.java @@ -1,3 +1,17 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.datatables.SkillTable; @@ -6,7 +20,11 @@ import com.l2jserver.gameserver.model.L2Transformation; public class Ranku extends L2Transformation { - private static final int[] SKILLS = {731,732,5491,619}; + private static final int[] SKILLS = + { + 731, 732, 5491, 619 + }; + public Ranku() { // id, colRadius, colHeight @@ -16,8 +34,10 @@ public class Ranku extends L2Transformation @Override public void onTransform() { - if (getPlayer().getTransformationId() != 309 || getPlayer().isCursedWeaponEquipped()) + if ((getPlayer().getTransformationId() != 309) || getPlayer().isCursedWeaponEquipped()) + { return; + } transformedSkills(); } diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/RoyalGuardCaptain.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/RoyalGuardCaptain.java index a329fe7657..f0b35576c2 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/RoyalGuardCaptain.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/RoyalGuardCaptain.java @@ -1,3 +1,17 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.datatables.SkillTable; @@ -6,7 +20,11 @@ import com.l2jserver.gameserver.model.L2Transformation; public class RoyalGuardCaptain extends L2Transformation { - private static final int[] SKILLS = {5491,619}; + private static final int[] SKILLS = + { + 5491, 619 + }; + public RoyalGuardCaptain() { // id, colRadius, colHeight @@ -16,8 +34,10 @@ public class RoyalGuardCaptain extends L2Transformation @Override public void onTransform() { - if (getPlayer().getTransformationId() != 16 || getPlayer().isCursedWeaponEquipped()) + if ((getPlayer().getTransformationId() != 16) || getPlayer().isCursedWeaponEquipped()) + { return; + } transformedSkills(); } diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/SaberToothTiger.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/SaberToothTiger.java index e3a2b9136a..ff8f640bc9 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/SaberToothTiger.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/SaberToothTiger.java @@ -1,3 +1,17 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.datatables.SkillTable; @@ -6,7 +20,11 @@ import com.l2jserver.gameserver.model.L2Transformation; public class SaberToothTiger extends L2Transformation { - private static final int[] SKILLS = {746,747,748,5491,619}; + private static final int[] SKILLS = + { + 746, 747, 748, 5491, 619 + }; + public SaberToothTiger() { // id, colRadius, colHeight @@ -16,8 +34,10 @@ public class SaberToothTiger extends L2Transformation @Override public void onTransform() { - if (getPlayer().getTransformationId() != 5 || getPlayer().isCursedWeaponEquipped()) + if ((getPlayer().getTransformationId() != 5) || getPlayer().isCursedWeaponEquipped()) + { return; + } transformedSkills(); } diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/Scarecrow.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/Scarecrow.java index 81fdce47b9..52d2d9045e 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/Scarecrow.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/Scarecrow.java @@ -1,3 +1,17 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.datatables.SkillTable; @@ -6,7 +20,11 @@ import com.l2jserver.gameserver.model.L2Transformation; public class Scarecrow extends L2Transformation { - private static final int[] SKILLS = {940,942,5437,619}; + private static final int[] SKILLS = + { + 940, 942, 5437, 619 + }; + public Scarecrow() { // id, colRadius, colHeight @@ -16,8 +34,10 @@ public class Scarecrow extends L2Transformation @Override public void onTransform() { - if (getPlayer().getTransformationId() != 115 || getPlayer().isCursedWeaponEquipped()) + if ((getPlayer().getTransformationId() != 115) || getPlayer().isCursedWeaponEquipped()) + { return; + } transformedSkills(); } diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/ScrollBlue.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/ScrollBlue.java index 970ac07572..2886639ceb 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/ScrollBlue.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/ScrollBlue.java @@ -1,3 +1,17 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.datatables.SkillTable; @@ -5,18 +19,19 @@ import com.l2jserver.gameserver.instancemanager.TransformationManager; import com.l2jserver.gameserver.model.L2Transformation; /** - * TODO: Buffs disappear once you get transformed, but reappear after the transformed state wears off. - * Skills involved in the minigame but are not assigned directly to players: - * Flip Nearby Blocks - 5847 - For Flip Block, there are two skills, one for each side (makes sense). For this, there is only one skill. Thus it is probably not assigned to the transformation. - * Block Trigger Slow - 5848 - This may be assigned to players, unsure. - * Decrease Speed - 5849 - This is possibly assigned to all players to set all players to the same running speed for the duration of the game. - * Block Trigger Stun - 5849 - From L2Vault: "The squares gives drops of "bond" and "landmine". I wasn't able to figure out what the bond did as it wasn't anything that seemed to go into your inventory. However, Landmine did appear in your inventory which allows you to use it before flipping a square which will give the other team a state of stun when they attempt to flip the same square (from what I can gather, it all happens so quickly ;) " - * Shock - 5851 - Stun effect from 5849 - * More Info: http://l2vault.ign.com/wiki/index.php/Handy%E2%80%99s_Block_Checker + * TODO: Buffs disappear once you get transformed, but reappear after the transformed state wears off. Skills involved in the minigame but are not assigned directly to players: Flip Nearby Blocks - 5847 - For Flip Block, there are two skills, one for each side (makes sense). For this, there is only + * one skill. Thus it is probably not assigned to the transformation. Block Trigger Slow - 5848 - This may be assigned to players, unsure. Decrease Speed - 5849 - This is possibly assigned to all players to set all players to the same running speed for the duration of the game. Block Trigger Stun - + * 5849 - From L2Vault: "The squares gives drops of "bond" and "landmine + * ". I wasn't able to figure out what the bond did as it wasn't anything that seemed to go into your inventory. However, Landmine did appear in your inventory which allows you to use it before flipping a square which will give the other team a state of stun when they attempt to flip the same square (from what I can gather, it all happens so quickly ;) " + * Shock - 5851 - Stun effect from 5849 More Info: http://l2vault.ign.com/wiki/index.php/Handy%E2%80%99s_Block_Checker */ public class ScrollBlue extends L2Transformation { - private static final int[] SKILLS = {5852,5491,619}; + private static final int[] SKILLS = + { + 5852, 5491, 619 + }; + public ScrollBlue() { // id, colRadius, colHeight @@ -26,8 +41,10 @@ public class ScrollBlue extends L2Transformation @Override public void onTransform() { - if (getPlayer().getTransformationId() != 122 || getPlayer().isCursedWeaponEquipped()) + if ((getPlayer().getTransformationId() != 122) || getPlayer().isCursedWeaponEquipped()) + { return; + } transformedSkills(); } @@ -39,7 +56,7 @@ public class ScrollBlue extends L2Transformation // Decrease Bow/Crossbow Attack Speed getPlayer().addSkill(SkillTable.getInstance().getInfo(5491, 1), false); // Transform Dispel - //getPlayer().addSkill(SkillTable.getInstance().getInfo(619, 1), false); + // getPlayer().addSkill(SkillTable.getInstance().getInfo(619, 1), false); getPlayer().setTransformAllowedSkills(SKILLS); } @@ -57,7 +74,7 @@ public class ScrollBlue extends L2Transformation // Decrease Bow/Crossbow Attack Speed getPlayer().removeSkill(SkillTable.getInstance().getInfo(5491, 1), false); // Transform Dispel - //getPlayer().removeSkill(SkillTable.getInstance().getInfo(619, 1), false); + // getPlayer().removeSkill(SkillTable.getInstance().getInfo(619, 1), false); getPlayer().setTransformAllowedSkills(EMPTY_ARRAY); } diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/ScrollRed.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/ScrollRed.java index 66dbceeba3..b78a4e32a0 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/ScrollRed.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/ScrollRed.java @@ -1,3 +1,17 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.datatables.SkillTable; @@ -5,18 +19,19 @@ import com.l2jserver.gameserver.instancemanager.TransformationManager; import com.l2jserver.gameserver.model.L2Transformation; /** - * TODO: Buffs disappear once you get transformed, but reappear after the transformed state wears off. - * Skills involved in the minigame but are not assigned directly to players: - * Flip Nearby Blocks - 5847 - For Flip Block, there are two skills, one for each side (makes sense). For this, there is only one skill. Thus it is probably not assigned to the transformation. - * Block Trigger Slow - 5848 - This may be assigned to players, unsure. - * Decrease Speed - 5849 - This is possibly assigned to all players to set all players to the same running speed for the duration of the game. - * Block Trigger Stun - 5849 - From L2Vault: "The squares gives drops of "bond" and "landmine". I wasn't able to figure out what the bond did as it wasn't anything that seemed to go into your inventory. However, Landmine did appear in your inventory which allows you to use it before flipping a square which will give the other team a state of stun when they attempt to flip the same square (from what I can gather, it all happens so quickly ;) " - * Shock - 5851 - Stun effect from 5849 - * More Info: http://l2vault.ign.com/wiki/index.php/Handy%E2%80%99s_Block_Checker + * TODO: Buffs disappear once you get transformed, but reappear after the transformed state wears off. Skills involved in the minigame but are not assigned directly to players: Flip Nearby Blocks - 5847 - For Flip Block, there are two skills, one for each side (makes sense). For this, there is only + * one skill. Thus it is probably not assigned to the transformation. Block Trigger Slow - 5848 - This may be assigned to players, unsure. Decrease Speed - 5849 - This is possibly assigned to all players to set all players to the same running speed for the duration of the game. Block Trigger Stun - + * 5849 - From L2Vault: "The squares gives drops of "bond" and "landmine + * ". I wasn't able to figure out what the bond did as it wasn't anything that seemed to go into your inventory. However, Landmine did appear in your inventory which allows you to use it before flipping a square which will give the other team a state of stun when they attempt to flip the same square (from what I can gather, it all happens so quickly ;) " + * Shock - 5851 - Stun effect from 5849 More Info: http://l2vault.ign.com/wiki/index.php/Handy%E2%80%99s_Block_Checker */ public class ScrollRed extends L2Transformation { - private static final int[] SKILLS = {5853,5491,619}; + private static final int[] SKILLS = + { + 5853, 5491, 619 + }; + public ScrollRed() { // id, colRadius, colHeight @@ -26,8 +41,10 @@ public class ScrollRed extends L2Transformation @Override public void onTransform() { - if (getPlayer().getTransformationId() != 121 || getPlayer().isCursedWeaponEquipped()) + if ((getPlayer().getTransformationId() != 121) || getPlayer().isCursedWeaponEquipped()) + { return; + } transformedSkills(); } @@ -39,7 +56,7 @@ public class ScrollRed extends L2Transformation // Decrease Bow/Crossbow Attack Speed getPlayer().addSkill(SkillTable.getInstance().getInfo(5491, 1), false); // Transform Dispel - //getPlayer().addSkill(SkillTable.getInstance().getInfo(619, 1), false); + // getPlayer().addSkill(SkillTable.getInstance().getInfo(619, 1), false); getPlayer().setTransformAllowedSkills(SKILLS); } @@ -57,7 +74,7 @@ public class ScrollRed extends L2Transformation // Decrease Bow/Crossbow Attack Speed getPlayer().removeSkill(SkillTable.getInstance().getInfo(5491, 1), false); // Transform Dispel - //getPlayer().removeSkill(SkillTable.getInstance().getInfo(619, 1), false); + // getPlayer().removeSkill(SkillTable.getInstance().getInfo(619, 1), false); getPlayer().setTransformAllowedSkills(EMPTY_ARRAY); } diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/ShinyPlatform.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/ShinyPlatform.java index b4d60d03bf..184533b86e 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/ShinyPlatform.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/ShinyPlatform.java @@ -25,8 +25,7 @@ public class ShinyPlatform extends L2Transformation { private static final int[] SKILLS = { - 5491, - 619 + 5491, 619 }; public ShinyPlatform() @@ -38,8 +37,10 @@ public class ShinyPlatform extends L2Transformation @Override public void onTransform() { - if (getPlayer().getTransformationId() != 20004 || getPlayer().isCursedWeaponEquipped()) + if ((getPlayer().getTransformationId() != 20004) || getPlayer().isCursedWeaponEquipped()) + { return; + } transformedSkills(); } diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/SnowKung.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/SnowKung.java index 2ca77f3806..4394b7636b 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/SnowKung.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/SnowKung.java @@ -1,3 +1,17 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.datatables.SkillTable; @@ -6,7 +20,11 @@ import com.l2jserver.gameserver.model.L2Transformation; public class SnowKung extends L2Transformation { - private static final int[] SKILLS = {940,943,5437,619}; + private static final int[] SKILLS = + { + 940, 943, 5437, 619 + }; + public SnowKung() { // id, colRadius, colHeight @@ -16,8 +34,10 @@ public class SnowKung extends L2Transformation @Override public void onTransform() { - if (getPlayer().getTransformationId() != 114 || getPlayer().isCursedWeaponEquipped()) + if ((getPlayer().getTransformationId() != 114) || getPlayer().isCursedWeaponEquipped()) + { return; + } transformedSkills(); } diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/SteamBeatle.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/SteamBeatle.java index 5d93941d41..37cd22837b 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/SteamBeatle.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/SteamBeatle.java @@ -1,3 +1,17 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.datatables.SkillTable; @@ -6,7 +20,11 @@ import com.l2jserver.gameserver.model.L2Transformation; public class SteamBeatle extends L2Transformation { - private static final int[] SKILLS = {5491,839}; + private static final int[] SKILLS = + { + 5491, 839 + }; + public SteamBeatle() { // id, colRadius, colHeight @@ -16,8 +34,10 @@ public class SteamBeatle extends L2Transformation @Override public void onTransform() { - if (getPlayer().getTransformationId() != 110 || getPlayer().isCursedWeaponEquipped()) + if ((getPlayer().getTransformationId() != 110) || getPlayer().isCursedWeaponEquipped()) + { return; + } transformedSkills(); } diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/SujinChild.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/SujinChild.java index fbc2c2de8a..741d91b4c4 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/SujinChild.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/SujinChild.java @@ -1,3 +1,17 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.datatables.SkillTable; @@ -6,7 +20,10 @@ import com.l2jserver.gameserver.model.L2Transformation; public class SujinChild extends L2Transformation { - private static final int[] SKILLS = new int[]{619}; + private static final int[] SKILLS = new int[] + { + 619 + }; public SujinChild() { @@ -17,8 +34,10 @@ public class SujinChild extends L2Transformation @Override public void onTransform() { - if (getPlayer().getTransformationId() != 20003 || getPlayer().isCursedWeaponEquipped()) + if ((getPlayer().getTransformationId() != 20003) || getPlayer().isCursedWeaponEquipped()) + { return; + } transformedSkills(); } diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/TawnyManedLion.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/TawnyManedLion.java index 422a002aea..4320f2e2a2 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/TawnyManedLion.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/TawnyManedLion.java @@ -1,3 +1,17 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.datatables.SkillTable; @@ -6,7 +20,11 @@ import com.l2jserver.gameserver.model.L2Transformation; public class TawnyManedLion extends L2Transformation { - private static final int[] SKILLS = {5491,839}; + private static final int[] SKILLS = + { + 5491, 839 + }; + public TawnyManedLion() { // id, colRadius, colHeight @@ -16,8 +34,10 @@ public class TawnyManedLion extends L2Transformation @Override public void onTransform() { - if (getPlayer().getTransformationId() != 109 || getPlayer().isCursedWeaponEquipped()) + if ((getPlayer().getTransformationId() != 109) || getPlayer().isCursedWeaponEquipped()) + { return; + } transformedSkills(); } diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/Teleporter.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/Teleporter.java index 77aa5514ed..9a9c620d82 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/Teleporter.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/Teleporter.java @@ -1,3 +1,17 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.datatables.SkillTable; @@ -6,7 +20,11 @@ import com.l2jserver.gameserver.model.L2Transformation; public class Teleporter extends L2Transformation { - private static final int[] SKILLS = {5656,5657,5658,5491,8248}; + private static final int[] SKILLS = + { + 5656, 5657, 5658, 5491, 8248 + }; + public Teleporter() { // id, colRadius, colHeight @@ -16,8 +34,10 @@ public class Teleporter extends L2Transformation @Override public void onTransform() { - if (getPlayer().getTransformationId() != 319 || getPlayer().isCursedWeaponEquipped()) + if ((getPlayer().getTransformationId() != 319) || getPlayer().isCursedWeaponEquipped()) + { return; + } transformedSkills(); } @@ -25,18 +45,9 @@ public class Teleporter extends L2Transformation public void transformedSkills() { /* - Commented out until we figure out how to remove the skills properly. - What happens if a player transforms at level 40, gets the level 40 version of the skill, then somehow levels up? - Then when we untransform, the script will look for the level 41 version of the skill, right? - Or will it still remove the level 40 skill? Needs to be tested. - // Gatekeeper Aura Flare - getPlayer().addSkill(SkillTable.getInstance().getInfo(5656, getPlayer().getLevel()), false); - // Gatekeeper Prominence - getPlayer().addSkill(SkillTable.getInstance().getInfo(5657, getPlayer().getLevel()), false); - // Gatekeeper Flame Strike - getPlayer().addSkill(SkillTable.getInstance().getInfo(5658, getPlayer().getLevel()), false); - // Gatekeeper Berserker Spirit (there are two levels, when do players get access to level 2?) - getPlayer().addSkill(SkillTable.getInstance().getInfo(5659, 1), false); + * Commented out until we figure out how to remove the skills properly. What happens if a player transforms at level 40, gets the level 40 version of the skill, then somehow levels up? Then when we untransform, the script will look for the level 41 version of the skill, right? Or will it + * still remove the level 40 skill? Needs to be tested. // Gatekeeper Aura Flare getPlayer().addSkill(SkillTable.getInstance().getInfo(5656, getPlayer().getLevel()), false); // Gatekeeper Prominence getPlayer().addSkill(SkillTable.getInstance().getInfo(5657, getPlayer().getLevel()), false); + * // Gatekeeper Flame Strike getPlayer().addSkill(SkillTable.getInstance().getInfo(5658, getPlayer().getLevel()), false); // Gatekeeper Berserker Spirit (there are two levels, when do players get access to level 2?) getPlayer().addSkill(SkillTable.getInstance().getInfo(5659, 1), false); */ // Decrease Bow/Crossbow Attack Speed getPlayer().addSkill(SkillTable.getInstance().getInfo(5491, 1), false); @@ -55,18 +66,10 @@ public class Teleporter extends L2Transformation public void removeSkills() { /* -Commented out until we figure out how to remove the skills properly. -What happens if a player transforms at level 40, gets the level 40 version of the skill, then somehow levels up? -Then when we untransform, the script will look for the level 41 version of the skill, right? -Or will it still remove the level 40 skill? Needs to be tested. - // Gatekeeper Aura Flare - getPlayer().removeSkill(SkillTable.getInstance().getInfo(5656, getPlayer().getLevel()), false); - // Gatekeeper Prominence - getPlayer().removeSkill(SkillTable.getInstance().getInfo(5657, getPlayer().getLevel()), false); - // Gatekeeper Flame Strike - getPlayer().removeSkill(SkillTable.getInstance().getInfo(5658, getPlayer().getLevel()), false); - // Gatekeeper Berserker Spirit (there are two levels, when do players get access to level 2?) - getPlayer().removeSkill(SkillTable.getInstance().getInfo(5659, 1), false); + * Commented out until we figure out how to remove the skills properly. What happens if a player transforms at level 40, gets the level 40 version of the skill, then somehow levels up? Then when we untransform, the script will look for the level 41 version of the skill, right? Or will it + * still remove the level 40 skill? Needs to be tested. // Gatekeeper Aura Flare getPlayer().removeSkill(SkillTable.getInstance().getInfo(5656, getPlayer().getLevel()), false); // Gatekeeper Prominence getPlayer().removeSkill(SkillTable.getInstance().getInfo(5657, getPlayer().getLevel()), + * false); // Gatekeeper Flame Strike getPlayer().removeSkill(SkillTable.getInstance().getInfo(5658, getPlayer().getLevel()), false); // Gatekeeper Berserker Spirit (there are two levels, when do players get access to level 2?) getPlayer().removeSkill(SkillTable.getInstance().getInfo(5659, + * 1), false); */ // Decrease Bow/Crossbow Attack Speed getPlayer().removeSkill(SkillTable.getInstance().getInfo(5491, 1), false); diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/Teleporter2.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/Teleporter2.java index 398be789dd..ce4c66d9d0 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/Teleporter2.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/Teleporter2.java @@ -1,3 +1,17 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.datatables.SkillTable; @@ -6,7 +20,11 @@ import com.l2jserver.gameserver.model.L2Transformation; public class Teleporter2 extends L2Transformation { - private static final int[] SKILLS = {5656,5657,5658,5491,8248}; + private static final int[] SKILLS = + { + 5656, 5657, 5658, 5491, 8248 + }; + public Teleporter2() { // id, colRadius, colHeight @@ -16,8 +34,10 @@ public class Teleporter2 extends L2Transformation @Override public void onTransform() { - if (getPlayer().getTransformationId() != 107 || getPlayer().isCursedWeaponEquipped()) + if ((getPlayer().getTransformationId() != 107) || getPlayer().isCursedWeaponEquipped()) + { return; + } transformedSkills(); } @@ -25,18 +45,9 @@ public class Teleporter2 extends L2Transformation public void transformedSkills() { /* - Commented out until we figure out how to remove the skills properly. - What happens if a player transforms at level 40, gets the level 40 version of the skill, then somehow levels up? - Then when we untransform, the script will look for the level 41 version of the skill, right? - Or will it still remove the level 40 skill? Needs to be tested. - // Gatekeeper Aura Flare - getPlayer().addSkill(SkillTable.getInstance().getInfo(5656, getPlayer().getLevel()), false); - // Gatekeeper Prominence - getPlayer().addSkill(SkillTable.getInstance().getInfo(5657, getPlayer().getLevel()), false); - // Gatekeeper Flame Strike - getPlayer().addSkill(SkillTable.getInstance().getInfo(5658, getPlayer().getLevel()), false); - // Gatekeeper Berserker Spirit (there are two levels, when do players get access to level 2?) - getPlayer().addSkill(SkillTable.getInstance().getInfo(5659, 1), false); + * Commented out until we figure out how to remove the skills properly. What happens if a player transforms at level 40, gets the level 40 version of the skill, then somehow levels up? Then when we untransform, the script will look for the level 41 version of the skill, right? Or will it + * still remove the level 40 skill? Needs to be tested. // Gatekeeper Aura Flare getPlayer().addSkill(SkillTable.getInstance().getInfo(5656, getPlayer().getLevel()), false); // Gatekeeper Prominence getPlayer().addSkill(SkillTable.getInstance().getInfo(5657, getPlayer().getLevel()), false); + * // Gatekeeper Flame Strike getPlayer().addSkill(SkillTable.getInstance().getInfo(5658, getPlayer().getLevel()), false); // Gatekeeper Berserker Spirit (there are two levels, when do players get access to level 2?) getPlayer().addSkill(SkillTable.getInstance().getInfo(5659, 1), false); */ // Decrease Bow/Crossbow Attack Speed getPlayer().addSkill(SkillTable.getInstance().getInfo(5491, 1), false); @@ -55,18 +66,10 @@ public class Teleporter2 extends L2Transformation public void removeSkills() { /* -Commented out until we figure out how to remove the skills properly. -What happens if a player transforms at level 40, gets the level 40 version of the skill, then somehow levels up? -Then when we untransform, the script will look for the level 41 version of the skill, right? -Or will it still remove the level 40 skill? Needs to be tested. - // Gatekeeper Aura Flare - getPlayer().removeSkill(SkillTable.getInstance().getInfo(5656, getPlayer().getLevel()), false); - // Gatekeeper Prominence - getPlayer().removeSkill(SkillTable.getInstance().getInfo(5657, getPlayer().getLevel()), false); - // Gatekeeper Flame Strike - getPlayer().removeSkill(SkillTable.getInstance().getInfo(5658, getPlayer().getLevel()), false); - // Gatekeeper Berserker Spirit (there are two levels, when do players get access to level 2?) - getPlayer().removeSkill(SkillTable.getInstance().getInfo(5659, 1), false); + * Commented out until we figure out how to remove the skills properly. What happens if a player transforms at level 40, gets the level 40 version of the skill, then somehow levels up? Then when we untransform, the script will look for the level 41 version of the skill, right? Or will it + * still remove the level 40 skill? Needs to be tested. // Gatekeeper Aura Flare getPlayer().removeSkill(SkillTable.getInstance().getInfo(5656, getPlayer().getLevel()), false); // Gatekeeper Prominence getPlayer().removeSkill(SkillTable.getInstance().getInfo(5657, getPlayer().getLevel()), + * false); // Gatekeeper Flame Strike getPlayer().removeSkill(SkillTable.getInstance().getInfo(5658, getPlayer().getLevel()), false); // Gatekeeper Berserker Spirit (there are two levels, when do players get access to level 2?) getPlayer().removeSkill(SkillTable.getInstance().getInfo(5659, + * 1), false); */ // Decrease Bow/Crossbow Attack Speed getPlayer().removeSkill(SkillTable.getInstance().getInfo(5491, 1), false); diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/Timitran.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/Timitran.java index 2675cc6ab0..a57875cf6d 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/Timitran.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/Timitran.java @@ -1,3 +1,17 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.datatables.SkillTable; @@ -6,7 +20,11 @@ import com.l2jserver.gameserver.model.L2Transformation; public class Timitran extends L2Transformation { - private static final int[] SKILLS = {5491,619}; + private static final int[] SKILLS = + { + 5491, 619 + }; + public Timitran() { // id, colRadius, colHeight @@ -16,8 +34,10 @@ public class Timitran extends L2Transformation @Override public void onTransform() { - if (getPlayer().getTransformationId() != 321 || getPlayer().isCursedWeaponEquipped()) + if ((getPlayer().getTransformationId() != 321) || getPlayer().isCursedWeaponEquipped()) + { return; + } transformedSkills(); } diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/TinGolem.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/TinGolem.java index 398dd18ba8..040dc2011e 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/TinGolem.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/TinGolem.java @@ -1,3 +1,17 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.datatables.SkillTable; @@ -6,7 +20,11 @@ import com.l2jserver.gameserver.model.L2Transformation; public class TinGolem extends L2Transformation { - private static final int[] SKILLS = {940,941,5437,619}; + private static final int[] SKILLS = + { + 940, 941, 5437, 619 + }; + public TinGolem() { // id, colRadius, colHeight @@ -16,8 +34,10 @@ public class TinGolem extends L2Transformation @Override public void onTransform() { - if (getPlayer().getTransformationId() != 116 || getPlayer().isCursedWeaponEquipped()) + if ((getPlayer().getTransformationId() != 116) || getPlayer().isCursedWeaponEquipped()) + { return; + } transformedSkills(); } diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/Tow.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/Tow.java index 93da527e79..284129dbf4 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/Tow.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/Tow.java @@ -1,3 +1,17 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.datatables.SkillTable; @@ -6,7 +20,11 @@ import com.l2jserver.gameserver.model.L2Transformation; public class Tow extends L2Transformation { - private static final int[] SKILLS = {5491,619}; + private static final int[] SKILLS = + { + 5491, 619 + }; + public Tow() { // id, colRadius, colHeight @@ -16,8 +34,10 @@ public class Tow extends L2Transformation @Override public void onTransform() { - if (getPlayer().getTransformationId() != 117 || getPlayer().isCursedWeaponEquipped()) + if ((getPlayer().getTransformationId() != 117) || getPlayer().isCursedWeaponEquipped()) + { return; + } transformedSkills(); } diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/TrejuoChild.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/TrejuoChild.java index eb9b5f1a6a..c9ee2be262 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/TrejuoChild.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/TrejuoChild.java @@ -1,3 +1,17 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.datatables.SkillTable; @@ -6,7 +20,10 @@ import com.l2jserver.gameserver.model.L2Transformation; public class TrejuoChild extends L2Transformation { - private static final int[] SKILLS = new int[]{619}; + private static final int[] SKILLS = new int[] + { + 619 + }; public TrejuoChild() { @@ -17,8 +34,10 @@ public class TrejuoChild extends L2Transformation @Override public void onTransform() { - if (getPlayer().getTransformationId() != 20002 || getPlayer().isCursedWeaponEquipped()) + if ((getPlayer().getTransformationId() != 20002) || getPlayer().isCursedWeaponEquipped()) + { return; + } transformedSkills(); } diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/Treykan.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/Treykan.java index 2a110ef716..3b60b0501c 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/Treykan.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/Treykan.java @@ -1,3 +1,17 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.datatables.SkillTable; diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/UnicornNormal.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/UnicornNormal.java index d1041ae36e..3b42923ede 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/UnicornNormal.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/UnicornNormal.java @@ -1,3 +1,17 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.datatables.SkillTable; @@ -6,7 +20,11 @@ import com.l2jserver.gameserver.model.L2Transformation; public class UnicornNormal extends L2Transformation { - private static final int[] SKILLS = {563,564,565,567,5491,619}; + private static final int[] SKILLS = + { + 563, 564, 565, 567, 5491, 619 + }; + public UnicornNormal() { // id, colRadius, colHeight @@ -16,8 +34,10 @@ public class UnicornNormal extends L2Transformation @Override public void onTransform() { - if (getPlayer().getTransformationId() != 205 || getPlayer().isCursedWeaponEquipped()) + if ((getPlayer().getTransformationId() != 205) || getPlayer().isCursedWeaponEquipped()) + { return; + } transformedSkills(); } diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/UnicornStrong.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/UnicornStrong.java index d10685d65a..a6cfaff2b7 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/UnicornStrong.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/UnicornStrong.java @@ -1,3 +1,17 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.datatables.SkillTable; @@ -6,7 +20,11 @@ import com.l2jserver.gameserver.model.L2Transformation; public class UnicornStrong extends L2Transformation { - private static final int[] SKILLS = {563,564,565,567,5491,619}; + private static final int[] SKILLS = + { + 563, 564, 565, 567, 5491, 619 + }; + public UnicornStrong() { // id, colRadius, colHeight @@ -16,8 +34,10 @@ public class UnicornStrong extends L2Transformation @Override public void onTransform() { - if (getPlayer().getTransformationId() != 204 || getPlayer().isCursedWeaponEquipped()) + if ((getPlayer().getTransformationId() != 204) || getPlayer().isCursedWeaponEquipped()) + { return; + } transformedSkills(); } diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/UnicornWeak.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/UnicornWeak.java index 2c788e3464..2e0a4a0dcf 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/UnicornWeak.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/UnicornWeak.java @@ -1,3 +1,17 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.datatables.SkillTable; @@ -6,7 +20,11 @@ import com.l2jserver.gameserver.model.L2Transformation; public class UnicornWeak extends L2Transformation { - private static final int[] SKILLS = {563,564,565,567,5491,619}; + private static final int[] SKILLS = + { + 563, 564, 565, 567, 5491, 619 + }; + public UnicornWeak() { // id, colRadius, colHeight @@ -16,8 +34,10 @@ public class UnicornWeak extends L2Transformation @Override public void onTransform() { - if (getPlayer().getTransformationId() != 206 || getPlayer().isCursedWeaponEquipped()) + if ((getPlayer().getTransformationId() != 206) || getPlayer().isCursedWeaponEquipped()) + { return; + } transformedSkills(); } diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/Unicorniun.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/Unicorniun.java index b63d63d5d0..f0a7b27a9f 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/Unicorniun.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/Unicorniun.java @@ -1,3 +1,17 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.datatables.SkillTable; @@ -9,7 +23,11 @@ import com.l2jserver.gameserver.model.L2Transformation; */ public class Unicorniun extends L2Transformation { - private static final int[] SKILLS = {906,907,908,909,910,5491,619}; + private static final int[] SKILLS = + { + 906, 907, 908, 909, 910, 5491, 619 + }; + public Unicorniun() { // id, colRadius, colHeight @@ -19,11 +37,15 @@ public class Unicorniun extends L2Transformation @Override public void onTransform() { - if (getPlayer().getTransformationId() != 220 || getPlayer().isCursedWeaponEquipped()) + if ((getPlayer().getTransformationId() != 220) || getPlayer().isCursedWeaponEquipped()) + { return; + } if (getPlayer().getPet() != null) + { getPlayer().getPet().unSummon(getPlayer()); + } transformedSkills(); } diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/ValeMaster.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/ValeMaster.java index 258c2e56bb..949dfdc72a 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/ValeMaster.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/ValeMaster.java @@ -1,3 +1,17 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.datatables.SkillTable; @@ -6,7 +20,11 @@ import com.l2jserver.gameserver.model.L2Transformation; public class ValeMaster extends L2Transformation { - private static final int[] SKILLS = {742,743,744,745,5491,619}; + private static final int[] SKILLS = + { + 742, 743, 744, 745, 5491, 619 + }; + public ValeMaster() { // id, colRadius, colHeight @@ -16,8 +34,10 @@ public class ValeMaster extends L2Transformation @Override public void onTransform() { - if (getPlayer().getTransformationId() != 4 || getPlayer().isCursedWeaponEquipped()) + if ((getPlayer().getTransformationId() != 4) || getPlayer().isCursedWeaponEquipped()) + { return; + } transformedSkills(); } diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/VanguardDarkAvenger.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/VanguardDarkAvenger.java index 16924de089..6b1f268e80 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/VanguardDarkAvenger.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/VanguardDarkAvenger.java @@ -1,3 +1,17 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.datatables.SkillTable; @@ -15,8 +29,10 @@ public class VanguardDarkAvenger extends L2Transformation @Override public void onTransform() { - if (getPlayer().getTransformationId() != 313 || getPlayer().isCursedWeaponEquipped()) + if ((getPlayer().getTransformationId() != 313) || getPlayer().isCursedWeaponEquipped()) + { return; + } transformedSkills(); } @@ -25,7 +41,9 @@ public class VanguardDarkAvenger extends L2Transformation { int lvl = 1; if (getPlayer().getLevel() > 42) + { lvl = (getPlayer().getLevel() - 42); + } // Dual Weapon Mastery getPlayer().addSkill(SkillTable.getInstance().getInfo(144, lvl), false); @@ -40,7 +58,10 @@ public class VanguardDarkAvenger extends L2Transformation // Switch Stance getPlayer().addSkill(SkillTable.getInstance().getInfo(838, 1), false); // Set allowed skills - getPlayer().setTransformAllowedSkills(new int[]{18,28,65,86,144,283,815,817,838,956,958,401}); + getPlayer().setTransformAllowedSkills(new int[] + { + 18, 28, 65, 86, 144, 283, 815, 817, 838, 956, 958, 401 + }); } @Override @@ -53,7 +74,9 @@ public class VanguardDarkAvenger extends L2Transformation { int lvl = 1; if (getPlayer().getLevel() > 42) + { lvl = (getPlayer().getLevel() - 42); + } // Dual Weapon Mastery getPlayer().removeSkill(SkillTable.getInstance().getInfo(144, lvl), false); diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/VanguardPaladin.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/VanguardPaladin.java index 03274d66bf..18fa294863 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/VanguardPaladin.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/VanguardPaladin.java @@ -1,3 +1,17 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.datatables.SkillTable; @@ -15,8 +29,10 @@ public class VanguardPaladin extends L2Transformation @Override public void onTransform() { - if (getPlayer().getTransformationId() != 312 || getPlayer().isCursedWeaponEquipped()) + if ((getPlayer().getTransformationId() != 312) || getPlayer().isCursedWeaponEquipped()) + { return; + } transformedSkills(); } @@ -25,7 +41,9 @@ public class VanguardPaladin extends L2Transformation { int lvl = 1; if (getPlayer().getLevel() > 42) + { lvl = (getPlayer().getLevel() - 42); + } // Two handed mastery getPlayer().addSkill(SkillTable.getInstance().getInfo(293, lvl), false); @@ -40,7 +58,10 @@ public class VanguardPaladin extends L2Transformation // Switch Stance getPlayer().addSkill(SkillTable.getInstance().getInfo(838, 1), false); // Set allowed skills - getPlayer().setTransformAllowedSkills(new int[]{18,28,196,197,293,400,406,814,816,838,956,957}); + getPlayer().setTransformAllowedSkills(new int[] + { + 18, 28, 196, 197, 293, 400, 406, 814, 816, 838, 956, 957 + }); } @Override @@ -53,7 +74,9 @@ public class VanguardPaladin extends L2Transformation { int lvl = 1; if (getPlayer().getLevel() > 42) + { lvl = (getPlayer().getLevel() - 42); + } // Two handed mastery getPlayer().removeSkill(SkillTable.getInstance().getInfo(293, lvl), false); diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/VanguardShilienKnight.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/VanguardShilienKnight.java index 78cc5a3133..87610343d0 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/VanguardShilienKnight.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/VanguardShilienKnight.java @@ -1,3 +1,17 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.datatables.SkillTable; @@ -15,8 +29,10 @@ public class VanguardShilienKnight extends L2Transformation @Override public void onTransform() { - if (getPlayer().getTransformationId() != 315 || getPlayer().isCursedWeaponEquipped()) + if ((getPlayer().getTransformationId() != 315) || getPlayer().isCursedWeaponEquipped()) + { return; + } transformedSkills(); } @@ -25,7 +41,9 @@ public class VanguardShilienKnight extends L2Transformation { int lvl = 1; if (getPlayer().getLevel() > 42) + { lvl = (getPlayer().getLevel() - 42); + } // Dual Weapon Mastery getPlayer().addSkill(SkillTable.getInstance().getInfo(144, lvl), false); @@ -40,7 +58,10 @@ public class VanguardShilienKnight extends L2Transformation // Switch Stance getPlayer().addSkill(SkillTable.getInstance().getInfo(838, 1), false); // Set allowed skills - getPlayer().setTransformAllowedSkills(new int[]{18,22,28,33,144,278,279,289,401,815,817,838,956,958}); + getPlayer().setTransformAllowedSkills(new int[] + { + 18, 22, 28, 33, 144, 278, 279, 289, 401, 815, 817, 838, 956, 958 + }); } @Override @@ -53,7 +74,9 @@ public class VanguardShilienKnight extends L2Transformation { int lvl = 1; if (getPlayer().getLevel() > 42) + { lvl = (getPlayer().getLevel() - 42); + } // Dual Weapon Mastery getPlayer().removeSkill(SkillTable.getInstance().getInfo(144, lvl), false); diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/VanguardTempleKnight.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/VanguardTempleKnight.java index 72f8750e7e..58e3684bd8 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/VanguardTempleKnight.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/VanguardTempleKnight.java @@ -1,3 +1,17 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.datatables.SkillTable; @@ -15,8 +29,10 @@ public class VanguardTempleKnight extends L2Transformation @Override public void onTransform() { - if (getPlayer().getTransformationId() != 314 || getPlayer().isCursedWeaponEquipped()) + if ((getPlayer().getTransformationId() != 314) || getPlayer().isCursedWeaponEquipped()) + { return; + } transformedSkills(); } @@ -25,7 +41,9 @@ public class VanguardTempleKnight extends L2Transformation { int lvl = 1; if (getPlayer().getLevel() > 42) + { lvl = (getPlayer().getLevel() - 42); + } // Two handed mastery getPlayer().addSkill(SkillTable.getInstance().getInfo(293, lvl), false); @@ -40,7 +58,10 @@ public class VanguardTempleKnight extends L2Transformation // Switch Stance getPlayer().addSkill(SkillTable.getInstance().getInfo(838, 1), false); // Set allowed skills - getPlayer().setTransformAllowedSkills(new int[]{10,18,28,67,197,293,400,449,814,816,838,956,957}); + getPlayer().setTransformAllowedSkills(new int[] + { + 10, 18, 28, 67, 197, 293, 400, 449, 814, 816, 838, 956, 957 + }); } @Override @@ -53,7 +74,9 @@ public class VanguardTempleKnight extends L2Transformation { int lvl = 1; if (getPlayer().getLevel() > 42) + { lvl = (getPlayer().getLevel() - 42); + } // Two handed mastery getPlayer().removeSkill(SkillTable.getInstance().getInfo(293, lvl), false); diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/WingTow.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/WingTow.java index 7935df35a8..9baf1d9584 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/WingTow.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/WingTow.java @@ -1,3 +1,17 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.datatables.SkillTable; @@ -6,7 +20,11 @@ import com.l2jserver.gameserver.model.L2Transformation; public class WingTow extends L2Transformation { - private static final int[] SKILLS = {5491,619}; + private static final int[] SKILLS = + { + 5491, 619 + }; + public WingTow() { // id, colRadius, colHeight @@ -16,8 +34,10 @@ public class WingTow extends L2Transformation @Override public void onTransform() { - if (getPlayer().getTransformationId() != 120 || getPlayer().isCursedWeaponEquipped()) + if ((getPlayer().getTransformationId() != 120) || getPlayer().isCursedWeaponEquipped()) + { return; + } transformedSkills(); } diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/WoodHorse.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/WoodHorse.java new file mode 100644 index 0000000000..dfe6e8e442 --- /dev/null +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/WoodHorse.java @@ -0,0 +1,78 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ +package transformations; + +import com.l2jserver.gameserver.datatables.SkillTable; +import com.l2jserver.gameserver.instancemanager.TransformationManager; +import com.l2jserver.gameserver.model.L2Transformation; + +/** + * @author Nyaran + */ +public class WoodHorse extends L2Transformation +{ + private static final int[] SKILLS = + { + 5491, 839 + }; + + public WoodHorse() + { + // id, colRadius, colHeight + super(20007, 21.5, 28.2); + } + + @Override + public void onTransform() + { + if ((getPlayer().getTransformationId() != 20007) || getPlayer().isCursedWeaponEquipped()) + { + return; + } + + transformedSkills(); + } + + public void transformedSkills() + { + // Decrease Bow/Crossbow Attack Speed + getPlayer().addSkill(SkillTable.getInstance().getInfo(5491, 1), false); + // Dismount + getPlayer().addSkill(SkillTable.getInstance().getInfo(839, 1), false); + + getPlayer().setTransformAllowedSkills(SKILLS); + } + + @Override + public void onUntransform() + { + removeSkills(); + } + + public void removeSkills() + { + // Decrease Bow/Crossbow Attack Speed + getPlayer().removeSkill(SkillTable.getInstance().getInfo(5491, 1), false); + // Dismount + getPlayer().removeSkill(SkillTable.getInstance().getInfo(839, 1), false); + + getPlayer().setTransformAllowedSkills(EMPTY_ARRAY); + } + + public static void main(String[] args) + { + TransformationManager.getInstance().registerTransformation(new WoodHorse()); + } +} diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/Yeti.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/Yeti.java index 4af503d196..64854ead55 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/Yeti.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/Yeti.java @@ -1,3 +1,17 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.datatables.SkillTable; @@ -6,7 +20,11 @@ import com.l2jserver.gameserver.model.L2Transformation; public class Yeti extends L2Transformation { - private static final int[] SKILLS = {5437,619}; + private static final int[] SKILLS = + { + 5437, 619 + }; + public Yeti() { // id, colRadius, colHeight @@ -16,8 +34,10 @@ public class Yeti extends L2Transformation @Override public void onTransform() { - if (getPlayer().getTransformationId() != 102 || getPlayer().isCursedWeaponEquipped()) + if ((getPlayer().getTransformationId() != 102) || getPlayer().isCursedWeaponEquipped()) + { return; + } transformedSkills(); } diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/Yeti2.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/Yeti2.java index 0e03440fb7..9551ceb9e1 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/Yeti2.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/Yeti2.java @@ -1,3 +1,17 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.datatables.SkillTable; @@ -6,7 +20,11 @@ import com.l2jserver.gameserver.model.L2Transformation; public class Yeti2 extends L2Transformation { - private static final int[] SKILLS = {5491,619}; + private static final int[] SKILLS = + { + 5491, 619 + }; + public Yeti2() { // id, colRadius, colHeight @@ -16,8 +34,10 @@ public class Yeti2 extends L2Transformation @Override public void onTransform() { - if (getPlayer().getTransformationId() != 323 || getPlayer().isCursedWeaponEquipped()) + if ((getPlayer().getTransformationId() != 323) || getPlayer().isCursedWeaponEquipped()) + { return; + } transformedSkills(); } diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/Zaken.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/Zaken.java index 1c2c4324db..c65c175d50 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/Zaken.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/Zaken.java @@ -1,3 +1,17 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.datatables.SkillTable; @@ -6,7 +20,11 @@ import com.l2jserver.gameserver.model.L2Transformation; public class Zaken extends L2Transformation { - private static final int[] SKILLS = {715,716,717,718,719,5491,619}; + private static final int[] SKILLS = + { + 715, 716, 717, 718, 719, 5491, 619 + }; + public Zaken() { // id, colRadius, colHeight @@ -16,8 +34,10 @@ public class Zaken extends L2Transformation @Override public void onTransform() { - if (getPlayer().getTransformationId() != 305 || getPlayer().isCursedWeaponEquipped()) + if ((getPlayer().getTransformationId() != 305) || getPlayer().isCursedWeaponEquipped()) + { return; + } transformedSkills(); } diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/Zariche.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/Zariche.java index 95b150bd72..dc258f1a54 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/Zariche.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/Zariche.java @@ -1,3 +1,17 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.instancemanager.TransformationManager; diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/Zombie.java b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/Zombie.java index 55e429eb50..efcbed5d89 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/transformations/Zombie.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/transformations/Zombie.java @@ -1,3 +1,17 @@ +/* + * 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 <http://www.gnu.org/licenses/>. + */ package transformations; import com.l2jserver.gameserver.datatables.SkillTable; @@ -6,7 +20,11 @@ import com.l2jserver.gameserver.model.L2Transformation; public class Zombie extends L2Transformation { - private static final int[] SKILLS = {5491,619}; + private static final int[] SKILLS = + { + 5491, 619 + }; + public Zombie() { // id, colRadius, colHeight @@ -16,8 +34,10 @@ public class Zombie extends L2Transformation @Override public void onTransform() { - if (getPlayer().getTransformationId() != 303 || getPlayer().isCursedWeaponEquipped()) + if ((getPlayer().getTransformationId() != 303) || getPlayer().isCursedWeaponEquipped()) + { return; + } transformedSkills(); } diff --git a/L2J_DataPack_BETA/dist/game/data/stats/skills/06900-06999.xml b/L2J_DataPack_BETA/dist/game/data/stats/skills/06900-06999.xml index 26f6bd4d5e..3ee84e784d 100644 --- a/L2J_DataPack_BETA/dist/game/data/stats/skills/06900-06999.xml +++ b/L2J_DataPack_BETA/dist/game/data/stats/skills/06900-06999.xml @@ -49,10 +49,15 @@ <set name="operateType" val="OP_PASSIVE" /> </skill> <skill id="6908" levels="1" name="Transform Master"> + <!-- High Five Skill --> <!-- Transforms into a game Master. --> - <set name="target" val="TARGET_NONE" /> - <set name="skillType" val="NOTDONE" /> - <set name="operateType" val="OP_PASSIVE" /> + <set name="operateType" val="OP_ACTIVE" /> + <set name="skillType" val="BUFF" /> + <set name="target" val="TARGET_SELF" /> + <set name="transformId" val="22" /> + <for> + <effect name="Transformation" abnormalTime="3600" val="0" abnormalLvl="1" abnormalType="transform" /> + </for> </skill> <skill id="6909" levels="1" name="Charming"> <!-- Shows the game master's charming actions. --> diff --git a/L2J_DataPack_BETA/dist/game/data/stats/skills/21200-21299.xml b/L2J_DataPack_BETA/dist/game/data/stats/skills/21200-21299.xml index ecd5a407d7..fd4aa653ff 100644 --- a/L2J_DataPack_BETA/dist/game/data/stats/skills/21200-21299.xml +++ b/L2J_DataPack_BETA/dist/game/data/stats/skills/21200-21299.xml @@ -207,6 +207,7 @@ <set name="operateType" val="OP_PASSIVE" /> </skill> <skill id="21232" levels="1" name="Shiny Lit Platform"> + <!-- High Five Skill --> <!-- Steps onto the shiny lit platform. --> <set name="operateType" val="OP_ACTIVE" /> <set name="skillType" val="BUFF" /> @@ -387,10 +388,18 @@ <set name="operateType" val="OP_PASSIVE" /> </skill> <skill id="21258" levels="1" name="Rocking Horse Mount"> + <!-- High Five Skill --> <!-- Mounts a rocking horse. --> - <set name="target" val="TARGET_NONE" /> - <set name="skillType" val="NOTDONE" /> - <set name="operateType" val="OP_PASSIVE" /> + <set name="operateType" val="OP_ACTIVE" /> + <set name="skillType" val="BUFF" /> + <set name="target" val="TARGET_SELF" /> + <set name="transformId" val="20007" /> + <cond msgId="1509"> + <player olympiad="false" /> + </cond> + <for> + <effect name="Transformation" abnormalTime="1800" val="0" abnormalLvl="1" abnormalType="transform" /> + </for> </skill> <skill id="21259" levels="1" name="Release Seal on Agathion - Chorong"> <!-- Description: Removes the Agathion's seal. --> diff --git a/L2J_DataPack_BETA/dist/game/data/stats/skills/22100-22199.xml b/L2J_DataPack_BETA/dist/game/data/stats/skills/22100-22199.xml index 7bef45b77a..adeeeda295 100644 --- a/L2J_DataPack_BETA/dist/game/data/stats/skills/22100-22199.xml +++ b/L2J_DataPack_BETA/dist/game/data/stats/skills/22100-22199.xml @@ -1036,20 +1036,22 @@ </for> </skill> <skill id="22183" levels="1" name="Dragon Master Lee Transformation Scroll"> + <!-- High Five Skill --> <!-- Transformed into Dragon Master Lee. --> - <set name="target" val="TARGET_SELF" /> - <set name="skillType" val="BUFF" /> <set name="operateType" val="OP_ACTIVE" /> + <set name="skillType" val="BUFF" /> + <set name="target" val="TARGET_SELF" /> <set name="transformId" val="20005" /> <for> <effect name="Transformation" abnormalTime="-1" val="0" abnormalLvl="1" abnormalType="transform" /> </for> </skill> <skill id="22184" levels="1" name="Dragon Master Karin Transformation Scroll"> + <!-- High Five Skill --> <!-- Transformed into Dragon Master Karin. --> - <set name="target" val="TARGET_SELF" /> - <set name="skillType" val="BUFF" /> <set name="operateType" val="OP_ACTIVE" /> + <set name="skillType" val="BUFF" /> + <set name="target" val="TARGET_SELF" /> <set name="transformId" val="20006" /> <for> <effect name="Transformation" abnormalTime="-1" val="0" abnormalLvl="1" abnormalType="transform" /> @@ -1086,10 +1088,15 @@ <set name="operateType" val="OP_PASSIVE" /> </skill> <skill id="22190" levels="1" name="Transformation Scroll - Blue Block Checker"> + <!-- High Five Skill --> <!-- Transformed into a cute block checker. Look for a treasure chest on Fantasy Isle. --> - <set name="target" val="TARGET_NONE" /> - <set name="skillType" val="NOTDONE" /> - <set name="operateType" val="OP_PASSIVE" /> + <set name="operateType" val="OP_ACTIVE" /> + <set name="skillType" val="BUFF" /> + <set name="target" val="TARGET_SELF" /> + <set name="transformId" val="127" /> + <for> + <effect name="Transformation" abnormalTime="3600" val="0" abnormalLvl="1" abnormalType="transform" /> + </for> </skill> <skill id="22191" levels="1" name="Transformation Scroll - Onyx Beast"> <!-- Transformed into an Onyx Beast. --> -- GitLab