Inventory Tabs System Problem

03/10/2012 12:32 dudesack#1
I've tried getting inventory tabs to work, using snippets from the source released by InteL
(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 
	{

	}
But sometimes I've had to use something like this because it not always let me use pItemBase, or was inappropriate to use(?)
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
    {

    }
And I've put some of these in too
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've used these in functions such as CMover CreateItem, InitCharacter and InitProp

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.
03/10/2012 21:06 max982#2
Well, i have the same problem
i tryed everything, and still the same
03/10/2012 21:41 Razzer'#3
The Tabbed Inventory of the RoC Source etc. wont work. There are some thing which are not finished. Go and Search for a c++ coder , in this forum are many of them.

lg
dergunga
03/11/2012 16:11 jtb1#4
why not try me to finish the tab inventory in LTD source code ?

2 problem -->
1) lost texture for inactive tab
2) If you trade with player the player 2 --> crashed neuz


[Only registered and activated users can see links. Click Here To Register...]

if you found how to fix mp me :)
03/11/2012 19:16 Razzer'#5
#report

Do not add from other Forums downloadlinks.
Lg
dergunga
03/11/2012 19:21 jtb1#6
1) is not a forum link but one server link

2) is a french source but i can't uplaud it now. because is only beta rev 5 LTD
03/12/2012 23:08 max982#7
i'm on flyff's source from 2 years ago so i dn't need to pay a coder because i'm already one
... but any help would be great.
03/12/2012 23:34 alfredico#8
Quote:
Originally Posted by max982 View Post
i'm on flyff's source from 2 years ago so i dn't need to pay a coder because i'm already one
... but any help would be great.
Sight* you are only a copy and paste leecher.
03/14/2012 15:12 max982#9
Quote:
Originally Posted by alfredico View Post
Sight* you are only a copy and paste leecher.
realy?
wasn't you one too?
1st,i'm not.
2nd, i have my own FlyFF's System ...
3rd, i have my own game coded in opengl :P
4th who you think you are?, everyone need help?
and no one told you to tell us if i'm a leecher or not.