Jump to content

Recommended Posts

Posted

Its good but a lot of people have similar IP (standart IPv4 will be full) and that system block it. Better will be system with HWID.

yes like routers, also u can get hwid from ProtocolVersion client packet.

Posted

What about the players that plays from net caffes ? their outgoing ip is same

 

I don't know, find a solution. It's just an idea >.>

 

yes like routers, also u can get hwid from ProtocolVersion client packet.

  • 2 weeks later...
Posted

I use L2Jserver. Tried to install protection, but i'm disconnect with only 1 box. "System: I cannot...".

 

:S

is not possible.. the check is "if (client.equalsIgnoreCase(client1));"

Posted

Read the code >.>

Yes, please read the code

 

is not possible.. the check is "if (client.equalsIgnoreCase(client1));"

 

public static boolean check(L2PcInstance player)
{
	boolean loggedz0r = false;
	for (L2PcInstance playerz0r : L2World.getInstance().getAllPlayers())
	{
		String client = first(playerz0r);
		String client1 = second(player);
		if (client.equalsIgnoreCase(client1));
			loggedz0r = true;
	}
	return loggedz0r;
}

Explain me what this does then talk about posiblities because when you do the check you are already in game which is dualbox in your check

 

 

can someone fix the imports for interlude ?

v 1.01

package com.l2jserver.gameserver;

import com.l2jserver.gameserver.model.L2World;
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
import com.l2jserver.gameserver.network.clientpackets.Say2;
import com.l2jserver.gameserver.network.serverpackets.CreatureSay;

/**
* @author xAddytzu
* @version 1.01
*/
public class DualBoxProtection
{
public void checkForDualbox(L2PcInstance player)
{
	int objId = player.getObjectId();
	String playerIp = getIp(player);
	for (L2PcInstance players : L2World.getInstance().getAllPlayers().values())
	{
		if (players != null && objId != players.getObjectId())
		{
			if (playerIp.equalsIgnoreCase(getIp(players)))
			{
				disconnect(players);
			}
		}
	}
}

private String getIp(L2PcInstance player)
{
	return player.getClient().getConnection().getInetAddress().getHostAddress();
}

public void disconnect(final L2PcInstance player)
{
	player.sendPacket(new CreatureSay(1, Say2.HERO_VOICE, "SYSTEM", "Dualbox isn't allowed. You'll be disconnected soon!"));
	ThreadPoolManager.getInstance().scheduleGeneral(new Runnable() {
		public void run()
		{
			if (player != null && player.isOnline() > 0)
			{
				player.closeNetConnection(true);
			}
		}
	}, 20000);
}
}

 

xAddytzu why do you even post bugged codes if you doesnt know how to code and read ? you are probly from the ones who can code but cant read it

Posted

jesus christ ppl...thats so awfull to see still noobs playing with the freeking ip check...make the chech to the gameclient and no problem for netcaffes no problems for routers and such...just think a bit...(ohh sorry i know that it cannot be c/ped so it ill not be done but atleast think a bit before make a code...)

Posted

jesus christ ppl...thats so awfull to see still noobs playing with the freeking ip check...make the chech to the gameclient and no problem for netcaffes no problems for routers and such...just think a bit...(ohh sorry i know that it cannot be c/ped so it ill not be done but atleast think a bit before make a code...)

This is just an exemple. You can eat code or do what do you want >.> It's simple to understand.

 

Thread closed to avoid spaming.

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