Guest User

Untitled

a guest
Aug 14th, 2016
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.42 KB | None | 0 0
  1.  
  2. ### Eclipse Workspace Patch 1.0
  3. #P aCis_gameserver
  4. Index: java/net/sf/l2j/Config.java
  5. ===================================================================
  6. --- java/net/sf/l2j/Config.java (revision 0)
  7. +++ java/net/sf/l2j/Config.java (working copy)
  8. @@ -400,6 +400,7 @@
  9. public static double MP_REGEN_MULTIPLIER;
  10. public static double CP_REGEN_MULTIPLIER;
  11. public static int PLAYER_SPAWN_PROTECTION;
  12. + public static boolean PLAYER_SPAWN_PROTECTION_EFFECT;
  13. public static int PLAYER_FAKEDEATH_UP_PROTECTION;
  14. public static double RESPAWN_RESTORE_HP;
  15. public static int MAX_PVTSTORE_SLOTS_DWARF;
  16. @@ -1087,6 +1088,7 @@
  17. MP_REGEN_MULTIPLIER = players.getProperty("MpRegenMultiplier", 1.);
  18. CP_REGEN_MULTIPLIER = players.getProperty("CpRegenMultiplier", 1.);
  19. PLAYER_SPAWN_PROTECTION = players.getProperty("PlayerSpawnProtection", 0);
  20. + PLAYER_SPAWN_PROTECTION_EFFECT = players.getProperty("PlayerSpawnProtectionEffect", true);
  21. PLAYER_FAKEDEATH_UP_PROTECTION = players.getProperty("PlayerFakeDeathUpProtection", 0);
  22. RESPAWN_RESTORE_HP = players.getProperty("RespawnRestoreHP", 0.7);
  23. MAX_PVTSTORE_SLOTS_DWARF = players.getProperty("MaxPvtStoreSlotsDwarf", 5);
  24. Index: java/net/sf/l2j/gameserver/network/serverpackets/CharInfo.java
  25. ===================================================================
  26. --- java/net/sf/l2j/gameserver/network/serverpackets/CharInfo.java (revision 0)
  27. +++ java/net/sf/l2j/gameserver/network/serverpackets/CharInfo.java (working copy)
  28. @@ -243,7 +243,7 @@
  29. writeD((int) _activeChar.getCurrentCp());
  30. writeC(_activeChar.isMounted() ? 0 : _activeChar.getEnchantEffect());
  31.  
  32. - if (_activeChar.getTeam() == 1 || (Config.PLAYER_SPAWN_PROTECTION > 0 && _activeChar.isSpawnProtected()))
  33. + if (_activeChar.getTeam() == 1 || (Config.PLAYER_SPAWN_PROTECTION_EFFECT && Config.PLAYER_SPAWN_PROTECTION > 0 && _activeChar.isSpawnProtected()))
  34. writeC(0x01); // team circle around feet 1= Blue, 2 = red
  35. else if (_activeChar.getTeam() == 2)
  36. writeC(0x02); // team circle around feet 1= Blue, 2 = red
  37. Index: java/net/sf/l2j/gameserver/network/serverpackets/UserInfo.java
  38. ===================================================================
  39. --- java/net/sf/l2j/gameserver/network/serverpackets/UserInfo.java (revision 0)
  40. +++ java/net/sf/l2j/gameserver/network/serverpackets/UserInfo.java (working copy)
  41. @@ -247,7 +247,7 @@
  42. writeD((int) _activeChar.getCurrentCp());
  43. writeC(_activeChar.isMounted() ? 0 : _activeChar.getEnchantEffect());
  44.  
  45. - if (_activeChar.getTeam() == 1 || (Config.PLAYER_SPAWN_PROTECTION > 0 && _activeChar.isSpawnProtected()))
  46. + if (_activeChar.getTeam() == 1 || (Config.PLAYER_SPAWN_PROTECTION_EFFECT && Config.PLAYER_SPAWN_PROTECTION > 0 && _activeChar.isSpawnProtected()))
  47. writeC(0x01); // team circle around feet 1= Blue, 2 = red
  48. else if (_activeChar.getTeam() == 2)
  49. writeC(0x02); // team circle around feet 1= Blue, 2 = red
  50. Index: config/players.properties
  51. ===================================================================
  52. --- config/players.properties (revision 0)
  53. +++ config/players.properties (working copy)
  54. @@ -38,6 +38,9 @@
  55. # Player Protection after teleporting or login in seconds, 0 for disabled
  56. PlayerSpawnProtection = 30
  57.  
  58. +# Player Protection Visual Effect after teleporting or login, False for disabled
  59. +PlayerSpawnProtectionEffect = True
  60. +
  61. # Player Protection from (agro) mobs after getting up from fake death; in seconds, 0 for disabled
  62. PlayerFakeDeathUpProtection = 5
Advertisement
Add Comment
Please, Sign In to add comment