546547548549550551552553554555556
} } target.deleteMe(); return; } if(!target.pickupMe(this)) { owner.sendActionFailed(); return; } }
28022803280428052806280728082809281028112812
if(!getInventory().validateCapacity(item)) { sendPacket(Msg.YOUR_INVENTORY_IS_FULL); return; } if(!item.pickupMe(this)) { return; } sendPacket(SystemMessage.obtainItems(item)); Log.LogItem(this, Log.PickupItem, getInventory().addItem(item));
28162817281828192820282128222823282428252826
} sendChanges(); } else if(item.getItemId() == 57) { if(!item.pickupMe(this)) { return; } getParty().distributeAdena(item, this); }
28252826282728282829283028312832283328342835
getParty().distributeAdena(item, this); } else { // Нужно обязательно сначало удалить предмет с земли. if(!item.pickupMe(null)) { return; } getParty().distributeItem(this, item); }
504505506507508509510511512513514
FlagItemAttachment attachment = item.getAttachment() instanceof FlagItemAttachment ? (FlagItemAttachment) item.getAttachment() : null; if (attachment != null) { return; } item.pickupMe(); } if ((owner.getParty() == null) || (owner.getParty().getLootDistribution() == Party.ITEM_LOOTER)) { getInventory().addItem(item); sendChanges();
43594360436143624363436443654366436743684369
{ if (pickupItem(item, Log.Pickup)) { broadcastPacket(new GetItem(item, getObjectId())); broadcastPickUpMsg(item); item.pickupMe(); } } else { getParty().distributeItem(this, item, null);
456457458459460461462463464465466
} if(target.getItemLootShedule() != null && (target.getOwnerId() == getOwner().getObjectId() || getOwner().isInLooterParty(target.getOwnerId()))) target.resetOwnerTimer(); target.pickupMe(this); if(Config.SAVE_DROPPED_ITEM) // item must be removed from ItemsOnGroundManager if is active ItemsOnGroundManager.getInstance().removeObject(target); }
46924693469446954696469746984699470047014702
{ target.resetOwnerTimer(); } // Remove the L2ItemInstance from the world and send server->client GetItem packets target.pickupMe(this); if (Config.SAVE_DROPPED_ITEM) { ItemsOnGroundManager.getInstance().removeObject(target); }