From 8e76b4772d64a3d91c6111fbcd67a17037f3549c Mon Sep 17 00:00:00 2001 From: MobiusDev <8391001+MobiusDevelopment@users.noreply.github.com> Date: Thu, 3 May 2018 22:30:45 +0000 Subject: [PATCH] Retail like builder messages. Adapted from: L2jUnity free files. --- .../dist/game/config/AdminCommands.xml | 12 +- .../dist/game/config/General.ini | 9 ++ .../dist/game/data/html/admin/gm_menu.htm | 10 +- .../data/scripts/handlers/MasterHandler.java | 6 + .../L2PcInstanceActionShift.java | 7 +- .../L2SummonActionShift.java | 7 +- .../admincommandhandlers/AdminEffects.java | 33 ----- .../admincommandhandlers/AdminGmSpeed.java | 119 +++++++++++++++ .../admincommandhandlers/AdminHide.java | 87 +++++++++++ .../admincommandhandlers/AdminMenu.java | 19 +-- .../admincommandhandlers/AdminSummon.java | 29 +--- .../admincommandhandlers/AdminSuperHaste.java | 92 ++++++++++++ .../java/com/l2jmobius/Config.java | 4 + .../handler/AdminCommandHandler.java | 95 +++++++++++- .../model/actor/instance/L2PcInstance.java | 50 +------ .../network/clientpackets/DlgAnswer.java | 17 +-- .../network/clientpackets/EnterWorld.java | 72 ++++++---- .../clientpackets/RequestBypassToServer.java | 3 +- .../clientpackets/RequestDestroyItem.java | 3 +- .../RequestTutorialLinkHtml.java | 3 +- .../RequestTutorialPassCmdToServer.java | 3 +- .../clientpackets/SendBypassBuildCmd.java | 33 +---- .../network/clientpackets/UseItem.java | 3 +- .../gameserver/util/BuilderUtil.java | 72 ++++++++++ .../util/TimeAmountInterpreter.java | 136 ++++++++++++++++++ .../dist/game/config/AdminCommands.xml | 12 +- .../dist/game/config/General.ini | 9 ++ .../dist/game/data/html/admin/gm_menu.htm | 10 +- .../data/scripts/handlers/MasterHandler.java | 6 + .../L2PcInstanceActionShift.java | 7 +- .../L2SummonActionShift.java | 7 +- .../admincommandhandlers/AdminEffects.java | 33 ----- .../admincommandhandlers/AdminGmSpeed.java | 119 +++++++++++++++ .../admincommandhandlers/AdminHide.java | 87 +++++++++++ .../admincommandhandlers/AdminMenu.java | 19 +-- .../admincommandhandlers/AdminSummon.java | 29 +--- .../admincommandhandlers/AdminSuperHaste.java | 92 ++++++++++++ .../java/com/l2jmobius/Config.java | 4 + .../handler/AdminCommandHandler.java | 95 +++++++++++- .../model/actor/instance/L2PcInstance.java | 50 +------ .../network/clientpackets/DlgAnswer.java | 17 +-- .../network/clientpackets/EnterWorld.java | 72 ++++++---- .../clientpackets/RequestBypassToServer.java | 3 +- .../clientpackets/RequestDestroyItem.java | 3 +- .../RequestTutorialLinkHtml.java | 3 +- .../RequestTutorialPassCmdToServer.java | 3 +- .../clientpackets/SendBypassBuildCmd.java | 33 +---- .../network/clientpackets/UseItem.java | 3 +- .../gameserver/util/BuilderUtil.java | 72 ++++++++++ .../util/TimeAmountInterpreter.java | 136 ++++++++++++++++++ .../dist/game/config/AdminCommands.xml | 12 +- .../dist/game/config/General.ini | 9 ++ .../dist/game/data/html/admin/gm_menu.htm | 10 +- .../data/scripts/handlers/MasterHandler.java | 6 + .../L2PcInstanceActionShift.java | 7 +- .../L2SummonActionShift.java | 7 +- .../admincommandhandlers/AdminEffects.java | 33 ----- .../admincommandhandlers/AdminGmSpeed.java | 119 +++++++++++++++ .../admincommandhandlers/AdminHide.java | 87 +++++++++++ .../admincommandhandlers/AdminMenu.java | 19 +-- .../admincommandhandlers/AdminSummon.java | 29 +--- .../admincommandhandlers/AdminSuperHaste.java | 92 ++++++++++++ .../java/com/l2jmobius/Config.java | 4 + .../handler/AdminCommandHandler.java | 95 +++++++++++- .../model/actor/instance/L2PcInstance.java | 50 +------ .../network/clientpackets/DlgAnswer.java | 17 +-- .../network/clientpackets/EnterWorld.java | 72 ++++++---- .../clientpackets/RequestBypassToServer.java | 3 +- .../clientpackets/RequestDestroyItem.java | 3 +- .../RequestTutorialLinkHtml.java | 3 +- .../RequestTutorialPassCmdToServer.java | 3 +- .../clientpackets/SendBypassBuildCmd.java | 33 +---- .../network/clientpackets/UseItem.java | 3 +- .../gameserver/util/BuilderUtil.java | 72 ++++++++++ .../util/TimeAmountInterpreter.java | 136 ++++++++++++++++++ .../dist/game/config/AdminCommands.xml | 12 +- .../dist/game/config/General.ini | 9 ++ .../dist/game/data/html/admin/gm_menu.htm | 10 +- .../data/scripts/handlers/MasterHandler.java | 6 + .../L2PcInstanceActionShift.java | 7 +- .../L2SummonActionShift.java | 7 +- .../admincommandhandlers/AdminEffects.java | 33 ----- .../admincommandhandlers/AdminGmSpeed.java | 119 +++++++++++++++ .../admincommandhandlers/AdminHide.java | 87 +++++++++++ .../admincommandhandlers/AdminMenu.java | 19 +-- .../admincommandhandlers/AdminSummon.java | 29 +--- .../admincommandhandlers/AdminSuperHaste.java | 92 ++++++++++++ .../java/com/l2jmobius/Config.java | 4 + .../handler/AdminCommandHandler.java | 95 +++++++++++- .../model/actor/instance/L2PcInstance.java | 50 +------ .../network/clientpackets/DlgAnswer.java | 17 +-- .../network/clientpackets/EnterWorld.java | 72 ++++++---- .../clientpackets/RequestBypassToServer.java | 3 +- .../clientpackets/RequestDestroyItem.java | 3 +- .../RequestTutorialLinkHtml.java | 3 +- .../RequestTutorialPassCmdToServer.java | 3 +- .../clientpackets/SendBypassBuildCmd.java | 33 +---- .../network/clientpackets/UseItem.java | 3 +- .../gameserver/util/BuilderUtil.java | 72 ++++++++++ .../util/TimeAmountInterpreter.java | 136 ++++++++++++++++++ .../sql/game/admin_command_access_rights.sql | 7 +- .../dist/game/config/main/access.ini | 23 ++- .../dist/game/data/html/admin/main_menu.htm | 12 +- .../dist/game/data/html/admin/move.htm | 12 +- .../java/com/l2jmobius/Config.java | 34 +++-- .../handler/AdminCommandHandler.java | 6 + .../admincommandhandlers/AdminEffects.java | 34 ----- .../admincommandhandlers/AdminGmSpeed.java | 133 +++++++++++++++++ .../admincommandhandlers/AdminHide.java | 87 +++++++++++ .../admincommandhandlers/AdminSuperHaste.java | 97 +++++++++++++ .../model/actor/instance/L2PcInstance.java | 28 ++-- .../gameserver/model/actor/stat/CharStat.java | 16 ++- .../network/clientpackets/EnterWorld.java | 66 +++++---- .../gameserver/util/BuilderUtil.java | 67 +++++++++ .../util/TimeAmountInterpreter.java | 136 ++++++++++++++++++ .../com/l2jmobius/gameserver/util/Util.java | 63 ++++++++ .../dist/game/config/AdminCommands.xml | 12 +- .../dist/game/config/General.ini | 9 ++ .../dist/game/data/html/admin/gm_menu.htm | 10 +- .../data/scripts/handlers/MasterHandler.java | 6 + .../L2PcInstanceActionShift.java | 7 +- .../L2SummonActionShift.java | 7 +- .../admincommandhandlers/AdminEffects.java | 27 ---- .../admincommandhandlers/AdminGmSpeed.java | 109 ++++++++++++++ .../admincommandhandlers/AdminHide.java | 87 +++++++++++ .../admincommandhandlers/AdminMenu.java | 19 +-- .../admincommandhandlers/AdminSummon.java | 29 +--- .../admincommandhandlers/AdminSuperHaste.java | 92 ++++++++++++ .../java/com/l2jmobius/Config.java | 4 + .../handler/AdminCommandHandler.java | 95 +++++++++++- .../model/actor/instance/L2PcInstance.java | 3 +- .../gameserver/model/actor/stat/CharStat.java | 15 +- .../network/clientpackets/DlgAnswer.java | 16 +-- .../network/clientpackets/EnterWorld.java | 70 +++++---- .../clientpackets/RequestBypassToServer.java | 45 +----- .../clientpackets/SendBypassBuildCmd.java | 33 +---- .../gameserver/util/BuilderUtil.java | 70 +++++++++ .../util/TimeAmountInterpreter.java | 136 ++++++++++++++++++ .../dist/game/config/AdminCommands.xml | 12 +- .../dist/game/config/General.ini | 9 ++ .../dist/game/data/html/admin/gm_menu.htm | 10 +- .../data/scripts/handlers/MasterHandler.java | 6 + .../L2PcInstanceActionShift.java | 7 +- .../L2SummonActionShift.java | 7 +- .../admincommandhandlers/AdminEffects.java | 33 ----- .../admincommandhandlers/AdminGmSpeed.java | 119 +++++++++++++++ .../admincommandhandlers/AdminHide.java | 87 +++++++++++ .../admincommandhandlers/AdminMenu.java | 19 +-- .../admincommandhandlers/AdminSummon.java | 29 +--- .../admincommandhandlers/AdminSuperHaste.java | 92 ++++++++++++ .../java/com/l2jmobius/Config.java | 4 + .../handler/AdminCommandHandler.java | 95 +++++++++++- .../model/actor/instance/L2PcInstance.java | 50 +------ .../network/clientpackets/DlgAnswer.java | 17 +-- .../network/clientpackets/EnterWorld.java | 72 ++++++---- .../clientpackets/RequestBypassToServer.java | 3 +- .../clientpackets/RequestDestroyItem.java | 3 +- .../RequestTutorialLinkHtml.java | 3 +- .../RequestTutorialPassCmdToServer.java | 3 +- .../clientpackets/SendBypassBuildCmd.java | 33 +---- .../network/clientpackets/UseItem.java | 3 +- .../gameserver/util/BuilderUtil.java | 72 ++++++++++ .../util/TimeAmountInterpreter.java | 136 ++++++++++++++++++ .../dist/game/config/AdminCommands.xml | 12 +- .../dist/game/config/General.ini | 9 ++ .../dist/game/data/html/admin/gm_menu.htm | 10 +- .../data/scripts/handlers/MasterHandler.java | 6 + .../L2PcInstanceActionShift.java | 7 +- .../L2SummonActionShift.java | 7 +- .../admincommandhandlers/AdminEffects.java | 33 ----- .../admincommandhandlers/AdminGmSpeed.java | 119 +++++++++++++++ .../admincommandhandlers/AdminHide.java | 87 +++++++++++ .../admincommandhandlers/AdminMenu.java | 19 +-- .../admincommandhandlers/AdminSummon.java | 29 +--- .../admincommandhandlers/AdminSuperHaste.java | 92 ++++++++++++ .../java/com/l2jmobius/Config.java | 4 + .../handler/AdminCommandHandler.java | 95 +++++++++++- .../model/actor/instance/L2PcInstance.java | 50 +------ .../network/clientpackets/DlgAnswer.java | 17 +-- .../network/clientpackets/EnterWorld.java | 72 ++++++---- .../clientpackets/RequestBypassToServer.java | 3 +- .../clientpackets/RequestDestroyItem.java | 3 +- .../RequestTutorialLinkHtml.java | 3 +- .../RequestTutorialPassCmdToServer.java | 3 +- .../clientpackets/SendBypassBuildCmd.java | 33 +---- .../network/clientpackets/UseItem.java | 3 +- .../gameserver/util/BuilderUtil.java | 72 ++++++++++ .../util/TimeAmountInterpreter.java | 136 ++++++++++++++++++ 188 files changed, 5621 insertions(+), 1645 deletions(-) create mode 100644 L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/handlers/admincommandhandlers/AdminGmSpeed.java create mode 100644 L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/handlers/admincommandhandlers/AdminHide.java create mode 100644 L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/handlers/admincommandhandlers/AdminSuperHaste.java create mode 100644 L2J_Mobius_1.0_Ertheia/java/com/l2jmobius/gameserver/util/BuilderUtil.java create mode 100644 L2J_Mobius_1.0_Ertheia/java/com/l2jmobius/gameserver/util/TimeAmountInterpreter.java create mode 100644 L2J_Mobius_2.5_Underground/dist/game/data/scripts/handlers/admincommandhandlers/AdminGmSpeed.java create mode 100644 L2J_Mobius_2.5_Underground/dist/game/data/scripts/handlers/admincommandhandlers/AdminHide.java create mode 100644 L2J_Mobius_2.5_Underground/dist/game/data/scripts/handlers/admincommandhandlers/AdminSuperHaste.java create mode 100644 L2J_Mobius_2.5_Underground/java/com/l2jmobius/gameserver/util/BuilderUtil.java create mode 100644 L2J_Mobius_2.5_Underground/java/com/l2jmobius/gameserver/util/TimeAmountInterpreter.java create mode 100644 L2J_Mobius_3.0_Helios/dist/game/data/scripts/handlers/admincommandhandlers/AdminGmSpeed.java create mode 100644 L2J_Mobius_3.0_Helios/dist/game/data/scripts/handlers/admincommandhandlers/AdminHide.java create mode 100644 L2J_Mobius_3.0_Helios/dist/game/data/scripts/handlers/admincommandhandlers/AdminSuperHaste.java create mode 100644 L2J_Mobius_3.0_Helios/java/com/l2jmobius/gameserver/util/BuilderUtil.java create mode 100644 L2J_Mobius_3.0_Helios/java/com/l2jmobius/gameserver/util/TimeAmountInterpreter.java create mode 100644 L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/handlers/admincommandhandlers/AdminGmSpeed.java create mode 100644 L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/handlers/admincommandhandlers/AdminHide.java create mode 100644 L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/handlers/admincommandhandlers/AdminSuperHaste.java create mode 100644 L2J_Mobius_4.0_GrandCrusade/java/com/l2jmobius/gameserver/util/BuilderUtil.java create mode 100644 L2J_Mobius_4.0_GrandCrusade/java/com/l2jmobius/gameserver/util/TimeAmountInterpreter.java create mode 100644 L2J_Mobius_C6_Interlude/java/com/l2jmobius/gameserver/handler/admincommandhandlers/AdminGmSpeed.java create mode 100644 L2J_Mobius_C6_Interlude/java/com/l2jmobius/gameserver/handler/admincommandhandlers/AdminHide.java create mode 100644 L2J_Mobius_C6_Interlude/java/com/l2jmobius/gameserver/handler/admincommandhandlers/AdminSuperHaste.java create mode 100644 L2J_Mobius_C6_Interlude/java/com/l2jmobius/gameserver/util/BuilderUtil.java create mode 100644 L2J_Mobius_C6_Interlude/java/com/l2jmobius/gameserver/util/TimeAmountInterpreter.java create mode 100644 L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/admincommandhandlers/AdminGmSpeed.java create mode 100644 L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/admincommandhandlers/AdminHide.java create mode 100644 L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/admincommandhandlers/AdminSuperHaste.java create mode 100644 L2J_Mobius_CT_2.6_HighFive/java/com/l2jmobius/gameserver/util/BuilderUtil.java create mode 100644 L2J_Mobius_CT_2.6_HighFive/java/com/l2jmobius/gameserver/util/TimeAmountInterpreter.java create mode 100644 L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/admincommandhandlers/AdminGmSpeed.java create mode 100644 L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/admincommandhandlers/AdminHide.java create mode 100644 L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/admincommandhandlers/AdminSuperHaste.java create mode 100644 L2J_Mobius_Classic_2.0_Saviors/java/com/l2jmobius/gameserver/util/BuilderUtil.java create mode 100644 L2J_Mobius_Classic_2.0_Saviors/java/com/l2jmobius/gameserver/util/TimeAmountInterpreter.java create mode 100644 L2J_Mobius_Classic_2.0_Zaken/dist/game/data/scripts/handlers/admincommandhandlers/AdminGmSpeed.java create mode 100644 L2J_Mobius_Classic_2.0_Zaken/dist/game/data/scripts/handlers/admincommandhandlers/AdminHide.java create mode 100644 L2J_Mobius_Classic_2.0_Zaken/dist/game/data/scripts/handlers/admincommandhandlers/AdminSuperHaste.java create mode 100644 L2J_Mobius_Classic_2.0_Zaken/java/com/l2jmobius/gameserver/util/BuilderUtil.java create mode 100644 L2J_Mobius_Classic_2.0_Zaken/java/com/l2jmobius/gameserver/util/TimeAmountInterpreter.java diff --git a/L2J_Mobius_1.0_Ertheia/dist/game/config/AdminCommands.xml b/L2J_Mobius_1.0_Ertheia/dist/game/config/AdminCommands.xml index 14882ea07a..8b4096bd34 100644 --- a/L2J_Mobius_1.0_Ertheia/dist/game/config/AdminCommands.xml +++ b/L2J_Mobius_1.0_Ertheia/dist/game/config/AdminCommands.xml @@ -158,8 +158,6 @@ - - @@ -189,6 +187,13 @@ + + + + + + + @@ -615,4 +620,7 @@ + + + \ No newline at end of file diff --git a/L2J_Mobius_1.0_Ertheia/dist/game/config/General.ini b/L2J_Mobius_1.0_Ertheia/dist/game/config/General.ini index 5d0c257de2..8bf34b3e81 100644 --- a/L2J_Mobius_1.0_Ertheia/dist/game/config/General.ini +++ b/L2J_Mobius_1.0_Ertheia/dist/game/config/General.ini @@ -25,6 +25,10 @@ ServerGMOnly = False # Default: False GMHeroAura = False +# Whether GM logins in builder hide mode by default. +# Default: True +GMStartupBuilderHide = True + # Auto set invulnerable status to a GM on login. # Default: False GMStartupInvulnerable = True @@ -79,6 +83,11 @@ GMGiveSpecialSkills = False # Default: False GMGiveSpecialAuraSkills = False +# In case you are not satisfied with the retail-like implementation of //gmspeed", +# with this config you can rollback it to the old custom L2J version of the GM Speed. +# Default: False +UseSuperHasteAsGMSpeed = False + # --------------------------------------------------------------------------- # Server Security diff --git a/L2J_Mobius_1.0_Ertheia/dist/game/data/html/admin/gm_menu.htm b/L2J_Mobius_1.0_Ertheia/dist/game/data/html/admin/gm_menu.htm index ffe3e3d025..5a8f77eaba 100644 --- a/L2J_Mobius_1.0_Ertheia/dist/game/data/html/admin/gm_menu.htm +++ b/L2J_Mobius_1.0_Ertheia/dist/game/data/html/admin/gm_menu.htm @@ -38,11 +38,11 @@ - - - - - + + + + +
Super Haste:

diff --git a/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/handlers/MasterHandler.java b/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/handlers/MasterHandler.java index 920e4b5023..bd1994f812 100644 --- a/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/handlers/MasterHandler.java +++ b/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/handlers/MasterHandler.java @@ -84,9 +84,11 @@ import handlers.admincommandhandlers.AdminFortSiege; import handlers.admincommandhandlers.AdminGeodata; import handlers.admincommandhandlers.AdminGm; import handlers.admincommandhandlers.AdminGmChat; +import handlers.admincommandhandlers.AdminGmSpeed; import handlers.admincommandhandlers.AdminGraciaSeeds; import handlers.admincommandhandlers.AdminGrandBoss; import handlers.admincommandhandlers.AdminHeal; +import handlers.admincommandhandlers.AdminHide; import handlers.admincommandhandlers.AdminHtml; import handlers.admincommandhandlers.AdminHwid; import handlers.admincommandhandlers.AdminInstance; @@ -126,6 +128,7 @@ import handlers.admincommandhandlers.AdminShutdown; import handlers.admincommandhandlers.AdminSkill; import handlers.admincommandhandlers.AdminSpawn; import handlers.admincommandhandlers.AdminSummon; +import handlers.admincommandhandlers.AdminSuperHaste; import handlers.admincommandhandlers.AdminTarget; import handlers.admincommandhandlers.AdminTargetSay; import handlers.admincommandhandlers.AdminTeleport; @@ -413,9 +416,11 @@ public class MasterHandler AdminGeodata.class, AdminGm.class, AdminGmChat.class, + AdminGmSpeed.class, AdminGraciaSeeds.class, AdminGrandBoss.class, AdminHeal.class, + AdminHide.class, AdminHtml.class, AdminHwid.class, AdminInstance.class, @@ -455,6 +460,7 @@ public class MasterHandler AdminSkill.class, AdminSpawn.class, AdminSummon.class, + AdminSuperHaste.class, AdminTarget.class, AdminTargetSay.class, AdminTeleport.class, diff --git a/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/handlers/actionshifthandlers/L2PcInstanceActionShift.java b/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/handlers/actionshifthandlers/L2PcInstanceActionShift.java index 6b1bb7ac43..72c01c3cf8 100644 --- a/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/handlers/actionshifthandlers/L2PcInstanceActionShift.java +++ b/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/handlers/actionshifthandlers/L2PcInstanceActionShift.java @@ -19,7 +19,6 @@ package handlers.actionshifthandlers; import com.l2jmobius.gameserver.enums.InstanceType; import com.l2jmobius.gameserver.handler.AdminCommandHandler; import com.l2jmobius.gameserver.handler.IActionShiftHandler; -import com.l2jmobius.gameserver.handler.IAdminCommandHandler; import com.l2jmobius.gameserver.model.L2Object; import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance; @@ -37,11 +36,7 @@ public class L2PcInstanceActionShift implements IActionShiftHandler activeChar.setTarget(target); } - final IAdminCommandHandler ach = AdminCommandHandler.getInstance().getHandler("admin_character_info"); - if (ach != null) - { - ach.useAdminCommand("admin_character_info " + target.getName(), activeChar); - } + AdminCommandHandler.getInstance().useAdminCommand(activeChar, "admin_character_info " + target.getName(), true); } return true; } diff --git a/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/handlers/actionshifthandlers/L2SummonActionShift.java b/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/handlers/actionshifthandlers/L2SummonActionShift.java index 67d403c9b3..6ee8a1173e 100644 --- a/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/handlers/actionshifthandlers/L2SummonActionShift.java +++ b/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/handlers/actionshifthandlers/L2SummonActionShift.java @@ -19,7 +19,6 @@ package handlers.actionshifthandlers; import com.l2jmobius.gameserver.enums.InstanceType; import com.l2jmobius.gameserver.handler.AdminCommandHandler; import com.l2jmobius.gameserver.handler.IActionShiftHandler; -import com.l2jmobius.gameserver.handler.IAdminCommandHandler; import com.l2jmobius.gameserver.model.L2Object; import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance; @@ -36,11 +35,7 @@ public class L2SummonActionShift implements IActionShiftHandler activeChar.setTarget(target); } - final IAdminCommandHandler ach = AdminCommandHandler.getInstance().getHandler("admin_summon_info"); - if (ach != null) - { - ach.useAdminCommand("admin_summon_info", activeChar); - } + AdminCommandHandler.getInstance().useAdminCommand(activeChar, "admin_summon_info", true); } return true; } diff --git a/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/handlers/admincommandhandlers/AdminEffects.java b/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/handlers/admincommandhandlers/AdminEffects.java index 6c2b00db74..467875568d 100644 --- a/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/handlers/admincommandhandlers/AdminEffects.java +++ b/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/handlers/admincommandhandlers/AdminEffects.java @@ -19,7 +19,6 @@ package handlers.admincommandhandlers; import java.util.Arrays; import java.util.StringTokenizer; -import com.l2jmobius.gameserver.data.xml.impl.SkillData; import com.l2jmobius.gameserver.enums.Movie; import com.l2jmobius.gameserver.enums.Team; import com.l2jmobius.gameserver.handler.IAdminCommandHandler; @@ -34,7 +33,6 @@ import com.l2jmobius.gameserver.model.html.PageBuilder; import com.l2jmobius.gameserver.model.html.PageResult; import com.l2jmobius.gameserver.model.html.styles.ButtonsStyle; import com.l2jmobius.gameserver.model.skills.AbnormalVisualEffect; -import com.l2jmobius.gameserver.model.skills.Skill; import com.l2jmobius.gameserver.network.SystemMessageId; import com.l2jmobius.gameserver.network.serverpackets.Earthquake; import com.l2jmobius.gameserver.network.serverpackets.ExRedSky; @@ -81,8 +79,6 @@ public class AdminEffects implements IAdminCommandHandler "admin_earthquake_menu", "admin_bighead", "admin_shrinkhead", - "admin_gmspeed", - "admin_gmspeed_menu", "admin_unpara_all", "admin_para_all", "admin_unpara", @@ -351,35 +347,6 @@ public class AdminEffects implements IAdminCommandHandler { } } - else if (command.startsWith("admin_gmspeed")) - { - try - { - final int val = Integer.parseInt(st.nextToken()); - final boolean sendMessage = activeChar.isAffectedBySkill(7029); - activeChar.stopSkillEffects((val == 0) && sendMessage, 7029); - if ((val >= 1) && (val <= 4)) - { - int time = 0; - if (st.hasMoreTokens()) - { - time = Integer.parseInt(st.nextToken()); - } - - final Skill gmSpeedSkill = SkillData.getInstance().getSkill(7029, val); - gmSpeedSkill.applyEffects(activeChar, activeChar, true, time); - } - } - catch (Exception e) - { - activeChar.sendMessage("Usage: //gmspeed
- - - - - + + + + +
Super Haste:

diff --git a/L2J_Mobius_2.5_Underground/dist/game/data/scripts/handlers/MasterHandler.java b/L2J_Mobius_2.5_Underground/dist/game/data/scripts/handlers/MasterHandler.java index 4736bff5de..413ea22833 100644 --- a/L2J_Mobius_2.5_Underground/dist/game/data/scripts/handlers/MasterHandler.java +++ b/L2J_Mobius_2.5_Underground/dist/game/data/scripts/handlers/MasterHandler.java @@ -84,9 +84,11 @@ import handlers.admincommandhandlers.AdminFortSiege; import handlers.admincommandhandlers.AdminGeodata; import handlers.admincommandhandlers.AdminGm; import handlers.admincommandhandlers.AdminGmChat; +import handlers.admincommandhandlers.AdminGmSpeed; import handlers.admincommandhandlers.AdminGraciaSeeds; import handlers.admincommandhandlers.AdminGrandBoss; import handlers.admincommandhandlers.AdminHeal; +import handlers.admincommandhandlers.AdminHide; import handlers.admincommandhandlers.AdminHtml; import handlers.admincommandhandlers.AdminHwid; import handlers.admincommandhandlers.AdminInstance; @@ -126,6 +128,7 @@ import handlers.admincommandhandlers.AdminShutdown; import handlers.admincommandhandlers.AdminSkill; import handlers.admincommandhandlers.AdminSpawn; import handlers.admincommandhandlers.AdminSummon; +import handlers.admincommandhandlers.AdminSuperHaste; import handlers.admincommandhandlers.AdminTarget; import handlers.admincommandhandlers.AdminTargetSay; import handlers.admincommandhandlers.AdminTeleport; @@ -414,9 +417,11 @@ public class MasterHandler AdminGeodata.class, AdminGm.class, AdminGmChat.class, + AdminGmSpeed.class, AdminGraciaSeeds.class, AdminGrandBoss.class, AdminHeal.class, + AdminHide.class, AdminHtml.class, AdminHwid.class, AdminInstance.class, @@ -456,6 +461,7 @@ public class MasterHandler AdminSkill.class, AdminSpawn.class, AdminSummon.class, + AdminSuperHaste.class, AdminTarget.class, AdminTargetSay.class, AdminTeleport.class, diff --git a/L2J_Mobius_2.5_Underground/dist/game/data/scripts/handlers/actionshifthandlers/L2PcInstanceActionShift.java b/L2J_Mobius_2.5_Underground/dist/game/data/scripts/handlers/actionshifthandlers/L2PcInstanceActionShift.java index 6b1bb7ac43..72c01c3cf8 100644 --- a/L2J_Mobius_2.5_Underground/dist/game/data/scripts/handlers/actionshifthandlers/L2PcInstanceActionShift.java +++ b/L2J_Mobius_2.5_Underground/dist/game/data/scripts/handlers/actionshifthandlers/L2PcInstanceActionShift.java @@ -19,7 +19,6 @@ package handlers.actionshifthandlers; import com.l2jmobius.gameserver.enums.InstanceType; import com.l2jmobius.gameserver.handler.AdminCommandHandler; import com.l2jmobius.gameserver.handler.IActionShiftHandler; -import com.l2jmobius.gameserver.handler.IAdminCommandHandler; import com.l2jmobius.gameserver.model.L2Object; import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance; @@ -37,11 +36,7 @@ public class L2PcInstanceActionShift implements IActionShiftHandler activeChar.setTarget(target); } - final IAdminCommandHandler ach = AdminCommandHandler.getInstance().getHandler("admin_character_info"); - if (ach != null) - { - ach.useAdminCommand("admin_character_info " + target.getName(), activeChar); - } + AdminCommandHandler.getInstance().useAdminCommand(activeChar, "admin_character_info " + target.getName(), true); } return true; } diff --git a/L2J_Mobius_2.5_Underground/dist/game/data/scripts/handlers/actionshifthandlers/L2SummonActionShift.java b/L2J_Mobius_2.5_Underground/dist/game/data/scripts/handlers/actionshifthandlers/L2SummonActionShift.java index 67d403c9b3..6ee8a1173e 100644 --- a/L2J_Mobius_2.5_Underground/dist/game/data/scripts/handlers/actionshifthandlers/L2SummonActionShift.java +++ b/L2J_Mobius_2.5_Underground/dist/game/data/scripts/handlers/actionshifthandlers/L2SummonActionShift.java @@ -19,7 +19,6 @@ package handlers.actionshifthandlers; import com.l2jmobius.gameserver.enums.InstanceType; import com.l2jmobius.gameserver.handler.AdminCommandHandler; import com.l2jmobius.gameserver.handler.IActionShiftHandler; -import com.l2jmobius.gameserver.handler.IAdminCommandHandler; import com.l2jmobius.gameserver.model.L2Object; import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance; @@ -36,11 +35,7 @@ public class L2SummonActionShift implements IActionShiftHandler activeChar.setTarget(target); } - final IAdminCommandHandler ach = AdminCommandHandler.getInstance().getHandler("admin_summon_info"); - if (ach != null) - { - ach.useAdminCommand("admin_summon_info", activeChar); - } + AdminCommandHandler.getInstance().useAdminCommand(activeChar, "admin_summon_info", true); } return true; } diff --git a/L2J_Mobius_2.5_Underground/dist/game/data/scripts/handlers/admincommandhandlers/AdminEffects.java b/L2J_Mobius_2.5_Underground/dist/game/data/scripts/handlers/admincommandhandlers/AdminEffects.java index 6c2b00db74..467875568d 100644 --- a/L2J_Mobius_2.5_Underground/dist/game/data/scripts/handlers/admincommandhandlers/AdminEffects.java +++ b/L2J_Mobius_2.5_Underground/dist/game/data/scripts/handlers/admincommandhandlers/AdminEffects.java @@ -19,7 +19,6 @@ package handlers.admincommandhandlers; import java.util.Arrays; import java.util.StringTokenizer; -import com.l2jmobius.gameserver.data.xml.impl.SkillData; import com.l2jmobius.gameserver.enums.Movie; import com.l2jmobius.gameserver.enums.Team; import com.l2jmobius.gameserver.handler.IAdminCommandHandler; @@ -34,7 +33,6 @@ import com.l2jmobius.gameserver.model.html.PageBuilder; import com.l2jmobius.gameserver.model.html.PageResult; import com.l2jmobius.gameserver.model.html.styles.ButtonsStyle; import com.l2jmobius.gameserver.model.skills.AbnormalVisualEffect; -import com.l2jmobius.gameserver.model.skills.Skill; import com.l2jmobius.gameserver.network.SystemMessageId; import com.l2jmobius.gameserver.network.serverpackets.Earthquake; import com.l2jmobius.gameserver.network.serverpackets.ExRedSky; @@ -81,8 +79,6 @@ public class AdminEffects implements IAdminCommandHandler "admin_earthquake_menu", "admin_bighead", "admin_shrinkhead", - "admin_gmspeed", - "admin_gmspeed_menu", "admin_unpara_all", "admin_para_all", "admin_unpara", @@ -351,35 +347,6 @@ public class AdminEffects implements IAdminCommandHandler { } } - else if (command.startsWith("admin_gmspeed")) - { - try - { - final int val = Integer.parseInt(st.nextToken()); - final boolean sendMessage = activeChar.isAffectedBySkill(7029); - activeChar.stopSkillEffects((val == 0) && sendMessage, 7029); - if ((val >= 1) && (val <= 4)) - { - int time = 0; - if (st.hasMoreTokens()) - { - time = Integer.parseInt(st.nextToken()); - } - - final Skill gmSpeedSkill = SkillData.getInstance().getSkill(7029, val); - gmSpeedSkill.applyEffects(activeChar, activeChar, true, time); - } - } - catch (Exception e) - { - activeChar.sendMessage("Usage: //gmspeed
- - - - - + + + + +
Super Haste:

diff --git a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/handlers/MasterHandler.java b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/handlers/MasterHandler.java index 8ff587ff17..fa9c716767 100644 --- a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/handlers/MasterHandler.java +++ b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/handlers/MasterHandler.java @@ -84,9 +84,11 @@ import handlers.admincommandhandlers.AdminFortSiege; import handlers.admincommandhandlers.AdminGeodata; import handlers.admincommandhandlers.AdminGm; import handlers.admincommandhandlers.AdminGmChat; +import handlers.admincommandhandlers.AdminGmSpeed; import handlers.admincommandhandlers.AdminGraciaSeeds; import handlers.admincommandhandlers.AdminGrandBoss; import handlers.admincommandhandlers.AdminHeal; +import handlers.admincommandhandlers.AdminHide; import handlers.admincommandhandlers.AdminHtml; import handlers.admincommandhandlers.AdminHwid; import handlers.admincommandhandlers.AdminInstance; @@ -126,6 +128,7 @@ import handlers.admincommandhandlers.AdminShutdown; import handlers.admincommandhandlers.AdminSkill; import handlers.admincommandhandlers.AdminSpawn; import handlers.admincommandhandlers.AdminSummon; +import handlers.admincommandhandlers.AdminSuperHaste; import handlers.admincommandhandlers.AdminTarget; import handlers.admincommandhandlers.AdminTargetSay; import handlers.admincommandhandlers.AdminTeleport; @@ -415,9 +418,11 @@ public class MasterHandler AdminGeodata.class, AdminGm.class, AdminGmChat.class, + AdminGmSpeed.class, AdminGraciaSeeds.class, AdminGrandBoss.class, AdminHeal.class, + AdminHide.class, AdminHtml.class, AdminHwid.class, AdminInstance.class, @@ -457,6 +462,7 @@ public class MasterHandler AdminSkill.class, AdminSpawn.class, AdminSummon.class, + AdminSuperHaste.class, AdminTarget.class, AdminTargetSay.class, AdminTeleport.class, diff --git a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/handlers/actionshifthandlers/L2PcInstanceActionShift.java b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/handlers/actionshifthandlers/L2PcInstanceActionShift.java index 6b1bb7ac43..72c01c3cf8 100644 --- a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/handlers/actionshifthandlers/L2PcInstanceActionShift.java +++ b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/handlers/actionshifthandlers/L2PcInstanceActionShift.java @@ -19,7 +19,6 @@ package handlers.actionshifthandlers; import com.l2jmobius.gameserver.enums.InstanceType; import com.l2jmobius.gameserver.handler.AdminCommandHandler; import com.l2jmobius.gameserver.handler.IActionShiftHandler; -import com.l2jmobius.gameserver.handler.IAdminCommandHandler; import com.l2jmobius.gameserver.model.L2Object; import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance; @@ -37,11 +36,7 @@ public class L2PcInstanceActionShift implements IActionShiftHandler activeChar.setTarget(target); } - final IAdminCommandHandler ach = AdminCommandHandler.getInstance().getHandler("admin_character_info"); - if (ach != null) - { - ach.useAdminCommand("admin_character_info " + target.getName(), activeChar); - } + AdminCommandHandler.getInstance().useAdminCommand(activeChar, "admin_character_info " + target.getName(), true); } return true; } diff --git a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/handlers/actionshifthandlers/L2SummonActionShift.java b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/handlers/actionshifthandlers/L2SummonActionShift.java index 67d403c9b3..6ee8a1173e 100644 --- a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/handlers/actionshifthandlers/L2SummonActionShift.java +++ b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/handlers/actionshifthandlers/L2SummonActionShift.java @@ -19,7 +19,6 @@ package handlers.actionshifthandlers; import com.l2jmobius.gameserver.enums.InstanceType; import com.l2jmobius.gameserver.handler.AdminCommandHandler; import com.l2jmobius.gameserver.handler.IActionShiftHandler; -import com.l2jmobius.gameserver.handler.IAdminCommandHandler; import com.l2jmobius.gameserver.model.L2Object; import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance; @@ -36,11 +35,7 @@ public class L2SummonActionShift implements IActionShiftHandler activeChar.setTarget(target); } - final IAdminCommandHandler ach = AdminCommandHandler.getInstance().getHandler("admin_summon_info"); - if (ach != null) - { - ach.useAdminCommand("admin_summon_info", activeChar); - } + AdminCommandHandler.getInstance().useAdminCommand(activeChar, "admin_summon_info", true); } return true; } diff --git a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/handlers/admincommandhandlers/AdminEffects.java b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/handlers/admincommandhandlers/AdminEffects.java index 6c2b00db74..467875568d 100644 --- a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/handlers/admincommandhandlers/AdminEffects.java +++ b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/handlers/admincommandhandlers/AdminEffects.java @@ -19,7 +19,6 @@ package handlers.admincommandhandlers; import java.util.Arrays; import java.util.StringTokenizer; -import com.l2jmobius.gameserver.data.xml.impl.SkillData; import com.l2jmobius.gameserver.enums.Movie; import com.l2jmobius.gameserver.enums.Team; import com.l2jmobius.gameserver.handler.IAdminCommandHandler; @@ -34,7 +33,6 @@ import com.l2jmobius.gameserver.model.html.PageBuilder; import com.l2jmobius.gameserver.model.html.PageResult; import com.l2jmobius.gameserver.model.html.styles.ButtonsStyle; import com.l2jmobius.gameserver.model.skills.AbnormalVisualEffect; -import com.l2jmobius.gameserver.model.skills.Skill; import com.l2jmobius.gameserver.network.SystemMessageId; import com.l2jmobius.gameserver.network.serverpackets.Earthquake; import com.l2jmobius.gameserver.network.serverpackets.ExRedSky; @@ -81,8 +79,6 @@ public class AdminEffects implements IAdminCommandHandler "admin_earthquake_menu", "admin_bighead", "admin_shrinkhead", - "admin_gmspeed", - "admin_gmspeed_menu", "admin_unpara_all", "admin_para_all", "admin_unpara", @@ -351,35 +347,6 @@ public class AdminEffects implements IAdminCommandHandler { } } - else if (command.startsWith("admin_gmspeed")) - { - try - { - final int val = Integer.parseInt(st.nextToken()); - final boolean sendMessage = activeChar.isAffectedBySkill(7029); - activeChar.stopSkillEffects((val == 0) && sendMessage, 7029); - if ((val >= 1) && (val <= 4)) - { - int time = 0; - if (st.hasMoreTokens()) - { - time = Integer.parseInt(st.nextToken()); - } - - final Skill gmSpeedSkill = SkillData.getInstance().getSkill(7029, val); - gmSpeedSkill.applyEffects(activeChar, activeChar, true, time); - } - } - catch (Exception e) - { - activeChar.sendMessage("Usage: //gmspeed
- - - - - + + + + +
Super Haste:

diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/handlers/MasterHandler.java b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/handlers/MasterHandler.java index 8ff587ff17..fa9c716767 100644 --- a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/handlers/MasterHandler.java +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/handlers/MasterHandler.java @@ -84,9 +84,11 @@ import handlers.admincommandhandlers.AdminFortSiege; import handlers.admincommandhandlers.AdminGeodata; import handlers.admincommandhandlers.AdminGm; import handlers.admincommandhandlers.AdminGmChat; +import handlers.admincommandhandlers.AdminGmSpeed; import handlers.admincommandhandlers.AdminGraciaSeeds; import handlers.admincommandhandlers.AdminGrandBoss; import handlers.admincommandhandlers.AdminHeal; +import handlers.admincommandhandlers.AdminHide; import handlers.admincommandhandlers.AdminHtml; import handlers.admincommandhandlers.AdminHwid; import handlers.admincommandhandlers.AdminInstance; @@ -126,6 +128,7 @@ import handlers.admincommandhandlers.AdminShutdown; import handlers.admincommandhandlers.AdminSkill; import handlers.admincommandhandlers.AdminSpawn; import handlers.admincommandhandlers.AdminSummon; +import handlers.admincommandhandlers.AdminSuperHaste; import handlers.admincommandhandlers.AdminTarget; import handlers.admincommandhandlers.AdminTargetSay; import handlers.admincommandhandlers.AdminTeleport; @@ -415,9 +418,11 @@ public class MasterHandler AdminGeodata.class, AdminGm.class, AdminGmChat.class, + AdminGmSpeed.class, AdminGraciaSeeds.class, AdminGrandBoss.class, AdminHeal.class, + AdminHide.class, AdminHtml.class, AdminHwid.class, AdminInstance.class, @@ -457,6 +462,7 @@ public class MasterHandler AdminSkill.class, AdminSpawn.class, AdminSummon.class, + AdminSuperHaste.class, AdminTarget.class, AdminTargetSay.class, AdminTeleport.class, diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/handlers/actionshifthandlers/L2PcInstanceActionShift.java b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/handlers/actionshifthandlers/L2PcInstanceActionShift.java index 6b1bb7ac43..72c01c3cf8 100644 --- a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/handlers/actionshifthandlers/L2PcInstanceActionShift.java +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/handlers/actionshifthandlers/L2PcInstanceActionShift.java @@ -19,7 +19,6 @@ package handlers.actionshifthandlers; import com.l2jmobius.gameserver.enums.InstanceType; import com.l2jmobius.gameserver.handler.AdminCommandHandler; import com.l2jmobius.gameserver.handler.IActionShiftHandler; -import com.l2jmobius.gameserver.handler.IAdminCommandHandler; import com.l2jmobius.gameserver.model.L2Object; import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance; @@ -37,11 +36,7 @@ public class L2PcInstanceActionShift implements IActionShiftHandler activeChar.setTarget(target); } - final IAdminCommandHandler ach = AdminCommandHandler.getInstance().getHandler("admin_character_info"); - if (ach != null) - { - ach.useAdminCommand("admin_character_info " + target.getName(), activeChar); - } + AdminCommandHandler.getInstance().useAdminCommand(activeChar, "admin_character_info " + target.getName(), true); } return true; } diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/handlers/actionshifthandlers/L2SummonActionShift.java b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/handlers/actionshifthandlers/L2SummonActionShift.java index 67d403c9b3..6ee8a1173e 100644 --- a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/handlers/actionshifthandlers/L2SummonActionShift.java +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/handlers/actionshifthandlers/L2SummonActionShift.java @@ -19,7 +19,6 @@ package handlers.actionshifthandlers; import com.l2jmobius.gameserver.enums.InstanceType; import com.l2jmobius.gameserver.handler.AdminCommandHandler; import com.l2jmobius.gameserver.handler.IActionShiftHandler; -import com.l2jmobius.gameserver.handler.IAdminCommandHandler; import com.l2jmobius.gameserver.model.L2Object; import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance; @@ -36,11 +35,7 @@ public class L2SummonActionShift implements IActionShiftHandler activeChar.setTarget(target); } - final IAdminCommandHandler ach = AdminCommandHandler.getInstance().getHandler("admin_summon_info"); - if (ach != null) - { - ach.useAdminCommand("admin_summon_info", activeChar); - } + AdminCommandHandler.getInstance().useAdminCommand(activeChar, "admin_summon_info", true); } return true; } diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/handlers/admincommandhandlers/AdminEffects.java b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/handlers/admincommandhandlers/AdminEffects.java index 6c2b00db74..467875568d 100644 --- a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/handlers/admincommandhandlers/AdminEffects.java +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/handlers/admincommandhandlers/AdminEffects.java @@ -19,7 +19,6 @@ package handlers.admincommandhandlers; import java.util.Arrays; import java.util.StringTokenizer; -import com.l2jmobius.gameserver.data.xml.impl.SkillData; import com.l2jmobius.gameserver.enums.Movie; import com.l2jmobius.gameserver.enums.Team; import com.l2jmobius.gameserver.handler.IAdminCommandHandler; @@ -34,7 +33,6 @@ import com.l2jmobius.gameserver.model.html.PageBuilder; import com.l2jmobius.gameserver.model.html.PageResult; import com.l2jmobius.gameserver.model.html.styles.ButtonsStyle; import com.l2jmobius.gameserver.model.skills.AbnormalVisualEffect; -import com.l2jmobius.gameserver.model.skills.Skill; import com.l2jmobius.gameserver.network.SystemMessageId; import com.l2jmobius.gameserver.network.serverpackets.Earthquake; import com.l2jmobius.gameserver.network.serverpackets.ExRedSky; @@ -81,8 +79,6 @@ public class AdminEffects implements IAdminCommandHandler "admin_earthquake_menu", "admin_bighead", "admin_shrinkhead", - "admin_gmspeed", - "admin_gmspeed_menu", "admin_unpara_all", "admin_para_all", "admin_unpara", @@ -351,35 +347,6 @@ public class AdminEffects implements IAdminCommandHandler { } } - else if (command.startsWith("admin_gmspeed")) - { - try - { - final int val = Integer.parseInt(st.nextToken()); - final boolean sendMessage = activeChar.isAffectedBySkill(7029); - activeChar.stopSkillEffects((val == 0) && sendMessage, 7029); - if ((val >= 1) && (val <= 4)) - { - int time = 0; - if (st.hasMoreTokens()) - { - time = Integer.parseInt(st.nextToken()); - } - - final Skill gmSpeedSkill = SkillData.getInstance().getSkill(7029, val); - gmSpeedSkill.applyEffects(activeChar, activeChar, true, time); - } - } - catch (Exception e) - { - activeChar.sendMessage("Usage: //gmspeed

- - - - - - + + + + + +
GM Speed:Super Haste:
\ No newline at end of file diff --git a/L2J_Mobius_C6_Interlude/dist/game/data/html/admin/move.htm b/L2J_Mobius_C6_Interlude/dist/game/data/html/admin/move.htm index 4c27e3815b..eaef97db7c 100644 --- a/L2J_Mobius_C6_Interlude/dist/game/data/html/admin/move.htm +++ b/L2J_Mobius_C6_Interlude/dist/game/data/html/admin/move.htm @@ -23,12 +23,12 @@