Hey guys!
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
Step 2:
search here: ProjectCmn.h(_Common)
this: MAX_VENDOR_INVENTORY
you will find this:
change that to:
most people when they want to change the slots are just changing one thing like that: MAX_VENDOR_INVENTORY 100 but if you change only this then your neuz leads to a crash if your vendor shop has more as 100 items and you open it. A fix with this is step 3.
Step 3:
search here: WndItemCtrl.h(_Interface)
this: m_pArrayItemElem
you will find this:
change that to:
now you can compile and add more items to an npc shop without crash.
greez, stevyboy.
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.