Source-> http://maxcheaters.com/forum/index.php?topic=205271.0 So..this exploit can be done only when a player trades a party member.So,we wanna to dissalow players to trade when they are in a party mode.
It is so simple all can do this, but anyway i will just share it for really really newbies.
net.sf.l2j.clientpackets.TradeRequest.java
sm.addString(partner.getName());
player.sendPacket(sm);
return;
}
+
+ if (player.isInParty() || partner.isInParty())
+ {
+ player.sendMessage("Cannot trade in party mode for security reasons");
+ partner.sendMessage("Cannot trade in party mode for security reasons");
+ return;
+ }
if (partner.getTradeRefusal())
{
net.sf.l2j.clientpackets.RequestJoinParty.java
requestor.sendPacket(new SystemMessage(SystemMessageId.INCORRECT_TARGET));
return;
}
+if (target.getActiveTradeList() != null || requestor.getActiveTradeList() != null)
+ {
+ requestor.sendMessage("Cannot party when having active trade");
+ requestor.sendMessage("Cannot party when having active trade");
+ return;
+ }
if (target.isInJail() || requestor.isInJail())
{
it should work.
PS:the good is to fix this exploit without disallow this abillity,but till now noone has shared the "good fix",i know it may sucks but servers with new developers that are in danger from this exploit?