Many people know that you can only add a maximum of 100 items to an NPC shop,
here I will quickly explain how to increase it.
Example for 150 instead of 100 items for an npc shop
Step 1:
add "__MORE_VENDOR_INVENTORY 150" to your commons
Code:
#define __MORE_VENDOR_INVENTORY 150
Step 2:
search here: ProjectCmn.h(_Common)
this: MAX_VENDOR_INVENTORY
you will find this:
Code:
#define MAX_VENDOR_INVENTORY 100
Code:
#ifndef __MORE_VENDOR_INVENTORY #define MAX_VENDOR_INVENTORY 100 #endif // __MORE_VENDOR_INVENTORY
Step 3:
search here: WndItemCtrl.h(_Interface)
this: m_pArrayItemElem
you will find this:
Code:
CItemElem* m_pArrayItemElem[100];
Code:
#ifdef __MORE_VENDOR_INVENTORY CItemElem* m_pArrayItemElem[__MORE_VENDOR_INVENTORY]; #else // __MORE_VENDOR_INVENTORY CItemElem* m_pArrayItemElem[100]; #endif // __MORE_VENDOR_INVENTORY
greez, stevyboy.






