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...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock