(apparently the snippets are from the DITS source) and they show up but not quite work.
The tabs show up but the items are not filtered into them propperly; everything goes either
into the main one OR the equipment slots, so I've tried replicating this code to make it work
with other functions that seemed to be related to inserting items into the inventory (in Mover.cpp):
Sometimes I've used this...
Code:
if (pItemBase->GetProp()->dwItemKind2 == IK2_CLOTHETC || pItemBase->GetProp()->dwItemKind2 == IK2_CLOTH) { } else if (pItemBase->GetProp()->dwItemKind3 == IK3_PET || pItemBase->GetProp()->dwItemKind3 == IK3_EGG || pItemBase->GetProp()->dwItemKind3 == IK3_FEED) { } else if(pItemBase->GetProp()->dwItemKind2 == IK2_GEM ) { } else { }
Code:
if ( ((ItemProp*)m_Inventory2.GetAtId(IK2_CLOTH) || (ItemProp*)m_Inventory2.GetAtId(IK2_CLOTHETC) )== FALSE) { } else if (( (ItemProp*)m_Inventory3.GetAtId(IK3_PET) || (ItemProp*)m_Inventory3.GetAtId(IK3_EGG) || (ItemProp*)m_Inventory3.GetAtId(IK3_FEED) ) == FALSE) { } else if ( (ItemProp*)m_Inventory4.GetAtId(IK2_GEM) == FALSE) { } else { }
Code:
m_Inventory.SetItemContainer( ITYPE_ITEM, MAX_INVENTORY, PARTS_CLOAK2+1 ); m_Inventory2.SetItemContainer( ITYPE_ITEM, MAX_INVENTORY ); m_Inventory3.SetItemContainer( ITYPE_ITEM, MAX_INVENTORY ); m_Inventory4.SetItemContainer( ITYPE_ITEM, MAX_INVENTORY );
I have also found some AddItem functions in Obj.cpp (Network) but i'm not sure if that
has anything to do with it... I've tried modifying that but it didn't change anything...
In fact, I'm not even sure if I know what I'm doing with this anymore.
There was this other help thread about it, but the guy seemed to have a slightly different problem than me.
You see, I'm not so bright and I'm still pretty new to C++ with a very basic knowledge, but I feel like I've
tried everything, spending almost 3 whole days on this, so I would REALLY appreciate any pointers what should I do,
where should I go with this or even some helpful snippets.
Thanks.