Package l2p.gameserver.serverpackets

Examples of l2p.gameserver.serverpackets.ValidateLocation


  {
    if(isVehicle() || isInVehicle()) // FIXME для кораблей что-то иное
    {
      return;
    }
    L2GameServerPacket sp = new ValidateLocation(this);
    if(broadcast == 0)
    {
      sendPacket(sp);
    }
    else if(broadcast == 1)
View Full Code Here


  public void onAction(L2Player player, boolean shift)
  {
    if(this != player.getTarget())
    {
      player.setTarget(this);
      player.sendPacket(new MyTargetSelected(getObjectId(), player.getLevel() - getLevel()), new ValidateLocation(this));
      if(isAutoAttackable(player))
      {
        player.sendPacket(makeStatusUpdate(StatusUpdate.CUR_HP, StatusUpdate.MAX_HP));
      }
      player.sendActionFailed();
View Full Code Here

  public void onAction(L2Player player, boolean shift)
  {
    if(this != player.getTarget())
    {
      player.setTarget(this);
      player.sendPacket(new MyTargetSelected(getObjectId(), player.getLevel() - getLevel()), new ValidateLocation(this));
    }
    else
    {
      MyTargetSelected my = new MyTargetSelected(getObjectId(), player.getLevel() - getLevel());
      player.sendPacket(my);
View Full Code Here

  public void onAction(L2Player player, boolean shift)
  {
    if(this != player.getTarget())
    {
      player.setTarget(this);
      player.sendPacket(new MyTargetSelected(getObjectId(), player.getLevel() - getLevel()), makeStatusUpdate(StatusUpdate.CUR_HP, StatusUpdate.MAX_HP), new ValidateLocation(this));
    }
    else
    {
      player.sendPacket(new MyTargetSelected(getObjectId(), player.getLevel() - getLevel()));
      if(isAutoAttackable(player))
View Full Code Here

  {
    if(this != player.getTarget())
    {
      player.setTarget(this);
      player.sendPacket(new MyTargetSelected(getObjectId(), player.getLevel() - getLevel()));
      player.sendPacket(new ValidateLocation(this));
    }
    else
    {
      player.sendPacket(new MyTargetSelected(getObjectId(), player.getLevel() - getLevel()));
      if(!isInRange(player, INTERACTION_DISTANCE))
View Full Code Here

    if(this != player.getTarget())
    {
      player.setTarget(this);
      MyTargetSelected my = new MyTargetSelected(getObjectId(), player.getLevel() - getLevel());
      player.sendPacket(my);
      player.sendPacket(new ValidateLocation(this));
    }
    else
    {
      MyTargetSelected my = new MyTargetSelected(getObjectId(), player.getLevel() - getLevel());
      player.sendPacket(my);
View Full Code Here

                player.sendPacket(new MyTargetSelected(getObjectId(), player.getLevel() - getLevel()));
                if (isAutoAttackable(player)) {
                    player.sendPacket(makeStatusUpdate(StatusUpdate.CUR_HP, StatusUpdate.MAX_HP));
                }
            }
            player.sendPacket(new ValidateLocation(this), Msg.ActionFail);
            return;
        }
        if (Events.onAction(player, this, shift)) {
            player.sendActionFailed();
            return;
View Full Code Here

      //player.sendPacket(new DoorStatusUpdate(this));
      {
        player.sendPacket(new StaticObject(this));
      }
      // correct location
      player.sendPacket(new ValidateLocation(this));
    }
    else
    {
      player.sendPacket(new MyTargetSelected(getObjectId(), player.getLevel()));
      if(isAutoAttackable(player))
View Full Code Here

          {
            if(nearest_target.isNpc())
            {
              activeChar.sendPacket(new MyTargetSelected(nearest_target.getObjectId(), activeChar.getLevel() - nearest_target.getLevel()));
              activeChar.sendPacket(nearest_target.makeStatusUpdate(StatusUpdate.CUR_HP, StatusUpdate.MAX_HP));
              activeChar.sendPacket(new ValidateLocation(nearest_target), Msg.ActionFail);
            }
            else
            {
              activeChar.sendPacket(new MyTargetSelected(nearest_target.getObjectId(), 0));
            }
View Full Code Here

  public void onAction(L2Player player, boolean shift)
  {
    if(player.getTarget() != this)
    {
      player.setTarget(this);
      player.sendPacket(new MyTargetSelected(getObjectId(), player.getLevel() - getLevel()), makeStatusUpdate(StatusUpdate.CUR_HP, StatusUpdate.MAX_HP), new ValidateLocation(this));
    }
    else
    {
      player.sendPacket(new MyTargetSelected(getObjectId(), player.getLevel() - getLevel()));
      if(isAutoAttackable(player))
View Full Code Here

TOP

Related Classes of l2p.gameserver.serverpackets.ValidateLocation

Copyright © 2018 www.massapicom. 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.