Package com.l2jfrozen.gameserver.model.actor.position

Examples of com.l2jfrozen.gameserver.model.actor.position.ObjectPosition


  public void onTeleported()
  {
    if(!isTeleporting())
      return;
   
    final ObjectPosition pos = getPosition();

    if(pos!=null)
      spawnMe(getPosition().getX(), getPosition().getY(), getPosition().getZ());

    setIsTeleporting(false);

    if(_isPendingRevive)
    {
      doRevive();
    }
   
    final L2Summon pet = getPet();

    // Modify the position of the pet if necessary
    if(pet != null && pos!=null)
    {
      pet.setFollowStatus(false);
      pet.teleToLocation(pos.getX() + Rnd.get(-100, 100), pos.getY() + Rnd.get(-100, 100), pos.getZ(), false);
      pet.setFollowStatus(true);
    }

  }
View Full Code Here


  public final ObjectPosition getPosition()
  {
    if(_position == null)
    {
      _position = new ObjectPosition(this);
    }

    return _position;
  }
View Full Code Here

TOP

Related Classes of com.l2jfrozen.gameserver.model.actor.position.ObjectPosition

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.