Jump to content

Recommended Posts

Posted

### Eclipse Workspace Patch 1.0
#P L2_GameServer
Index: java/net/sf/l2j/gameserver/model/olympiad/OlympiadGame.java
===================================================================
--- java/net/sf/l2j/gameserver/model/olympiad/OlympiadGame.java	(revision 3803)
+++ java/net/sf/l2j/gameserver/model/olympiad/OlympiadGame.java	(working copy)
@@ -1125,6 +1125,13 @@
		OlympiadManager.STADIUMS[_game._stadiumID].closeDoors();
		_game.portPlayersToArena();
		_game.removals();
+		//Anti Dual Box
+		if(_game._playerOne.getClient().getConnection().getInetAddress().getHostAddress().equalsIgnoreCase(_game._playerTwo.getClient().getConnection().getInetAddress().getHostAddress()))
+		{
+			_game._playerOne.sendMessage("Sorry but you cannot battle someone with same IP as yours.");
+			_game._playerTwo.sendMessage("Sorry but you cannot battle someone with same IP as yours.");
+			return false;
+		}
		if (Config.ALT_OLY_ANNOUNCE_GAMES)
			_game.announceGame();
		try

 

Done  :P

 

Tested on l2j latest ct2.3 - should be same for epilogue

 

oh and happy new month guys  :D

Posted

this have been yers ago ^.^

 

btw put an config more simple though...

if u show me even 1 topic here with something like this still working.. then i will apologise and /socialbow to u ;)

 

and i never share configs coz my config.java is just sooooo edited to make a patch out of it.. just add manualy.. 59 secs of work lol  :P

Posted

if u show me even 1 topic here with something like this still working.. then i will apologise and /socialbow to u ;) and about the config i was just too bored to add it to the diff coz my config.java is as modified as hell.. so i just removed the config part from olympiadgame.java .. right click.. create patch etc and shared it here lol.

 

Did you have check this?

 

http://svn.l2jfree.com/svn/l2j-free/trunk/l2jfree-core/config/altsettings.properties

 

or this?

 

http://svn.l2jfree.com/svn/l2j-free/trunk/l2jfree-core/src/main/java/com/l2jfree/gameserver/model/olympiad/OlympiadGame.java

 

;]

 

I don't say that you must put configs rofl don't even apologize what you have donne.. we/me don't care T.T

 

I just say what possible is better for your share ;-]

Posted

if it is implemented in l2jfree long ago that doesnt mean anything lol anyway.. i use l2j and most ppl do so..  i just came up with this 2 line solution.. and since there is nothing working like that here i posted it.

 

edit:

if (!Config.ALT_OLY_SAME_IP)
			{
				String _playerOneIp = _playerOne.getClient().getHostAddress();
				String _playerTwoIp = _playerTwo.getClient().getHostAddress();
				if (_playerOneIp.equals(_playerTwoIp))
				{
					String classed = "no";
					switch (_type)
					{
						case CLASSED:
							classed = "yes";
							break;
					}

					Olympiad.logResult(_playerOneName, _playerTwoName, 0D, 0D, 0, 0, "same ip", 0, classed);

					_playerOne.sendMessage("Match aborted due to same ip-address of your enemy.");
					_playerTwo.sendMessage("Match aborted due to same ip-address of your enemy.");

					_aborted = true;
					clearPlayers();
				}
			}

the method used by l2jfree is actually the same lol

Posted

if it is implemented in l2jfree long ago that doesnt mean anything lol anyway.. i use l2j and most ppl do so..  i just came up with this 2 line solution.. and since there is nothing working like that here i posted it.

 

edit:

if (!Config.ALT_OLY_SAME_IP)
			{
				String _playerOneIp = _playerOne.getClient().getHostAddress();
				String _playerTwoIp = _playerTwo.getClient().getHostAddress();
				if (_playerOneIp.equals(_playerTwoIp))
				{
					String classed = "no";
					switch (_type)
					{
						case CLASSED:
							classed = "yes";
							break;
					}

					Olympiad.logResult(_playerOneName, _playerTwoName, 0D, 0D, 0, 0, "same ip", 0, classed);

					_playerOne.sendMessage("Match aborted due to same ip-address of your enemy.");
					_playerTwo.sendMessage("Match aborted due to same ip-address of your enemy.");

					_aborted = true;
					clearPlayers();
				}
			}

the method used by l2jfree is actually the same lol

 

Imo i say that this costum has been commited long time ago... is not something new... that im saying... O.o

 

The l2jfree code is to old... yes is the same... with different method.

Posted

yes and im trying to say that many projects including l2j dont have this. doesnt have to be a new invention or something to be shared.. lol xD

Posted

yes and im trying to say that many projects including l2j dont have this. doesnt have to be a new invention or something to be shared.. lol xD

 

so if l2j don't have sex;

 

return false;

 

pObject of mine and the point is not your share... you said me to show you a thread that have this and i show... this shity typo are 0 conecting and finding ip with "simple" way making full of useless codes every where in files like this or in pcinstace make youre/us cpu usage more huge.

 

Anyway that i'm trying to say... this is usefull for some but not a new share...

 

A simple atack in ours us servers will be down in a sec... with that ways...

 

Just try to use simple maganer.java and inculding all your modify ;]

 

Posted

so if l2j don't have sex;

 

return false;

yup.. and also logs it in the console :P

 

pObject of mine and the point is not your share... you said me to show you a thread that have this and i show... this shity typo are 0 conecting and finding ip with "simple" way making full of useless codes every where in files like this or in pcinstace make youre/us cpu usage more huge.

i meant a thread on mxc... and what do u exactly mean by "this shity typo are 0 conecting and finding ip with "simple" way" didnt get ya..

Posted

i meant a thread on mxc... and what do u exactly mean by "this shity typo are 0 conecting and finding ip with "simple" way" didnt get ya..

 

Use more imagination... or cpu usage T.T

 

Read all my post if you don't understand them... cant do more :C

Posted

i still dont get ya.. r u trying to say that getClient().getConnection().getInetAddress().getHostAddress()

that is being run only twice n only at match's start will increase cpu usage?

Posted

i still dont get ya.. r u trying to say that getClient().getConnection().getInetAddress().getHostAddress()

that is being run only twice n only at match's start will increase cpu usage?

 

 

Im speaking generally for all of those codes around here...

 

Why simple making a CustomEnableIpManager.java

 

Puting all imports conecting to the olympiad games... and making the check from there... why instead of the game and registration circulation making this inside... that i mean for every code... low cpu usage... more stable... get it? ;s

 

(speaking with people that could not underastand what i mean make my cpu usage more huge... U.U)

 

 

 

pObject of mine and the point is not your share... you said me to show you a thread that have this and i show... this shity typo are 0 conecting and finding ip with "simple" way making full of useless codes every where in files like this or in pcinstace make youre/us cpu usage more huge.

 

 

 

Just try to use simple maganer.java and inculding all your modify ;]

 

Posted

yea i see what u mean now..  but still in this case .. it wouldnt make any much difference. well anyway we spammed this topic for good xD lol

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.



  • Posts

    • Good luck with your g/o 😃
    • You're talking complete nonsense. The source code of SphereAPI, which handles all requests, is closed and has never been published anywhere.     That return $this doesn't affect anything, PHP just ignores it. Why are you showing it?     Yes, of course I want that, and I’m asking you — go ahead and hack it, I’d even be thankful. The most you can probably do is launch a DDoS attack, but that’s not hacking. The IP you see is just a public one, used by default to handle requests. There are many other IPs involved, which aren’t disclosed for privacy reasons. So, when should I expect your hacker attack? If you fail, it means you talked big for nothing. I hope you're not all talk and can actually back up your words. UPD: To make your task easier, I have disabled limits on incorrect and failed requests, so your site/IP won't get blocked.
    • Lineage2Dex Interlude+ x50 Server launches TODAY!       The wait is over – the Lineage2Dex Interlude+ x50 Server launches TODAY! Grand Opening - April 26 at 19:00 (UTC+3) Over 10,000 registered accounts are ready to dive in! Beta with massive activity over, thx all who participate on it! It's time to begin your real Jorney! 👉 Read full roadmap 👉 Full server description 👉 Download and registration The server will be split into 3 stages, each featuring multiple content episodes. Stage 1: April 26 – May 18 Welcome to the Classic Interlude Phase. This stage is built with minimal custom content, focused on delivering that pure Interlude experience. It’s perfect for both new players unfamiliar with our project and veterans who enjoy a traditional start. Expect a smooth and nostalgic journey with familiar mechanics. Stage 2: May 19 – June 22 Time to expand the world! As most Interlude content gets completed, we gradually introduce new elements. Hellbound will open first, followed by weekly content updates. Midway through this stage, the Isle of Prayer will become available — a new zone featuring Dynasty Gear and fresh challenges. Stage 3: From June 23 Welcome to full content access! Some location become to High-level location, offering great reward! Once this phase concludes, a full merge with Union server will take place — and yes, all your characters and items will carry over safely. We wish everyone a smooth start, fair play, and tons of fun on the new x50 server! See you in-game!
    • Hello everyone! I'm offering professional L2J development services, specialized for aCis projects.   🔹 What I offer: Ready-to-implement existing systems (events, features, gameplay improvements). Custom development: I can create new systems based on your specific requests and ideas. Bug fixing, optimization, and enhancement of your server's code. Professional, clean, and organized Java coding. Support after delivery to ensure smooth integration.   🔹 Some examples of available systems: PvP and PvE Mini-Events (fully automated). Custom Raid Boss Events. Advanced Clan Utilities (regroup features, clan ranking, etc). Reward Systems (based on kills, damage, objectives, etc). Achievements Subscription system Arena Fights (1v1 tournament, scratch made). Advanced event engine (12 events, many features). multi-client aCis project, progressive gameplay C4 to C6   🔹 Why work with me? Years of experience working directly with aCis pack. Fast, reliable communication. I care about performance and long-term stability. I can adjust the systems to fit your server's style and balance.   🔹 Pricing: Flexible depending on the complexity (fixed price per project or per system). Discounts for multiple systems or long-term collaboration.   🔹 Contact: MaxCheaters PM Discord: @Luminous   Serious and passionate about your project? Let's make your server unique!
  • Topics

×
×
  • Create New...