Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Green suits effects (4\4) show up twice.

Initiate Mage
Joined
Jul 27, 2018
Messages
72
Reaction score
5
I just noticed that today, But the effect's on the greens suits and Earrings are showing up twice.
Have no clue how to fix it or what cause it, The problem of course is not found in google..
And i was exploring resource, I found nothing to indicate this problem...
Any idea how to fix it? :

makore11 - Green suits effects (4\4) show up twice. - RaGEZONE Forums

 
Last edited:
Skilled Illusionist
Joined
May 11, 2011
Messages
316
Reaction score
28
what files did you use?

double check your propItemEtc.inc
i think you double the set

next time better picture. very bad quality!
 
Initiate Mage
Joined
Jul 27, 2018
Messages
72
Reaction score
5
what files did you use?

double check your propItemEtc.inc
i think you double the set

next time better picture. very bad quality!
Hi thanks for respodnig, yeah i know the quality of the photo is bad sorry for that..
Im using tottemia v19 files, i checked the propItemEtc but nothing is doubled. It show up in every green suits in the game, jewelry sets and some specific cs fashion suit (Wise Dragon).

EDIT: Heres a better look at the problem , In the wiki system the effects show up once and not twice.

 
Last edited:
Initiate Mage
Joined
Sep 8, 2011
Messages
67
Reaction score
252
Look at the tooltip code where it makes the tooltip text in WndManager.cpp it's probably double placed or placed in one of the functions

 
Initiate Mage
Joined
Jul 27, 2018
Messages
72
Reaction score
5
Look at the tooltip code where it makes the tooltip text in WndManager.cpp it's probably double placed or placed in one of the functions
Can you tell me please what i should look for in WndManager.cpp?
I was taking a look at it ,I didn't find anything that can point out the problem .. :\
 
Inactive
Joined
Jan 20, 2009
Messages
1,015
Reaction score
1,830
Can you tell me please what i should look for in WndManager.cpp?
I was taking a look at it ,I didn't find anything that can point out the problem .. :\

He already told you where lol.

In the tooltip section of WndManager.cpp

Take another look and try to make an effort.
 
Initiate Mage
Joined
Jul 27, 2018
Messages
72
Reaction score
5
He already told you where lol.

In the tooltip section of WndManager.cpp

Take another look and try to make an effort.
My question was what exactly i shoulde look for?
Whats define the full sets option? TID_TOOLTIP_SET?
Anyway , i'll try to work this out , thanks :thumbup:.
 
Inactive
Joined
Jan 20, 2009
Messages
1,015
Reaction score
1,830
My question was what exactly i shoulde look for?
Whats define the full sets option? TID_TOOLTIP_SET?
Anyway , i'll try to work this out , thanks :thumbup:.

He literally gave you the answer lol, but here it is spoonfed.
CWndMgr::PutToolTip_Item
 
Inactive
Joined
Jan 20, 2009
Messages
1,015
Reaction score
1,830

Issue is in the tooltip and it's due to the wiki system.

PutSetItemOpt( pMover, pItemElem, &strEdit );

^ is added twice, so you need to remove the second one.

Code:
#ifdef __WIKI
	if( flag == APP_WIKI )
	{
		CString strTemp;
		CSetItem* pSetItem	= CSetItemFinder::GetInstance()->GetSetItemByItemId( pItemElem->m_dwItemId );
		if( pSetItem )
		{
			ITEMAVAIL itemAvail;
			memset( &itemAvail, 0, sizeof(itemAvail) );
			pSetItem->GetItemAvail( &itemAvail, pSetItem->m_nElemSize, TRUE );
			for( int i = 0; i < itemAvail.nSize; i++ )
			{
				int nDst = (int)itemAvail.anDstParam[i];
				int nAdj = (int)itemAvail.anAdjParam[i];
				
				if( IsDst_Rate(nDst) )
				{
					if( nDst == DST_ATTACKSPEED )
						strTemp.Format( "\n%s: %s% +d%%", prj.GetText(TID_TOOLTIP_SET), FindDstString( nDst ), nAdj / 2 / 10 );	
					else
						strTemp.Format( "\n%s: %s% +d%%", prj.GetText(TID_TOOLTIP_SET), FindDstString( nDst ), nAdj );	
				}
				else
				{
					strTemp.Format( "\n%s: %s +%d", prj.GetText(TID_TOOLTIP_SET), FindDstString( nDst ), nAdj );
				}
				strEdit.AddString( strTemp, dwItemColor[g_Option.m_nToolTipText].dwSetEffect );
			}
		}
	}
	else
#endif
	{
		PutSetItemOpt( pMover, pItemElem, &strEdit );
	}
	PutSetItemOpt( pMover, pItemElem, &strEdit );

to

Code:
#ifdef __WIKI
	if( flag == APP_WIKI )
	{
		CString strTemp;
		CSetItem* pSetItem	= CSetItemFinder::GetInstance()->GetSetItemByItemId( pItemElem->m_dwItemId );
		if( pSetItem )
		{
			ITEMAVAIL itemAvail;
			memset( &itemAvail, 0, sizeof(itemAvail) );
			pSetItem->GetItemAvail( &itemAvail, pSetItem->m_nElemSize, TRUE );
			for( int i = 0; i < itemAvail.nSize; i++ )
			{
				int nDst = (int)itemAvail.anDstParam[i];
				int nAdj = (int)itemAvail.anAdjParam[i];
				
				if( IsDst_Rate(nDst) )
				{
					if( nDst == DST_ATTACKSPEED )
						strTemp.Format( "\n%s: %s% +d%%", prj.GetText(TID_TOOLTIP_SET), FindDstString( nDst ), nAdj / 2 / 10 );	
					else
						strTemp.Format( "\n%s: %s% +d%%", prj.GetText(TID_TOOLTIP_SET), FindDstString( nDst ), nAdj );	
				}
				else
				{
					strTemp.Format( "\n%s: %s +%d", prj.GetText(TID_TOOLTIP_SET), FindDstString( nDst ), nAdj );
				}
				strEdit.AddString( strTemp, dwItemColor[g_Option.m_nToolTipText].dwSetEffect );
			}
		}
	}
	else
#endif
	{
		PutSetItemOpt( pMover, pItemElem, &strEdit );
	}
 
Initiate Mage
Joined
Jul 27, 2018
Messages
72
Reaction score
5
Issue is in the tooltip and it's due to the wiki system.

PutSetItemOpt( pMover, pItemElem, &strEdit );

^ is added twice, so you need to remove the second one.

Code:
#ifdef __WIKI
    if( flag == APP_WIKI )
    {
        CString strTemp;
        CSetItem* pSetItem    = CSetItemFinder::GetInstance()->GetSetItemByItemId( pItemElem->m_dwItemId );
        if( pSetItem )
        {
            ITEMAVAIL itemAvail;
            memset( &itemAvail, 0, sizeof(itemAvail) );
            pSetItem->GetItemAvail( &itemAvail, pSetItem->m_nElemSize, TRUE );
            for( int i = 0; i < itemAvail.nSize; i++ )
            {
                int nDst = (int)itemAvail.anDstParam[i];
                int nAdj = (int)itemAvail.anAdjParam[i];
                
                if( IsDst_Rate(nDst) )
                {
                    if( nDst == DST_ATTACKSPEED )
                        strTemp.Format( "\n%s: %s% +d%%", prj.GetText(TID_TOOLTIP_SET), FindDstString( nDst ), nAdj / 2 / 10 );    
                    else
                        strTemp.Format( "\n%s: %s% +d%%", prj.GetText(TID_TOOLTIP_SET), FindDstString( nDst ), nAdj );    
                }
                else
                {
                    strTemp.Format( "\n%s: %s +%d", prj.GetText(TID_TOOLTIP_SET), FindDstString( nDst ), nAdj );
                }
                strEdit.AddString( strTemp, dwItemColor[g_Option.m_nToolTipText].dwSetEffect );
            }
        }
    }
    else
#endif
    {
        PutSetItemOpt( pMover, pItemElem, &strEdit );
    }
    PutSetItemOpt( pMover, pItemElem, &strEdit );

to

Code:
#ifdef __WIKI
    if( flag == APP_WIKI )
    {
        CString strTemp;
        CSetItem* pSetItem    = CSetItemFinder::GetInstance()->GetSetItemByItemId( pItemElem->m_dwItemId );
        if( pSetItem )
        {
            ITEMAVAIL itemAvail;
            memset( &itemAvail, 0, sizeof(itemAvail) );
            pSetItem->GetItemAvail( &itemAvail, pSetItem->m_nElemSize, TRUE );
            for( int i = 0; i < itemAvail.nSize; i++ )
            {
                int nDst = (int)itemAvail.anDstParam[i];
                int nAdj = (int)itemAvail.anAdjParam[i];
                
                if( IsDst_Rate(nDst) )
                {
                    if( nDst == DST_ATTACKSPEED )
                        strTemp.Format( "\n%s: %s% +d%%", prj.GetText(TID_TOOLTIP_SET), FindDstString( nDst ), nAdj / 2 / 10 );    
                    else
                        strTemp.Format( "\n%s: %s% +d%%", prj.GetText(TID_TOOLTIP_SET), FindDstString( nDst ), nAdj );    
                }
                else
                {
                    strTemp.Format( "\n%s: %s +%d", prj.GetText(TID_TOOLTIP_SET), FindDstString( nDst ), nAdj );
                }
                strEdit.AddString( strTemp, dwItemColor[g_Option.m_nToolTipText].dwSetEffect );
            }
        }
    }
    else
#endif
    {
        PutSetItemOpt( pMover, pItemElem, &strEdit );
    }
Fixed! thank youu !
I really appreciate it man , thank you :):
 
Back
Top