DB Item Save Questions

01/05/2013 00:03 WinterWave#1
Hello,

I have a question, I have an item in my inventory save in db, if I delete the spec_item line and cie (mdldyna etc..) but I don't touch the ID in defineItem, it's going to bug my char and my db or not ?

Thanks. :)
01/05/2013 00:10 Mognakor#2
You'll sure get some kind of bug, most probably you'll even crash the Worldserver as it tries to handle an item it has no data about.
01/05/2013 00:32 Jopsi332#3
just make in if while reading inventory like

Code:
int CDbManager::GetOneItem( CItemElem* pItemElem, char* pstrItem, int *pLocation )
{
	int IndexItem		= 0;
	IndexItem	= GetIntPaFromStr( pstrItem, pLocation );
	pItemElem->m_dwItemId	= (DWORD)GetIntPaFromStr( pstrItem, pLocation );
Code:
ItemProp pProp = prj.GetItemProp(pItemElem->m_dwItemId);
if(!pProp)
pItemElem->m_dwItemId = NULL_ID;
01/05/2013 00:35 WinterWave#4
Thanks for all, problem solved.