SHOW:
|
|
- or go back to the newest paste.
1 | diff --git a/config/CustomMods/SpecialMods.ini b/config/CustomMods/SpecialMods.ini | |
2 | index e69de29..b2640c6 100644 | |
3 | --- a/config/CustomMods/SpecialMods.ini | |
4 | +++ b/config/CustomMods/SpecialMods.ini | |
5 | @@ -0,0 +1,6 @@ | |
6 | +#===================================================== | |
7 | +# Admin Login On Skill Super Haste Active | |
8 | +#===================================================== | |
9 | +#Start with the super rod skill activated? | |
10 | +GMStartupSuperHaste = True | |
11 | + | |
12 | diff --git a/java/net/sf/l2j/Config.java b/java/net/sf/l2j/Config.java | |
13 | index 7b84437..a8aca42 100644 | |
14 | --- a/java/net/sf/l2j/Config.java | |
15 | +++ b/java/net/sf/l2j/Config.java | |
16 | @@ -156,6 +156,7 @@ | |
17 | public static boolean ALT_DISABLE_BOW_CLASSES; | |
18 | public static String DISABLE_BOW_CLASSES_STRING; | |
19 | public static ArrayList<Integer> DISABLE_BOW_CLASSES = new ArrayList<>(); | |
20 | + public static boolean GM_SUPER_HASTE; | |
21 | // -------------------------------------------------- | |
22 | // Events settings | |
23 | // -------------------------------------------------- | |
24 | @@ -1216,6 +1217,7 @@ | |
25 | private static final void loadSpecial() | |
26 | { | |
27 | final ExProperties Special = initProperties(SPECIAL_MODS); | |
28 | + GM_SUPER_HASTE = Boolean.parseBoolean(Special.getProperty("GMStartupSuperHaste", "true")); | |
29 | ANNOUNCE_PVP_KILL = Boolean.parseBoolean(Special.getProperty("AnnouncePvPKill", "false")); | |
30 | ANNOUNCE_PK_KILL = Boolean.parseBoolean(Special.getProperty("AnnouncePkKill", "false")); | |
31 | ANNOUNCE_RAIDBOS_KILL = Boolean.parseBoolean(Special.getProperty("AnnounceRaidBossKill", "false")); | |
32 | diff --git a/java/net/sf/l2j/gameserver/network/clientpackets/EnterWorld.java b/java/net/sf/l2j/gameserver/network/clientpackets/EnterWorld.java | |
33 | index b41537e..717e11a 100644 | |
34 | --- a/java/net/sf/l2j/gameserver/network/clientpackets/EnterWorld.java | |
35 | +++ b/java/net/sf/l2j/gameserver/network/clientpackets/EnterWorld.java | |
36 | @@ -4,6 +4,7 @@ | |
37 | ||
38 | import net.sf.l2j.Config; | |
39 | import net.sf.l2j.gameserver.communitybbs.manager.MailBBSManager; | |
40 | +import net.sf.l2j.gameserver.data.SkillTable; | |
41 | import net.sf.l2j.gameserver.data.SkillTable.FrequentSkill; | |
42 | import net.sf.l2j.gameserver.data.manager.CastleManager; | |
43 | import net.sf.l2j.gameserver.data.manager.ClanHallManager; | |
44 | @@ -77,6 +78,9 @@ | |
45 | ||
46 | if (player.isGM()) | |
47 | { | |
48 | + if(Config.GM_SUPER_HASTE) | |
49 | + SkillTable.getInstance().getInfo(7029,4).getEffects(player, player); | |
50 | + | |
51 | if (Config.GM_STARTUP_INVULNERABLE && AdminData.getInstance().hasAccess("admin_invul", player.getAccessLevel())) | |
52 | player.setInvul(true); | |
53 | ||
54 |