Possible errors and fixes

error: ‘MAX_ITEM_STACK’ was not declared in this scope

Explaination:

    MAX_ITEM_STACK -> Is the max stack on your server also known as ITEM_MAX_COUNT

Fix:

    #define MAX_ITEM_STACK 200

or

    replace MAX_ITEM_STACK with your max stack define

error: uiitemshop.py banner & custom icons not visible

Fix:

    Change path in uiitemshop.py from root/itemshop to itemshop/

error: Disconnect on buyitem or promotioncode redeem

Fix:

    Check your headers in packet.h

error: Auth-crash after ‘/reload i’ command

Fix:

Search:

	for (TPeerList::iterator i = m_peerList.begin(); i != m_peerList.end(); ++i)
	{
		CPeer* tmp = *i;

		if (!tmp->GetChannel())
			continue;

		tmp->EncodeHeader(HEADER_DG_RELOAD_ITEMSHOP, 0,
			sizeof(WORD) + sizeof(WORD) +
			sizeof(TItemshopCategoryTable) * m_iItemshopTableCategorySize +
			sizeof(TItemshopItemTable) * m_iItemshopTableItemSize
		);

		tmp->Encode(&m_iItemshopTableCategorySize, sizeof(WORD));
		tmp->Encode(&m_iItemshopTableItemSize, sizeof(WORD));
		tmp->Encode(m_pItemshopTableCategories, sizeof(TItemshopCategoryTable) * m_iItemshopTableCategorySize);
		tmp->Encode(m_pItemshopTableItems, sizeof(TItemshopItemTable) * m_iItemshopTableItemSize);
	}

Replace with:

	for (TPeerList::iterator i = m_peerList.begin(); i != m_peerList.end(); ++i)
	{
		CPeer* tmp = *i;

		if (!tmp->GetChannel() || tmp == m_pkAuthPeer)
			continue;

		tmp->EncodeHeader(HEADER_DG_RELOAD_ITEMSHOP, 0,
			sizeof(WORD) + sizeof(WORD) +
			sizeof(TItemshopCategoryTable) * m_iItemshopTableCategorySize +
			sizeof(TItemshopItemTable) * m_iItemshopTableItemSize
		);

		tmp->Encode(&m_iItemshopTableCategorySize, sizeof(WORD));
		tmp->Encode(&m_iItemshopTableItemSize, sizeof(WORD));
		tmp->Encode(m_pItemshopTableCategories, sizeof(TItemshopCategoryTable) * m_iItemshopTableCategorySize);
		tmp->Encode(m_pItemshopTableItems, sizeof(TItemshopItemTable) * m_iItemshopTableItemSize);
	}