Package lineage2.gameserver.model

Examples of lineage2.gameserver.model.GameObject


   * @param activeChar Player
   * @param modifications String
   */
  private void adminModifyCharacter(Player activeChar, String modifications)
  {
    GameObject target = activeChar.getTarget();
    if ((target == null) || !target.isPlayer())
    {
      activeChar.sendPacket(Msg.SELECT_TARGET);
      return;
    }
    Player player = (Player) target;
View Full Code Here


   * Method editCharacter.
   * @param activeChar Player
   */
  private void editCharacter(Player activeChar)
  {
    GameObject target = activeChar.getTarget();
    if ((target == null) || !target.isPlayer())
    {
      activeChar.sendPacket(Msg.SELECT_TARGET);
      return;
    }
    Player player = (Player) target;
View Full Code Here

   * Method showCharacterActions.
   * @param activeChar Player
   */
  private void showCharacterActions(Player activeChar)
  {
    GameObject target = activeChar.getTarget();
    Player player;
    if ((target != null) && target.isPlayer())
    {
      player = (Player) target;
    }
    else
    {
View Full Code Here

   * Method addExpSp.
   * @param activeChar Player
   */
  private void addExpSp(final Player activeChar)
  {
    final GameObject target = activeChar.getTarget();
    Player player;
    if ((target != null) && target.isPlayer() && ((activeChar == target) || activeChar.getPlayerAccess().CanEditCharAll))
    {
      player = (Player) target;
    }
    else
    {
View Full Code Here

    if (!activeChar.getPlayerAccess().CanEditCharAll)
    {
      activeChar.sendMessage("You have not enough privileges, for use this function.");
      return;
    }
    final GameObject target = activeChar.getTarget();
    if (target == null)
    {
      activeChar.sendPacket(Msg.SELECT_TARGET);
      return;
    }
    if (!target.isPlayable())
    {
      activeChar.sendPacket(Msg.INVALID_TARGET);
      return;
    }
    Playable playable = (Playable) target;
View Full Code Here

    if ((playable == null) || !playable.isPlayer())
    {
      return false;
    }
    final Player player = playable.getPlayer();
    final GameObject target = player.getTarget();
    if ((target == null) || !target.isDoor())
    {
      player.sendPacket(SystemMsg.THAT_IS_AN_INCORRECT_TARGET);
      return false;
    }
    final DoorInstance door = (DoorInstance) target;
View Full Code Here

    final int[] npcs =
    {
      29048,
      29049
    };
    final GameObject t = player.getTarget();
    if ((t == null) || !t.isNpc() || !ArrayUtils.contains(npcs, ((NpcInstance) t).getNpcId()))
    {
      player.sendPacket(new SystemMessage(SystemMessage.S1_CANNOT_BE_USED_DUE_TO_UNSUITABLE_TERMS).addItemName(8556));
      return false;
    }
    if (player.getDistance(t) > 200)
View Full Code Here

    {
      17240101,
      17240105,
      17240109
    };
    final GameObject target = player.getTarget();
    if (player.getDistance(target) > 150)
    {
      return false;
    }
    if ((target != null) && target.isDoor())
    {
      final int _door = ((DoorInstance) target).getDoorId();
      if (ArrayUtils.contains(allowedDoors, _door))
      {
        player.getReflection().openDoor(_door);
View Full Code Here

    final int[] allowedDoors =
    {
      17240103,
      17240107
    };
    final GameObject target = player.getTarget();
    if ((target != null) && target.isDoor())
    {
      final int _door = ((DoorInstance) target).getDoorId();
      if (ArrayUtils.contains(allowedDoors, _door))
      {
        useItem(player, 13809, 1);
View Full Code Here

    if ((activeChar.getClanPrivileges() & Clan.CP_CL_INVITE_CLAN) != Clan.CP_CL_INVITE_CLAN)
    {
      activeChar.sendPacket(Msg.ONLY_THE_LEADER_CAN_GIVE_OUT_INVITATIONS);
      return;
    }
    GameObject object = activeChar.getVisibleObject(_objectId);
    if ((object == null) || !object.isPlayer())
    {
      activeChar.sendPacket(SystemMsg.THAT_IS_AN_INCORRECT_TARGET);
      return;
    }
    Player member = (Player) object;
View Full Code Here

TOP

Related Classes of lineage2.gameserver.model.GameObject

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.