Owned
- Сообщения : 148
Дата регистрации : 2010-03-22
Owned Чт Апр 15, 2010 10:12 am
- Код:
Index: TrunK/L2JBrasil_CORE/java/com/it/br/gameserver/Olympiad.java
===================================================================
--- a/TrunK/L2JBrasil_CORE/java/com/it/br/gameserver/Olympiad.java
+++ b/TrunK/L2JBrasil_CORE/java/com/it/br/gameserver/Olympiad.java
@@ -1786,6 +1786,18 @@
String result = "";
-
- if (playerTwoHp==0 || hpDiffOne < hpDiffTwo)
+
+ String ip1 = "";
+ String ip2 = "";
+
+ if(ip1.equals(ip2) && !Config.ALT_OLY_SAME_IP)
+ {
+ _log.warning("Match from same ip " + _playerOneName + " vs " + _playerTwoName);
+ result = " tie";
+ _sm = new SystemMessage(SystemMessageId.THE_GAME_ENDED_IN_A_TIE);
+ broadcastMessage(_sm, true);
+ _playerOne.sendMessage("Matches from same Ip are forbidden.");
+ _playerTwo.sendMessage("Matches from same Ip are forbidden.");
+ }
+ if (playerTwoHp==0 || hpDiffOne < hpDiffTwo)
{
int pointDiff;