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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..