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);
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 pasteCode: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); }![]()
Last edited by allexander; 01-02-19 at 02:28 PM. Reason: Refrain from moving / bringing topics off the board. Rule 27 http://forum.ragezone.com/f71/forum-rules-101410/