return Commands.values();
}
private void createItem(L2Player activeChar, L2Player player, int id, long num)
{
L2ItemInstance createditem = ItemTable.getInstance().createItem(id);
createditem.setCount(num);
activeChar.getInventory().addItem(createditem);
Log.LogItem(activeChar, Log.Adm_AddItem, createditem);
if(!createditem.isStackable())
{
for(long i = 0; i < num - 1; i++)
{
createditem = ItemTable.getInstance().createItem(id);
activeChar.getInventory().addItem(createditem);
Log.LogItem(activeChar, Log.Adm_AddItem, createditem);
}
}
if (activeChar != player) player.sendMessage("Персонажу, " + activeChar.getName() + " было успешно добавленно " + num + " " + createditem.getName()+".");
activeChar.sendPacket(new ItemList(activeChar, true), SystemMessage.obtainItems(id, num, 0));
}