Bluur

Announce PvP / Pk

Jan 12th, 2017
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.88 KB | None | 0 0
  1. Index: java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java;
  2. ===================================================================
  3. ---java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java    (revision 0)
  4. +++ java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java    (working copy)
  5.  
  6.                 setPvpKills(getPvpKills() + 1);
  7.                
  8. +                if (Config.ANNOUNCE_PVP_KILL)
  9. +                     Broadcast.toAllOnlinePlayers(SystemMessage.sendString("Player " +getName()+ " Derrotou Player " + target.getName()));
  10.  
  11.                 setPkKills(getPkKills() + 1);
  12.            
  13. +            if (Config.ANNOUNCE_PK_KILL)
  14. +                  Broadcast.toAllOnlinePlayers(SystemMessage.sendString("Player " +getName()+ " Assassinou Player " + target.getName()));
  15.  
  16.  
  17. Index: java/net/sf/l2j/Config.java
  18. ===================================================================
  19. ---java/net/sf/l2j/Config.java (revision 0)
  20. +++ java/net/sf/l2j/Config.java (working copy)
  21.  
  22.           public static int BUFFS_MAX_AMOUNT;
  23.  
  24. +        public static boolean ANNOUNCE_PVP_KILL;
  25. +        public static boolean ANNOUNCE_PK_KILL;
  26.  
  27.           STORE_SKILL_COOLTIME = players.getProperty("StoreSkillCooltime", true);
  28.  
  29. +         ANNOUNCE_PVP_KILL = players.getProperty("AnnouncePvPKill", false);
  30. +         ANNOUNCE_PK_KILL = players.getProperty("AnnouncePkKill", false);
  31.  
  32. Index: config/players.properties
  33. ===================================================================
  34. --- config/players.properties    (revision 1)
  35. +++ config/players.properties    (working copy)
  36.  
  37.  
  38. StoreSkillCooltime = True
  39. +
  40. +#=============================================================
  41. +#                    Announce PvP and Pk
  42. +#=============================================================
  43. +# Announce PvP Kill
  44. +AnnouncePvPKill = True
  45.  
  46. +# Announce Pk Kills
  47. +AnnouncePkKill = True
Add Comment
Please, Sign In to add comment