Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/config/CustomMods/SpecialMods.ini b/config/CustomMods/SpecialMods.ini
- index e69de29..b2640c6 100644
- --- a/config/CustomMods/SpecialMods.ini
- +++ b/config/CustomMods/SpecialMods.ini
- @@ -0,0 +1,6 @@
- +#=====================================================
- +# Admin Login On Skill Super Haste Active
- +#=====================================================
- +#Start with the super rod skill activated?
- +GMStartupSuperHaste = True
- +
- diff --git a/java/net/sf/l2j/Config.java b/java/net/sf/l2j/Config.java
- index 7b84437..a8aca42 100644
- --- a/java/net/sf/l2j/Config.java
- +++ b/java/net/sf/l2j/Config.java
- @@ -156,6 +156,7 @@
- public static boolean ALT_DISABLE_BOW_CLASSES;
- public static String DISABLE_BOW_CLASSES_STRING;
- public static ArrayList<Integer> DISABLE_BOW_CLASSES = new ArrayList<>();
- + public static boolean GM_SUPER_HASTE;
- // --------------------------------------------------
- // Events settings
- // --------------------------------------------------
- @@ -1216,6 +1217,7 @@
- private static final void loadSpecial()
- {
- final ExProperties Special = initProperties(SPECIAL_MODS);
- + GM_SUPER_HASTE = Boolean.parseBoolean(Special.getProperty("GMStartupSuperHaste", "true"));
- ANNOUNCE_PVP_KILL = Boolean.parseBoolean(Special.getProperty("AnnouncePvPKill", "false"));
- ANNOUNCE_PK_KILL = Boolean.parseBoolean(Special.getProperty("AnnouncePkKill", "false"));
- ANNOUNCE_RAIDBOS_KILL = Boolean.parseBoolean(Special.getProperty("AnnounceRaidBossKill", "false"));
- diff --git a/java/net/sf/l2j/gameserver/network/clientpackets/EnterWorld.java b/java/net/sf/l2j/gameserver/network/clientpackets/EnterWorld.java
- index b41537e..717e11a 100644
- --- a/java/net/sf/l2j/gameserver/network/clientpackets/EnterWorld.java
- +++ b/java/net/sf/l2j/gameserver/network/clientpackets/EnterWorld.java
- @@ -4,6 +4,7 @@
- import net.sf.l2j.Config;
- import net.sf.l2j.gameserver.communitybbs.manager.MailBBSManager;
- +import net.sf.l2j.gameserver.data.SkillTable;
- import net.sf.l2j.gameserver.data.SkillTable.FrequentSkill;
- import net.sf.l2j.gameserver.data.manager.CastleManager;
- import net.sf.l2j.gameserver.data.manager.ClanHallManager;
- @@ -77,6 +78,9 @@
- if (player.isGM())
- {
- + if(Config.GM_SUPER_HASTE)
- + SkillTable.getInstance().getInfo(7029,4).getEffects(player, player);
- +
- if (Config.GM_STARTUP_INVULNERABLE && AdminData.getInstance().hasAccess("admin_invul", player.getAccessLevel()))
- player.setInvul(true);
Add Comment
Please, Sign In to add comment