3JI0 Posted June 13, 2010 Share Posted June 13, 2010 Please give the description how does it work! Quote Link to comment Share on other sites More sharing options...
xAddytzu Posted June 13, 2010 Author Share Posted June 13, 2010 Please give the description how does it work! Read the code >.> Quote Link to comment Share on other sites More sharing options...
GoodT Posted June 13, 2010 Share Posted June 13, 2010 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. Quote Link to comment Share on other sites More sharing options...
Setekh Posted June 13, 2010 Share Posted June 13, 2010 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. Quote Link to comment Share on other sites More sharing options...
BruT Posted June 20, 2010 Share Posted June 20, 2010 What about the players that plays from net caffes ? their outgoing ip is same Quote Link to comment Share on other sites More sharing options...
xAddytzu Posted June 20, 2010 Author Share Posted June 20, 2010 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. Quote Link to comment Share on other sites More sharing options...
BruT Posted June 21, 2010 Share Posted June 21, 2010 is there any way to rise the amount of permited clients? everything is posible Quote Link to comment Share on other sites More sharing options...
jadinhu Posted July 1, 2010 Share Posted July 1, 2010 I use L2Jserver. Tried to install protection, but i'm disconnect with only 1 box. "System: I cannot...". :S Quote Link to comment Share on other sites More sharing options...
xAddytzu Posted July 1, 2010 Author Share Posted July 1, 2010 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));" Quote Link to comment Share on other sites More sharing options...
BruT Posted July 1, 2010 Share Posted July 1, 2010 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 Quote Link to comment Share on other sites More sharing options...
jadinhu Posted July 5, 2010 Share Posted July 5, 2010 My problem was L2enterworld.java. I missed where write the "if check". Quote Link to comment Share on other sites More sharing options...
BruT Posted July 5, 2010 Share Posted July 5, 2010 My problem was L2enterworld.java. I missed where write the "if check". at the end Quote Link to comment Share on other sites More sharing options...
Intrepid Posted July 6, 2010 Share Posted July 6, 2010 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...) Quote Link to comment Share on other sites More sharing options...
xAddytzu Posted July 6, 2010 Author Share Posted July 6, 2010 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. Quote Link to comment Share on other sites More sharing options...
Coyote™ Posted July 6, 2010 Share Posted July 6, 2010 Thread closed to avoid spaming. Actually, thread close because this is not working properly. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.