Jump to content

Recommended Posts

Posted

The worst thing of this is that people from same roter can`t fight each other in oly.

The script works for L2J Gracia final but it may work for other chronicles too.Try it

 

 

Index: java/net/sf/l2j/gameserver/model/olympiad/OlympiadGame.java

===================================================================

--- java/net/sf/l2j/gameserver/model/olympiad/OlympiadGame.java   (revision 3296)

+++ java/net/sf/l2j/gameserver/model/olympiad/OlympiadGame.java   (working copy)

@@ -185,6 +185,9 @@

   {

      if (_aborted)

         return;

+      String ip1 = _playerOne.getClient().getActiveChar().getClient().getConnection().getInetAddress().getHostAddress();

+      String ip2 = _playerTwo.getClient().getActiveChar().getClient().getConnection().getInetAddress().getHostAddress();

+      if (ip1.equals(ip2))return;

     

      if (_playerOne == null || _playerTwo == null)

         return;

Credits:l2jbg.com

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...