Examples of dropToTheGround()


Examples of l2p.gameserver.model.items.L2ItemInstance.dropToTheGround()

          long count = wordList.length > 3 ? Long.parseLong(wordList[3]) : 1;
          for(int i = 0; i < num; i++)
          {
            L2ItemInstance createditem = ItemTable.getInstance().createItem(id);
            createditem.setCount(count);
            createditem.dropToTheGround(activeChar, Rnd.coordsRandomize(activeChar, 100));
          }
        }
        catch(NumberFormatException nfe)
        {
          activeChar.sendMessage("Specify a valid number.");
View Full Code Here

Examples of l2p.gameserver.model.items.L2ItemInstance.dropToTheGround()

    }
    player.removeSkillById(_skillId);
    player.abortAttack(true, false);
    zeroOwner();
    setState(CursedWeaponState.DROPPED);
    oldItem.dropToTheGround(player, (L2NpcInstance) null);
    _loc = oldItem.getLoc();
    oldItem.setDropTime(0);
    _item = oldItem;
    player.sendPacket(new SystemMessage(SystemMessage.YOU_HAVE_DROPPED_S1).addItemName(oldItem.getItemId()));
    player.refreshExpertisePenalty();
View Full Code Here

Examples of l2p.gameserver.model.items.L2ItemInstance.dropToTheGround()

    if (dropedItem == null)
    {
      activeChar.sendActionFailed();
      return;
    }
    dropedItem.dropToTheGround(activeChar, _loc);
    Log.LogItem(activeChar, Log.Drop, dropedItem);
    activeChar.updateStats();
  }
}
View Full Code Here

Examples of l2p.gameserver.model.items.L2ItemInstance.dropToTheGround()

  private void dropItem(L2NpcInstance actor, int id, int count)
  {
    L2ItemInstance item = ItemTable.getInstance().createItem(id);
    item.setCount(count);
    item.dropToTheGround(null, actor);
  }
}
View Full Code Here

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

    {
      return;
    }
    ItemInstance item = ItemFunctions.createItem(itemId);
    item.setCount(count);
    item.dropToTheGround(player, npc);
  }
 
  /**
   * Method rollDrop.
   * @param count int
View Full Code Here

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

    }
    player.removeSkillById(_skillId);
    player.abortAttack(true, false);
    zeroOwner();
    setState(CursedWeaponState.DROPPED);
    oldItem.dropToTheGround(player, Location.findPointToStay(player, 100));
    _loc = oldItem.getLoc();
    oldItem.setDropTime(0);
    _item = oldItem;
    player.sendPacket(new SystemMessage(SystemMessage.YOU_HAVE_DROPPED_S1).addItemName(oldItem.getItemId()));
    player.broadcastUserInfo();
View Full Code Here

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

          player.getParty().distributeItem(player, sweep, null);
          continue;
        }
        if (!player.getInventory().validateCapacity(sweep) || !player.getInventory().validateWeight(sweep))
        {
          sweep.dropToTheGround(player, target);
          continue;
        }
        player.getInventory().addItem(sweep);
        SystemMessage smsg;
        if (item.count == 1)
View Full Code Here

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

          player.getParty().distributeItem(player, sweep, null);
          continue;
        }
        if (!player.getInventory().validateCapacity(sweep) || !player.getInventory().validateWeight(sweep))
        {
          sweep.dropToTheGround(player, targetMonster);
          continue;
        }
        player.getInventory().addItem(sweep);
        SystemMessage smsg;
        if (item.count == 1)
View Full Code Here

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

        ItemInstance harvest;
        if (!player.getInventory().validateCapacity(item.itemId, item.count) || !player.getInventory().validateWeight(item.itemId, item.count))
        {
          harvest = ItemFunctions.createItem(item.itemId);
          harvest.setCount(item.count);
          harvest.dropToTheGround(player, monster);
          continue;
        }
        player.getInventory().addItem(item.itemId, item.count);
        player.sendPacket(new SystemMessage(SystemMessage.S1_HARVESTED_S3_S2_S).addName(player).addNumber(item.count).addItemName(item.itemId));
        if (player.isInParty())
View Full Code Here

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

   * @param player Player
   */
  private void dropItem(NpcInstance block, int id, BlockCheckerEngine eng, Player player)
  {
    final ItemInstance drop = ItemFunctions.createItem(id);
    drop.dropToTheGround(block, Location.findPointToStay(block, 50));
    eng.addNewDrop(drop);
  }
}
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.