Examples of MyTargetSelected


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

        {
            // Set the target of the L2PcInstance player
            player.setTarget(this);

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

//            if (isAutoAttackable(player))
//            {
                DoorStatusUpdate su = new DoorStatusUpdate(this);
View Full Code Here

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

        if (player == null) return;

        if (player.getAccessLevel() >= Config.GM_ACCESSLEVEL)
        {
            player.setTarget(this);
            MyTargetSelected my = new MyTargetSelected(getObjectId(), player
                    .getLevel());
            player.sendPacket(my);

            if (isAutoAttackable(player)) {
                DoorStatusUpdate su = new DoorStatusUpdate(this);
View Full Code Here

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

    {
      // Set the target of the L2PcInstance player
      player.setTarget(this);

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

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

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

    {
      // Set the target of the L2PcInstance player
      player.setTarget(this);

      // 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));
    }
View Full Code Here

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

    {
      // Set the target of the L2PcInstance player
      player.setTarget(this);

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

      // Send a Server->Client packet StatusUpdate of the L2NpcInstance to the L2PcInstance to update its HP bar
      StatusUpdate su = new StatusUpdate(getObjectId());
      su.addAttribute(StatusUpdate.CUR_HP, (int)getStatus().getCurrentHp() );
View Full Code Here

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

  public void onStart() {
      //Should only work on PC?
      if (getEffected() instanceof L2PcInstance)
      {
        getEffected().setTarget(getEffector());
        MyTargetSelected my = new MyTargetSelected(getEffector().getObjectId(), 0);
        getEffected().sendPacket(my);
      }
    }
View Full Code Here

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

      // Set the target of the player
      player.setTarget(this);
     
      // Send a Server->Client packet MyTargetSelected to the player
      // The color to display in the select window is White
      player.sendPacket(new MyTargetSelected(getObjectId(), 0));
      if (player != this)
      {
        player.sendPacket(new ValidateLocation(this));
      }
    }
View Full Code Here

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

    {
      // Set the target of the L2PcInstance player
      player.setTarget(this);

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

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

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

      // Set the target of the L2PcInstance player
      player.setTarget(this);

      // Send a Server->Client packet MyTargetSelected to the L2PcInstance player
      // The color to display in the select window is White
      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));
    }
View Full Code Here

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

    {
      // Set the target of the L2PcInstance player
      player.setTarget(this);

      // 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));
    }
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.