Package net.sf.l2j.gameserver.serverpackets

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


      // 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

    {
      // 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

      // 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

    {
      // 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

    {
      // 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 L2ArtefactInstance position and heading on the client
      player.sendPacket(new ValidateLocation(this));
    }
View Full Code Here

      // 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 L2ArtefactInstance position and heading on the client
      player.sendPacket(new ValidateLocation(this));
    }
View Full Code Here

        // Check if the L2PcInstance already target the L2NpcInstance
        if (this != player.getTarget())
        {
            // Set the target of the L2PcInstance player
            player.setTarget(this);
            player.sendPacket(new MyTargetSelected(getObjectId(), 0));

        } else {

            MyTargetSelected my = new MyTargetSelected(getObjectId(), 0);
            player.sendPacket(my);

            // Calculate the distance between the L2PcInstance and the L2NpcInstance
            if (!player.isInsideRadius(this, INTERACTION_DISTANCE, false, false))
            {
View Full Code Here

TOP

Related Classes of net.sf.l2j.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.