I come here to share with you this mod that I adapted for the project.
Hope you like it.
I'm posting because I really like this project even though I'm not Brazilian, but it's the best I know.
and DnR helps me whenever I need it.
L2PcInstance.java
Config.java
config/other.properties
Hope you like it.
I'm posting because I really like this project even though I'm not Brazilian, but it's the best I know.
and DnR helps me whenever I need it.
L2PcInstance.java
- Code:
---java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java (revision 0)
+++ java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java (working copy)
@@ 5023 +5025 @@
if (target instanceof L2PcInstance)
{
increasePvpKills();
+ if (Config.ANNOUNCE_PVP_KILL)
+ Broadcast.toAllOnlinePlayers(SystemMessage.sendString("Player " +getName()+ " Derrotou Player " + target.getName()));
}
}
@@ 5061 +5064 @@
increasePkKillsAndKarma(targetPlayer.getLevel(), target instanceof L2PcInstance);
}
+ if (Config.ANNOUNCE_PK_KILL)
+ Broadcast.toAllOnlinePlayers(SystemMessage.sendString("Player " +getName()+ " Assassinou Player " + target.getName()));
}
}
Config.java
- Code:
===================================================================
---java/net/sf/l2j/Config.java (revision 0)
+++ java/net/sf/l2j/Config.java (working copy)
@@ 1332 +5034 @@
public static int BUFFS_MAX_AMOUNT;
+ public static boolean ANNOUNCE_PVP_KILL;
+ public static boolean ANNOUNCE_PK_KILL;
@@ 1804 +1806 @@
STORE_SKILL_COOLTIME = players.getProperty("StoreSkillCooltime", true);
+ ANNOUNCE_PVP_KILL = Boolean.parseBoolean(otherSettings.getProperty("AnnouncePvPKill", "False"));
+ ANNOUNCE_PK_KILL = Boolean.parseBoolean(otherSettings.getProperty("AnnouncePkKill", "False"));
config/other.properties
- Code:
===================================================================
--- config/other.properties (revision 1)
+++ config/other.properties (working copy)
# Disable all chat in jail (except normal one)
JailDisableChat = True
+
+#=============================================================
+# Announce PvP and Pk
+#=============================================================
+# Announce PvP Kill
+AnnouncePvPKill = True
+# Announce Pk Kills
+AnnouncePkKill = True