vecc Posted April 22, 2017 Posted April 22, 2017 (edited) Hey there, I need help to block party and clan invite to players that are registered in olympiad. Where and how could I add this exception into my core? ps. I use l2jfrozen Edited April 22, 2017 by vecc
0 Solomun Posted April 22, 2017 Posted April 22, 2017 (edited) Next time use a proper title for your topic. "Help me with java" is not even close to what you are asking.... Restrict party: com.l2jserver.gameserver.network.clientpackets.RequestJoinParty.java if (requestor.isPartyBanned()) { requestor.sendPacket(SystemMessageId.YOU_HAVE_BEEN_REPORTED_SO_PARTY_NOT_ALLOWED); requestor.sendPacket(ActionFailed.STATIC_PACKET); return; }+ if (target.isInOlympiadMode() || OlympiadManager.getInstance().isRegisteredInComp(target)) {+ requestor.sendMessage("Your target is in olympiad.");+ return;+ } if (target.isPartyBanned()) { SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.C1_REPORTED_AND_CANNOT_PARTY); sm.addCharName(target); requestor.sendPacket(sm); return; } Restrict clan invite: com.l2jserver.gameserver.network.clientpackets.RequestJoinPldege.java if (!clan.checkClanJoinCondition(activeChar, target, _pledgeType)) { return; }+ if (target.isInOlympiadMode() || OlympiadManager.getInstance().isRegisteredInComp(target)) {+ activeChar.sendMessage("Your target is in olympiad.");+ return;+ } if (!activeChar.getRequest().setRequest(target, this)) { return; } Edited April 22, 2017 by Solomun
Question
vecc
Hey there, I need help to block party and clan invite to players that are registered in olympiad.
Where and how could I add this exception into my core?
ps. I use l2jfrozen
Edited by vecc2 answers to this question
Recommended Posts