Jump to content

Fix - When you Open Box the Items won't Stack

Recommended Posts



char_item.cpp - CHARACTER::AutoGiveItem

Search for:  if (item->GetType() == ITEM_BLEND)


Replace the whole selection with:


if (item->IsStackable())
    for (int i=0; i < INVENTORY_MAX_NUM; i++)
        LPITEM inv_item = GetInventoryItem(i);

        if (inv_item == NULL) 

        if (inv_item->GetVnum() == item->GetVnum())
            if (inv_item->GetSocket(0) == item->GetSocket(0) &&
                    inv_item->GetSocket(1) == item->GetSocket(1) &&
                    inv_item->GetSocket(2) == item->GetSocket(2) &&
                    inv_item->GetCount() < ITEM_MAX_COUNT)
                inv_item->SetCount(inv_item->GetCount() + item->GetCount());
                return inv_item;


Author: @systemdev93 (Back to the past)

  • Love 3
Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



Chatroom Rules


Join our Discord

A request for help = Shoutbox Ban

Be respectful & Respect the rules


  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.