Package l2p.gameserver.serverpackets

Examples of l2p.gameserver.serverpackets.MyTargetSelected


      return;
    }
    if(this != player.getTarget())
    {
      player.setTarget(this);
      player.sendPacket(new MyTargetSelected(getObjectId(), player.getLevel()));
      if(isAutoAttackable(player))
      //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))
      {
        player.getAI().Attack(this, false, shift);
      }
      else if(!isInRange(player, INTERACTION_DISTANCE))
View Full Code Here


          activeChar.setTarget(nearest_target);
          if(activeChar.getTarget() == nearest_target)
          {
            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));
            }
          }
          return;
        }
        break;
View Full Code Here

      return;
    }
    if(player.getTarget() != this)
    {
      player.setTarget(this);
      player.sendPacket(new MyTargetSelected(getObjectId(), 0));
      return;
    }
    MyTargetSelected my = new MyTargetSelected(getObjectId(), 0);
    player.sendPacket(my);
    if(!isInRange(player, INTERACTION_DISTANCE))
    {
      if(player.getAI().getIntention() != CtrlIntention.AI_INTENTION_INTERACT)
      {
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))
      {
        player.getAI().Attack(this, false, shift);
      }
      else
View Full Code Here

TOP

Related Classes of l2p.gameserver.serverpackets.MyTargetSelected

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.