Jump to content

[Share]Dual-Box (Anti)


Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • 2 weeks later...

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));"

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.




×
×
  • Create New...