[Help] Code C++

Results 1 to 3 of 3
  1. #1
    Account Upgraded | Title Enabled! ponteleymon is offline
    MemberRank
    Jan 2013 Join Date
    276Posts

    config [Help] Code C++

    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);


  2. #2
    Proficient Member muzic25 is offline
    MemberRank
    Aug 2008 Join Date
    HungaryLocation
    183Posts

    re: [Help] Code C++

    Have you tried the gObjInventoryInsertItem function?

    Example:
    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);
    			}
    Note: i not use muemu code for this example so don't copy paste

  3. #3
    Account Upgraded | Title Enabled! ponteleymon is offline
    MemberRank
    Jan 2013 Join Date
    276Posts

    re: [Help] Code C++

    Quote Originally Posted by muzic25 View Post
    Have you tried the gObjInventoryInsertItem function?

    Example:
    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);
                }
    Note: i not use muemu code for this example so don't copy paste
    Yes, there is such a function, but I have version 0.97 and am not sure what to drive.
    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/



Advertisement