Examples of dropItem()


Examples of com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance.dropItem()

      ItemList il = new ItemList(activeChar, true);
      activeChar.sendPacket(il);
    }
   
    L2ItemInstance dropedItem = activeChar.dropItem("Drop", _objectId, _count, _x, _y, _z, null, false, false);

    if(Config.DEBUG)
    {
      _log.fine("dropping " + _objectId + " item(" + _count + ") at: " + _x + " " + _y + " " + _z);
    }
View Full Code Here

Examples of l2p.gameserver.model.instances.L2NpcInstance.dropItem()

    if(actor != null && killer != null)
    {
      L2Player player = killer.getPlayer();
      if(player != null && player.getEffectList().containEffectFromSkills(KISS_OF_EVA))
      {
        actor.dropItem(player, Rnd.chance(50) ? Red_Coral : Crystal_Fragment, 1);
      }
    }
    super.onEvtDead(killer);
  }
View Full Code Here

Examples of l2p.gameserver.model.instances.L2NpcInstance.dropItem()

    L2Character mostHated = actor.getMostHated();
    if(mostHated != null && mostHated.isPlayable())
    {
      killer = mostHated.getPlayer();
    }
    actor.dropItem(killer, actor.getNpcId() == 22353 ? 9682 : Rnd.chance(10) ? 9681 : 9680, 1);
    actor.decayMe();
    actor.doDie(actor);
  }
}
View Full Code Here

Examples of l2p.gameserver.model.items.PcInventory.dropItem()

      activeChar.sendPacket(Msg.YOUR_WAREHOUSE_IS_FULL);
    }
    // Перекидываем
    for(L2ItemInstance itemToStore : itemsToStoreList)
    {
      warehouse.addItem(inventory.dropItem(itemToStore, _items.get(itemToStore.getObjectId()), false), activeChar.getName());
    }
    // Платим налог
    activeChar.reduceAdena(fee, true);
    // Обновляем параметры персонажа
    activeChar.updateStats();
View Full Code Here

Examples of l2p.gameserver.model.items.PcInventory.dropItem()

      activeChar.sendActionFailed();
      return;
    }
    if(_amount >= playerItem.getCount())
    {
      playerInventory.dropItem(_objectId, playerItem.getCount(), false);
      playerItem.setCustomFlags(playerItem.getCustomFlags() | L2ItemInstance.FLAG_PET_EQUIPPED, true);
      petInventory.addItem(playerItem);
    }
    else
    {
View Full Code Here

Examples of l2p.gameserver.model.items.PcInventory.dropItem()

      playerItem.setCustomFlags(playerItem.getCustomFlags() | L2ItemInstance.FLAG_PET_EQUIPPED, true);
      petInventory.addItem(playerItem);
    }
    else
    {
      L2ItemInstance newPetItem = playerInventory.dropItem(_objectId, _amount, false);
      petInventory.addItem(newPetItem);
    }
    pet.sendItemList();
    pet.broadcastPetInfo();
    Log.LogItem(activeChar, pet, Log.GiveItemToPet, playerItem);
View Full Code Here

Examples of l2p.gameserver.model.items.PcInventory.dropItem()

      L2ItemInstance found = inventory.getItemByObjectId(itemObjectId);
      if(found == null || !found.canBeDropped(activeChar, false))
      {
        continue;
      }
      warehouse.addItem(inventory.dropItem(found, _items.get(itemObjectId), false), null);
    }
    activeChar.reduceAdena(fee, true);
    activeChar.updateStats();
    // Delete destination L2Player used for freight
    activeChar.sendPacket(Msg.THE_TRANSACTION_IS_COMPLETE);
View Full Code Here

Examples of l2p.gameserver.model.items.PetInventory.dropItem()

    if(!activeChar.getInventory().validateWeight(finalLoad))
    {
      sendPacket(Msg.YOU_HAVE_EXCEEDED_THE_WEIGHT_LIMIT);
      return;
    }
    L2ItemInstance item = petInventory.dropItem(_objectId, _amount, false);
    item.setCustomFlags(item.getCustomFlags() & ~L2ItemInstance.FLAG_PET_EQUIPPED, true);
    playerInventory.addItem(item);
    pet.sendItemList();
    pet.broadcastPetInfo();
    Log.LogItem(activeChar, activeChar.getPet(), Log.GetItemFromPet, petItem);
View Full Code Here

Examples of lineage2.gameserver.model.instances.NpcInstance.dropItem()

      switch (i_ai2)
      {
        case 1:
          i0 = 695;
          i1 = 2245;
          actor.dropItem(killer.getPlayer(), ItemName_A, i0 + Rnd.get(i1 - i0));
          break;
        case 2:
          i0 = 3200;
          i1 = 8400;
          actor.dropItem(killer.getPlayer(), ItemName_A, i0 + Rnd.get(i1 - i0));
View Full Code Here

Examples of lineage2.gameserver.model.instances.NpcInstance.dropItem()

          actor.dropItem(killer.getPlayer(), ItemName_A, i0 + Rnd.get(i1 - i0));
          break;
        case 2:
          i0 = 3200;
          i1 = 8400;
          actor.dropItem(killer.getPlayer(), ItemName_A, i0 + Rnd.get(i1 - i0));
          break;
        case 3:
          i0 = 7;
          i1 = 17;
          actor.dropItem(killer.getPlayer(), ItemName_B_1, i0 + Rnd.get(i1 - i0));
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.