Package lineage2.gameserver.model.items

Examples of lineage2.gameserver.model.items.ItemInstance.deleteMe()


      if (Rnd.chance(36))
      {
        dropItem(actor, Water_Dragon_Claw, Rnd.get(1, 3));
      }
      cleanUp();
      actor.deleteMe();
    }
  }
 
  /**
   * Method dropItem.
View Full Code Here


      case admin_delete:
        GameObject obj = wordList.length == 1 ? activeChar.getTarget() : GameObjectsStorage.getNpc(NumberUtils.toInt(wordList[1]));
        if ((obj != null) && obj.isNpc())
        {
          NpcInstance target = (NpcInstance) obj;
          target.deleteMe();
          Spawner spawn = target.getSpawn();
          if (spawn != null)
          {
            spawn.stopRespawn();
          }
View Full Code Here

      if ((target != null) && target.isTrap())
      {
        TrapInstance trap = (TrapInstance) target;
        if (trap.getLevel() <= getPower())
        {
          trap.deleteMe();
        }
      }
    }
    if (isSSPossible())
    {
View Full Code Here

    TrapInstance trap;
    for (Integer trapId : traps.keySet())
    {
      if ((trap = (TrapInstance) GameObjectsStorage.get(traps.get(trapId))) != null)
      {
        trap.deleteMe();
        return;
      }
      return;
    }
  }
View Full Code Here

      }
      else
      {
        item = entry.getValue();
      }
      item.deleteMe();
    }
  }
 
  /**
   * Method addListener.
View Full Code Here

          closestItem = (ItemInstance) obj;
        }
      }
      if (closestItem != null)
      {
        closestItem.deleteMe();
        actor.altUseSkill(s_display_bug_of_fortune1, actor);
        Functions.npcSayInRange(actor, 600, NpcString.YUMYUM_YUMYUM);
        i_ai0++;
        if ((i_ai0 > 1) && (i_ai0 <= 10))
        {
View Full Code Here

          for (Skill skill : skills)
          {
            altUseSkill(skill, this);
          }
        }
        item.deleteMe();
        return;
      }
      if (!getInventory().validateWeight(item))
      {
        sendPacket(Msg.EXCEEDED_PET_INVENTORYS_WEIGHT_LIMIT);
View Full Code Here

          {
            altUseSkill(skill, this);
          }
        }
        broadcastPacket(new GetItem(item, getObjectId()));
        item.deleteMe();
        return;
      }
      FlagItemAttachment attachment = item.getAttachment() instanceof FlagItemAttachment ? (FlagItemAttachment) item.getAttachment() : null;
      if (!isInParty() || (attachment != null))
      {
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.