help me with the code. How can I add an item during the creation so that it would not fall to the ground but lay down in inventory
Š”++ create Item Dropped floor
ItemSerialCreateSend(aIndex, 0, 135, 135, ITEMGET(14, 16), 0, 0, 0, 0, 0, -1, 0);
Printable View
help me with the code. How can I add an item during the creation so that it would not fall to the ground but lay down in inventory
Š”++ create Item Dropped floor
ItemSerialCreateSend(aIndex, 0, 135, 135, ITEMGET(14, 16), 0, 0, 0, 0, 0, -1, 0);
Have you tried the gObjInventoryInsertItem function?
Example:
Note: i not use muemu code for this example so don't copy paste :ott1:Code:
BYTE iItemPos = gObjInventoryInsertItem(&gObj[lpObj->m_index], 12, 15, 0, -1,255); // This will create a Chaos Gem
if ( iItemPos == (BYTE)-1 )
{
LogAddTD("[InventoryInsertItem] Error : Not enough space in the inventory");
}
else
{
::GCInventoryItemOneSend(lpObj->aIndex, iItemPos);
}