Announce PK & PvP
Posted: Tue Sep 10, 2013 8:12 am
L2J Revision Number: 5937
L2JDP Revision Number: 9641
Heyo everyone!
So I found this code inside L2PcInstance:
I already turned it to true insideL2JMods.properties and it's going to the systemmsg as it should.
Now, here's my question, I'd like to change to local or if possible only to yourslef instead of being global, do I have to change this line "Announcements.getInstance().announceToAll(sm);"? And chage it for what?
Have a nice day and thanks in advance!
L2JDP Revision Number: 9641
Heyo everyone!
So I found this code inside L2PcInstance:
Code: Select all
// announce pvp/pkif (Config.ANNOUNCE_PK_PVP && (pk != null) && !pk.isGM()){ String msg = ""; if (getPvpFlag() == 0) { msg = Config.ANNOUNCE_PK_MSG.replace("$killer", pk.getName()).replace("$target", getName()); if (Config.ANNOUNCE_PK_PVP_NORMAL_MESSAGE) { SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.S1); sm.addString(msg); Announcements.getInstance().announceToAll(sm); } else { Announcements.getInstance().announceToAll(msg); } } else if (getPvpFlag() != 0) { msg = Config.ANNOUNCE_PVP_MSG.replace("$killer", pk.getName()).replace("$target", getName()); if (Config.ANNOUNCE_PK_PVP_NORMAL_MESSAGE) { SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.S1); sm.addString(msg); Announcements.getInstance().announceToAll(sm); } else { Announcements.getInstance().announceToAll(msg); } }}
Code: Select all
# -----------------------------------------------------------# Pvp/pk Announce# ----------------------------------------------------------- # Default: FalseAnnouncePkPvP = True # Announce this as normal system message# Default: TrueAnnouncePkPvPNormalMessage = True # Pvp message template# variables: $killer, $targetAnnouncePvpMsg = $killer has defeated $target # PK message template# variables: $killer, $targetAnnouncePkMsg = $killer has slaughtered $target
Have a nice day and thanks in advance!
