Jump to content

Recommended Posts

Posted

i was selling this. now its for free i don't want to sell it any more.

 

take a look here:

 

 

L2PcInstance.java

 

			public class PingP implements Runnable
		{
			@Override
			public void run()
			{
				try
				{
					ping("www.google.gr");
				}
				catch (Exception e)
				{
					e.printStackTrace();
				}
				ThreadPoolManager.getInstance().scheduleGeneral(new PingP(), 4 * 1000);

			}

		 public void ping(String addr) throws Exception 
		 {

		        final Socket socket = new Socket();	 
		        final long startTime = System.currentTimeMillis();
		        socket.connect(new InetSocketAddress(addr, 80));			       	                		        		       
		        final long endTime = System.currentTimeMillis();		        
		        final int ping = ((int) (endTime-startTime));
                    sendPacket(new ExShowScreenMessage(1,0,ExShowScreenMessage.SMPOS.TOP_RIGHT,false,1,0,0,false,9999,false,"Ping: " + ping));
		        socket.close();
		        
		   }

		}
		public void startPing()
		{
			ThreadPoolManager.getInstance().scheduleGeneral(new PingP(), 4 * 1000);
		}

 

EntreWorld.java

 

activeChar.startPing();

 

tips: just change the ip(put your server no-ip) and the port. also you can change the style you can put it in a window at the top(right) of the screen(like pc bang points) or dunno do anything you want i just gave the idea. :)

Posted

but, shouldn't this return the MS between server - player ? cause I only see pinging back to server,

 

nvm thanks for share

Posted

So basically this 'ping' is just the number of milliseconds passed to make a socket connection with a site...?

 

yeap, and as it seems it has nothing to do with the L2PcInstance class ... so for every L2PcInstance object that very same algorithm is cast, it should'nt come with L2PcInstance I think but with a different public class

Posted

yeap, and as it seems it has nothing to do with the L2PcInstance class ... so for every L2PcInstance object that very same algorithm is cast, it should'nt come with L2PcInstance I think but with a different public class

Lol, read that: http://maxcheaters.com/forum/index.php?topic=274764.0 mr public class guy, also about field/method modifiers on oracle XD

 

It can be anywhare that, cool thing, but it gets u the ping of a site? You need to specify the socket that u are using the player's inet adress if u wanna do it server side, but it should be done client side really. Aaaand its totally done wrong. check this: http://docs.oracle.com/javase/6/docs/api/java/net/InetAddress.html#isReachable(int). Thats a ping test, with a timeout :), It halts the thread so u can use the same method with system.milis. You can get the inet like so: InetAdress.getByAddress(new byte[] {127, 0, 0, 1});// 127  0 0 1 being the ip that u replace; you cna get it from the player's connection then getting his address as byte array or as string(and then splitting it so: \\..split("\\.")), depends what ur l2jmmoco.e supports.

 

See: http://docs.oracle.com/javase/6/docs/api/java/net/InetAddress.html#getByAddress(byte[])

Guest
This topic is now closed to further replies.


  • Posts

    • Unfortunately, I already tried using it a while ago and it didn't work; besides, it said "gira" and the other person heard it in Godart; and it doesn't have a source.
    • 💎 Unlock Advanced Google Workspace AI integrations with 5TB storage for up to 18 months. Tested, verified, and automated delivery!     FINAL CALL: Google is Shutting This Down After October 2026! Google will NEVER bring back this window of opportunity again. Once this month ends, this massive backdoor upgrade is gone permanently!  BUY 2, GET 1 FREE IS STILL LIVE! Stock up now for yourself, your family, your business, and your friends! Think about it: Every single person you know uses a Gmail account, and everyone is running out of storage. Don't let your loved ones get trapped paying $20–$30 every single month when you can set them up with 5TB Cloud Storage + Gemini Advanced (12–18 Months) right now for only $15! Why Buy Bulk Activations Today? Instant Gift Value: Perfect lifetime-style gift for clients, family, or team members. 100% Private & Safe: Activates on personal Gmails—zero passwords or logins required. Global Access: Works worldwide with zero VPN hassles. Instant Automated Delivery: Receive your activation links in seconds 24/7! ‍ Time is running out fast—secure your extra free licenses before the October deadline hits! Order Your Bundle Now on the Website
    • 31 Interlude Classes Reworked - Interested in Your Opinions One of the biggest challenges while developing L2 WARFRONT has been class balance. Interlude was never designed around continuous, fully buffed faction battles where players return to combat within seconds. Mechanics that work reasonably well in traditional PvP can behave very differently when entire groups are fighting over objectives. Over the past months, we've worked on all 31 playable classes, trying to give each a meaningful battlefield role without removing what makes them recognisable as Interlude classes. Some examples of what we've been experimenting with: Tanks: Chain Strike, Frontline Bulwark and adjustments aimed at making them more valuable in frontline combat. Titan: Frenzy, Zealot and Guts dynamically scale with current HP rather than simply being locked behind an activation threshold. Daggers: Shadow Step, Hide and other changes to mobility and close-range gameplay. Healers: Adjusted healing effectiveness and an offensive Inquisitor option, with the aim of preventing organised parties from becoming almost impossible to kill. Support classes: Additional combat and party-support mechanics to encourage more class diversity. The goal is not to make every class equally strong in a 1v1. A tank, a dagger, a nuker and a healer should have very different strengths. We're not claiming we've achieved perfect balance. We completed a Closed Beta with around 110 participants, collected feedback and have continued making adjustments. We've also published a breakdown of the changes to all 31 classes: https://l2warfront.com/guides/interlude-class-balance/   I'd genuinely be interested in hearing from experienced Interlude players: Which classes do you think are most overlooked in large-scale PvP? Are there any mechanics you believe become particularly problematic in continuous faction warfare? Criticism is welcome. Even when we disagree on a particular approach, a good discussion can help us make better decisions. L2 WARFRONT — Grand Opening: 30 October 2026.
    • I love seeing so much activity on Maxcheaters—users sharing things and all that. Honestly, I want to congratulate every single member of the Maxcheaters staff.   Keep it up! 🙂
  • Topics

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