Package com.l2jfrozen.gameserver.model

Examples of com.l2jfrozen.gameserver.model.L2Object


      }

      // if the owner has enough food, call the item handler (use the food and triffer all necessary actions)
      if(item != null && item.getCount() >= 1)
      {
        L2Object oldTarget = owner.getTarget();
        owner.setTarget(_tamedBeast);
        L2Object[] targets =
        {
          _tamedBeast
        };
View Full Code Here


      // No castle specified
      showCastleSelectPage(activeChar);
    }
    else
    {
      L2Object target = activeChar.getTarget();
      L2PcInstance player = null;

      if(target instanceof L2PcInstance)
      {
        player = (L2PcInstance) target;
View Full Code Here

  public void getCubicTarget()
  {
    try
    {
      _target = null;
      L2Object ownerTarget = _owner.getTarget();
      if (ownerTarget == null)
        return;
     
      // Duel targeting
      if (_owner.isInDuel())
View Full Code Here

      handleInvul(activeChar);
    }

    if(command.equals("admin_setinvul"))
    {
      L2Object target = activeChar.getTarget();

      if(target instanceof L2PcInstance)
      {
        handleInvul((L2PcInstance) target);
      }
View Full Code Here

        {
          //end time is equal to dropped one
          long endTime = System.currentTimeMillis() + cursedWeapon.getDuration() * 60000L;
          cursedWeapon.setEndTime(endTime);
         
          L2Object target = activeChar.getTarget();
          if ((target != null) && (target instanceof L2PcInstance))
          {
            ((L2PcInstance) target).addItem("AdminCursedWeaponAdd", id, 1, target, true);
          }
          else
View Full Code Here

  }

  // TODO: add possibility to delete any L2Object (except L2PcInstance)
  private void handleDelete(L2PcInstance activeChar)
  {
    L2Object obj = activeChar.getTarget();

    if(obj != null && obj instanceof L2NpcInstance)
    {
      L2NpcInstance target = (L2NpcInstance) obj;
      target.deleteMe();
View Full Code Here

    */

    if(command.startsWith("admin_polymorph"))
    {
      StringTokenizer st = new StringTokenizer(command);
      L2Object target = activeChar.getTarget();

      try
      {
        st.nextToken();
        String p1 = st.nextToken();
View Full Code Here

   * @param id
   */
  private void adminTestSkill(L2PcInstance activeChar, int id)
  {
    L2Character player;
    L2Object target = activeChar.getTarget();

    if(target == null || !(target instanceof L2Character))
    {
      player = activeChar;
    }
View Full Code Here

   
    switch(comm)
    {
      case admin_pledge:{
       
        L2Object target = activeChar.getTarget();
        L2PcInstance player = null;

        if(target instanceof L2PcInstance)
        {
          player = (L2PcInstance) target;
View Full Code Here

    {
      showFortSelectPage(activeChar);
    }
    else
    {
      L2Object target = activeChar.getTarget();
      L2PcInstance player = null;

      if(target instanceof L2PcInstance)
      {
        player = (L2PcInstance) target;
View Full Code Here

TOP

Related Classes of com.l2jfrozen.gameserver.model.L2Object

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.