Парни помогите разобраться вот у меня есть последние исходы фрозенов и есть мод вот его часть кода
### Eclipse Workspace Patch 1.0
#P Faction patch test
Index: java/net/sf/l2j/gameserver/model/CharEffectList.java
===================================================================
--- java/net/sf/l2j/gameserver/model/CharEffectList.java (revision 3695)
+++ java/net/sf/l2j/gameserver/model/CharEffectList.java (working copy)
@@ -365,7 +365,7 @@
// Exit them
for (L2Effect e : effects)
{
- if (e != null)
+ if (e != null && e.getSkill().isDebuff())
e.exit(true);
}
}
Index: java/net/sf/l2j/gameserver/network/clientpackets/TradeRequest.java
===================================================================
--- java/net/sf/l2j/gameserver/network/clientpackets/TradeRequest.java (revision 3695)
+++ java/net/sf/l2j/gameserver/network/clientpackets/TradeRequest.java (working copy)
@@ -80,7 +80,13 @@
player.sendMessage("You or your target cant request trade in Olympiad mode");
return;
}
-
+
+ if (partner.getFactionId() != player.getFactionId())
+ {
+ player.sendMessage("Trading between factions is forbidden");
+ return;
+ }
+
// Alt game - Karma punishment
if (!Config.ALT_GAME_KARMA_PLAYER_CAN_TRADE && (player.getKarma() > 0 || partner.getKarma() > 0))
{
Index: java/net/sf/l2j/gameserver/util/Broadcast.java
===================================================================
--- java/net/sf/l2j/gameserver/util/Broadcast.java (revision 3695)
+++ java/net/sf/l2j/gameserver/util/Broadcast.java (working copy)
@@ -221,6 +221,15 @@
}
}
+ public static void sendMessToAllFactionPlayers(String text)
+ {
+