Examples of validateLocation()


Examples of l2p.gameserver.model.L2Player.validateLocation()

      }
      activeChar.setVehicle(null);
      activeChar.setLastClientPosition(null);
      activeChar.setLastServerPosition(null);
      activeChar.setLoc(_targetLoc.changeZ(64).correctGeoZ());
      activeChar.validateLocation(1);
      activeChar.stopMove(false);
      activeChar.sendActionFailed();
      return;
    }
    ThreadPoolManager.getInstance().executePathfind(new StartMoveTask(activeChar, _targetLoc, _moveMovement != 0));
View Full Code Here

Examples of l2p.gameserver.model.L2Player.validateLocation()

    r.W = W;
    r.way = new Stack<Location>();
    r.way.addAll(W.path);
    _riders.put(player.getObjectId(), r);
    player.setHeading(r.way.get(1), true);
    player.validateLocation(1);
    player.setMount(PetDataTable.WYVERN_ID, 0, 0);
    player.block();
    player.setIsInvul(true);
    player.addStatFunc(new FuncSet(Stats.RUN_SPEED, 0x90, W, 500));
    player.getAI().getListenerEngine().addMethodInvokedListener(_notifyEventListener);
View Full Code Here

Examples of l2p.gameserver.model.L2Player.validateLocation()

        activeChar.setIncorrectValidateCount(activeChar.getIncorrectValidateCount() + 1);
      }
    }
    else if(_dz >= (activeChar.isFlying() ? 512 : 256))
    {
      activeChar.validateLocation(0);
    }
    else if(_loc.z < -30000 || _loc.z > 30000)
    {
      if(activeChar.getIncorrectValidateCount() >= 3)
      {
View Full Code Here

Examples of l2p.gameserver.model.L2Player.validateLocation()

    }
    else if(_diff > 256) // old: activeChar.getMoveSpeed() * 2
    //  && !activeChar.isFlying() && !activeChar.isInBoat() && !activeChar.isSwimming()
    //TODO реализовать NetPing и вычислять предельное отклонение исходя из пинга по формуле: 16 + (ping * activeChar.getMoveSpeed()) / 1000
    {
      activeChar.validateLocation(1);
    }
    /*if(activeChar.isMoving)
                            activeChar.broadcastPacket(new CharMoveToLocation(activeChar));
                          else
                            activeChar.broadcastPacket(new ValidateLocation(activeChar));*/
 
View Full Code Here

Examples of lineage2.gameserver.model.Player.validateLocation()

        activeChar.setIncorrectValidateCount(activeChar.getIncorrectValidateCount() + 1);
      }
    }
    else if (dz >= 256)
    {
      activeChar.validateLocation(0);
    }
    else if ((_loc.z < -30000) || (_loc.z > 30000))
    {
      if (activeChar.getIncorrectValidateCount() >= 3)
      {
View Full Code Here

Examples of lineage2.gameserver.model.Player.validateLocation()

        activeChar.setIncorrectValidateCount(activeChar.getIncorrectValidateCount() + 1);
      }
    }
    else if (diff > 256)
    {
      activeChar.validateLocation(1);
    }
    else
    {
      activeChar.setIncorrectValidateCount(0);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.