Secret Experience

Secret Experience (https://secretexperience.net/index.php)
-   [Lineage] Java Mods (https://secretexperience.net/forumdisplay.php?f=636)
-   -   [L2JServer] Anti Dual-Box (https://secretexperience.net/showthread.php?t=23125)

Guma 10-07-2010 04:54 PM

Anti Dual-Box
 
[Somente Usuários Registrados Podem Visualizar os Links Desta PáginaClique aqui para se Registrar]

Index: EnterWorld.java

Código:

+                if (ProtectionDualBox.check(activeChar))
+                        ProtectionDualBox.disc(activeChar);


Package: net.sf.l2j.gameserver.model.customs

Código:

/* This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2, or (at your option)
 * any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 * 02111-1307, USA.
 *
 * http://www.gnu.org/copyleft/gpl.html
 */
package net.sf.l2j.gameserver.model.custom;

import net.sf.l2j.gameserver.ThreadPoolManager;
import net.sf.l2j.gameserver.clientpackets.Say2;
import net.sf.l2j.gameserver.model.L2World;
import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;
import net.sf.l2j.gameserver.serverpackets.CreatureSay;

/**
 *
 * @author xAddytzu
 */
public class
ProtectionNetwork
{
  public static void disc(final L2PcInstance player)
  {
      player.sendPacket(new CreatureSay(1, Say2.HERO_VOICE, "SYSTEM", "You cannot play with dualbox."));
      ThreadPoolManager.getInstance().scheduleGeneral(new Runnable()
      {
        public void run()
        {
            player.closeNetConnection();
        }
      }, 20000);
  }
  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;
  }
  private static String first(L2PcInstance player)
  {
      return second(player).toString();
  }
  private static String second(L2PcInstance player)
  {
      try
      {
        return player.getClient().getConnection().getSocketChannel().socket().getInetAddress().getHostAddress();
      } catch (Throwable t){}
      return null;
  }
}

Creditos : xAddytzu

Mazokista 11-07-2010 01:34 PM

Manow vc Pode Min Explicar Pra Que Servi Esse MOD ?

Dandilo 11-07-2010 01:38 PM

Obviamente ele não permite que o cara abra duas janelas de lineage2 no mesmo IP.:dull:

Mazokista 11-07-2010 01:41 PM

A Tah Vlw :spinny:

Inspector 11-07-2010 02:54 PM

lembrando que se for uma lanhouse ja sabe o resultado se essa opcao estiver ativa no servidor

xaladim 07-11-2010 12:09 AM

e como bloqueia na olly ?

xadresz 07-11-2010 11:17 AM

@xaladim,
olly é outro código, procure no fórum que você acha. (creio eu :D)
até mais.

bemoveral 02-01-2011 01:57 PM

Ola para todos montei um server na versão EPILOGUE mas depois de um tempo começou a aparecer players com uma caralhada de itens, percebi que eles estavam duplicando os itens.
o bug e esse, olhem o video:
[Somente Usuários Registrados Podem Visualizar os Links Desta PáginaClique aqui para se Registrar]

Queria compilar um sistema de bloquear as dual box assim acabaria com esse bug.

ate achei o mod que eu quero mas definitivamente nao sei compilar :/
o mod e esse:
[Somente Usuários Registrados Podem Visualizar os Links Desta PáginaClique aqui para se Registrar]

alguem se disponibiliza para compilar para mim?

minhas libs sao essas [Somente Usuários Registrados Podem Visualizar os Links Desta PáginaClique aqui para se Registrar]

desde de ja agradeço!

PedroViktorL2 01-12-2013 12:56 AM

Ajuda Porfavor
 
Bom Estou jogando um servidor interlude lowrate ele e dual box e queria abrir mais contas no mesmo computador existe algum programa que faça isso por mim ... Agradeçido des de já.


Horários baseados na GMT -3. Agora são 09:33 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.