Examples of ValidateLocation


Examples of lineage2.gameserver.network.serverpackets.ValidateLocation

      _log.info("EffectKnockBack Loc null check this!");
    _effected.broadcastPacket(new FlyToLocation(_effected, _loc, FlyType.PUSH_HORIZONTAL, getSkill().getFlySpeed()));
    _effected.abortAttack(true, true);
    _effected.abortCast(true, true);
    _effected.setXYZ(_loc.getX(), _loc.getY(), _loc.getZ());
    _effected.broadcastPacket(new ValidateLocation(_effected));
  }
View Full Code Here

Examples of net.sf.l2j.gameserver.serverpackets.ValidateLocation

            // Send a Server->Client packet MyTargetSelected to the L2PcInstance player
            MyTargetSelected my = new MyTargetSelected(getObjectId(), 0);
            player.sendPacket(my);

            // Send a Server->Client packet ValidateLocation to correct the L2NpcInstance position and heading on the client
            player.sendPacket(new ValidateLocation(this));
        }
        else
        {
            // Calculate the distance between the L2PcInstance and the L2NpcInstance
            if (!canInteract(player))
View Full Code Here

Examples of net.sf.l2j.gameserver.serverpackets.ValidateLocation

      // Send a Server->Client packet MyTargetSelected to the L2PcInstance player
      MyTargetSelected my = new MyTargetSelected(getObjectId(), 0);
      player.sendPacket(my);

      // Send a Server->Client packet ValidateLocation to correct the L2NpcInstance position and heading on the client
      player.sendPacket(new ValidateLocation(this));
    }
    else
    {
      // Calculate the distance between the L2PcInstance and the L2NpcInstance
      if (!canInteract(player))
View Full Code Here

Examples of net.sf.l2j.gameserver.serverpackets.ValidateLocation

      su.addAttribute(StatusUpdate.CUR_HP, (int)getStatus().getCurrentHp() );
      su.addAttribute(StatusUpdate.MAX_HP, getMaxHp() );
      player.sendPacket(su);

      // Send a Server->Client packet ValidateLocation to correct the L2NpcInstance position and heading on the client
      player.sendPacket(new ValidateLocation(this));
    }
    else
    {
      if (isAutoAttackable(player) && !isAlikeDead())
      {
View Full Code Here

Examples of net.sf.l2j.gameserver.serverpackets.ValidateLocation

          {
            L2PcInstance trg = (L2PcInstance)target;
            if (trg.isAlikeDead()) continue;
            //trg.teleToLocation(activeChar.getX(), activeChar.getY(), activeChar.getZ(), true);
            trg.setXYZ(activeChar.getX()+Rnd.get(-10,10), activeChar.getY()+Rnd.get(-10,10), activeChar.getZ());
            trg.sendPacket(new ValidateLocation(trg));
          }
        }
    }
View Full Code Here

Examples of net.sf.l2j.gameserver.serverpackets.ValidateLocation

            // Send a Server->Client packet MyTargetSelected to the L2PcInstance player
            MyTargetSelected my = new MyTargetSelected(getObjectId(), 0);
            player.sendPacket(my);

            // Send a Server->Client packet ValidateLocation to correct the L2NpcInstance position and heading on the client
            player.sendPacket(new ValidateLocation(this));
        }
        else
        {
            // Calculate the distance between the L2PcInstance and the L2NpcInstance
            if (!canInteract(player))
View Full Code Here

Examples of net.sf.l2j.gameserver.serverpackets.ValidateLocation

      // Send a Server->Client packet MyTargetSelected to the L2PcInstance player
      MyTargetSelected my = new MyTargetSelected(getObjectId(), 0);
      player.sendPacket(my);

      // Send a Server->Client packet ValidateLocation to correct the L2NpcInstance position and heading on the client
      player.sendPacket(new ValidateLocation(this));
    }
    else
    {
      // Calculate the distance between the L2PcInstance and the L2NpcInstance
      if (!canInteract(player))
View Full Code Here

Examples of net.sf.l2j.gameserver.serverpackets.ValidateLocation

      // Send a Server->Client packet MyTargetSelected to the L2PcInstance player
      MyTargetSelected my = new MyTargetSelected(getObjectId(), 0);
      player.sendPacket(my);

      // Send a Server->Client packet ValidateLocation to correct the L2NpcInstance position and heading on the client
      player.sendPacket(new ValidateLocation(this));
    }
    else
    {
      // Calculate the distance between the L2PcInstance and the L2NpcInstance
      if (!canInteract(player))
View Full Code Here

Examples of net.sf.l2j.gameserver.serverpackets.ValidateLocation

      // Send a Server->Client packet MyTargetSelected to the L2PcInstance player
      MyTargetSelected my = new MyTargetSelected(getObjectId(), 0);
      player.sendPacket(my);

      player.sendPacket(new ValidateLocation(this));
    }
    else
    {
      // Calculate the distance between the L2PcInstance and the L2NpcInstance
      if (!canInteract(player))
View Full Code Here

Examples of net.sf.l2j.gameserver.serverpackets.ValidateLocation

      su.addAttribute(StatusUpdate.CUR_HP, (int)getStatus().getCurrentHp() );
      su.addAttribute(StatusUpdate.MAX_HP, getMaxHp() );
      player.sendPacket(su);

      // Send a Server->Client packet ValidateLocation to correct the L2NpcInstance position and heading on the client
      player.sendPacket(new ValidateLocation(this));
    }
    else
    {
      if (isAutoAttackable(player) && Math.abs(player.getZ() - getZ()) < 100 // Less then max height difference, delete check when geo
          && GeoData.getInstance().canSeeTarget(player, this)
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.