Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ### Eclipse Workspace Patch 1.0
- #P aCis_gameserver
- Index: java/net/sf/l2j/Config.java
- ===================================================================
- --- java/net/sf/l2j/Config.java (revision 0)
- +++ java/net/sf/l2j/Config.java (working copy)
- @@ -400,6 +400,7 @@
- public static double MP_REGEN_MULTIPLIER;
- public static double CP_REGEN_MULTIPLIER;
- public static int PLAYER_SPAWN_PROTECTION;
- + public static boolean PLAYER_SPAWN_PROTECTION_EFFECT;
- public static int PLAYER_FAKEDEATH_UP_PROTECTION;
- public static double RESPAWN_RESTORE_HP;
- public static int MAX_PVTSTORE_SLOTS_DWARF;
- @@ -1087,6 +1088,7 @@
- MP_REGEN_MULTIPLIER = players.getProperty("MpRegenMultiplier", 1.);
- CP_REGEN_MULTIPLIER = players.getProperty("CpRegenMultiplier", 1.);
- PLAYER_SPAWN_PROTECTION = players.getProperty("PlayerSpawnProtection", 0);
- + PLAYER_SPAWN_PROTECTION_EFFECT = players.getProperty("PlayerSpawnProtectionEffect", true);
- PLAYER_FAKEDEATH_UP_PROTECTION = players.getProperty("PlayerFakeDeathUpProtection", 0);
- RESPAWN_RESTORE_HP = players.getProperty("RespawnRestoreHP", 0.7);
- MAX_PVTSTORE_SLOTS_DWARF = players.getProperty("MaxPvtStoreSlotsDwarf", 5);
- Index: java/net/sf/l2j/gameserver/network/serverpackets/CharInfo.java
- ===================================================================
- --- java/net/sf/l2j/gameserver/network/serverpackets/CharInfo.java (revision 0)
- +++ java/net/sf/l2j/gameserver/network/serverpackets/CharInfo.java (working copy)
- @@ -243,7 +243,7 @@
- writeD((int) _activeChar.getCurrentCp());
- writeC(_activeChar.isMounted() ? 0 : _activeChar.getEnchantEffect());
- - if (_activeChar.getTeam() == 1 || (Config.PLAYER_SPAWN_PROTECTION > 0 && _activeChar.isSpawnProtected()))
- + if (_activeChar.getTeam() == 1 || (Config.PLAYER_SPAWN_PROTECTION_EFFECT && Config.PLAYER_SPAWN_PROTECTION > 0 && _activeChar.isSpawnProtected()))
- writeC(0x01); // team circle around feet 1= Blue, 2 = red
- else if (_activeChar.getTeam() == 2)
- writeC(0x02); // team circle around feet 1= Blue, 2 = red
- Index: java/net/sf/l2j/gameserver/network/serverpackets/UserInfo.java
- ===================================================================
- --- java/net/sf/l2j/gameserver/network/serverpackets/UserInfo.java (revision 0)
- +++ java/net/sf/l2j/gameserver/network/serverpackets/UserInfo.java (working copy)
- @@ -247,7 +247,7 @@
- writeD((int) _activeChar.getCurrentCp());
- writeC(_activeChar.isMounted() ? 0 : _activeChar.getEnchantEffect());
- - if (_activeChar.getTeam() == 1 || (Config.PLAYER_SPAWN_PROTECTION > 0 && _activeChar.isSpawnProtected()))
- + if (_activeChar.getTeam() == 1 || (Config.PLAYER_SPAWN_PROTECTION_EFFECT && Config.PLAYER_SPAWN_PROTECTION > 0 && _activeChar.isSpawnProtected()))
- writeC(0x01); // team circle around feet 1= Blue, 2 = red
- else if (_activeChar.getTeam() == 2)
- writeC(0x02); // team circle around feet 1= Blue, 2 = red
- Index: config/players.properties
- ===================================================================
- --- config/players.properties (revision 0)
- +++ config/players.properties (working copy)
- @@ -38,6 +38,9 @@
- # Player Protection after teleporting or login in seconds, 0 for disabled
- PlayerSpawnProtection = 30
- +# Player Protection Visual Effect after teleporting or login, False for disabled
- +PlayerSpawnProtectionEffect = True
- +
- # Player Protection from (agro) mobs after getting up from fake death; in seconds, 0 for disabled
- PlayerFakeDeathUpProtection = 5
Advertisement
Add Comment
Please, Sign In to add comment