Custom currency

09/01/2015 04:44 sonbaotvk#1
How to add new custom currency in flyff ? ( use in vendor and premium shop)
09/01/2015 04:51 Cloud'#2
Get it from GOW
09/04/2015 09:58 sonbaotvk#3
i coppy full __EXTENDED_CURRENCY from GOW source but can't complie source , help me pls
09/04/2015 14:01 Flogolo#4
check the errors and fix the values that doesnt fit
09/04/2015 15:38 Lumi#5
Explain us your problem, please.
09/20/2015 21:27 sonbaotvk#6
\Source\_Interface\WndVendorBuy.cpp(201): warning C4018: '<' : signed/unsigned mismatch

Quote:
#ifdef __EXTENDED_CURRENCY
if( m_pItemBase->m_nBuyMode == 6 && g_pPlayer->m_Inventory.GetItemCount( II_CHIP_DONATE ) < ((CItemElem*)m_pItemBase)->m_nCost * nBufNum )
{
g_WndMng.OpenMessageBox( _T( prj.GetText(TID_GAME_LACKMONEY)), MB_OK, this );
return TRUE;
}
else
if( m_pItemBase->m_nBuyMode == 5 && g_pPlayer->m_Inventory.GetItemCount( II_CHIP_LIGHT ) < ((CItemElem*)m_pItemBase)->m_nCost * nBufNum )
{
g_WndMng.OpenMessageBox( _T( prj.GetText(TID_GAME_LACKMONEY)), MB_OK, this );
return TRUE;
}
else
if( m_pItemBase->m_nBuyMode == 4 && g_pPlayer->m_Inventory.GetItemCount( II_CHIP_FARM ) < ((CItemElem*)m_pItemBase)->m_nCost * nBufNum )
{
g_WndMng.OpenMessageBox( _T( prj.GetText(TID_GAME_LACKMONEY)), MB_OK, this );
return TRUE;
}
#endif // __EXTENDED_CURRENCY
09/20/2015 21:32 NewMoonx#7
A warning after source compiling is not the reason for a failure. There must be really named errors in this output box.
09/20/2015 22:02 sonbaotvk#8
fixed

Complie source ok , how to active in game ?
09/21/2015 02:39 Ecrypter#9
there is a warning in this part.,

PHP Code:
#ifdef __EXTENDED_CURRENCY
if( m_pItemBase->m_nBuyMode == && g_pPlayer->m_Inventory.GetItemCountII_CHIP_DONATE ) < ((CItemElem*)m_pItemBase)->m_nCost nBufNum )
{
g_WndMng.OpenMessageBox_Tprj.GetText(TID_GAME_LACKMONEY)), MB_OKthis );
return 
TRUE
}
else
if( 
m_pItemBase->m_nBuyMode == && g_pPlayer->m_Inventory.GetItemCountII_CHIP_LIGHT ) < ((CItemElem*)m_pItemBase)->m_nCost nBufNum )
{
g_WndMng.OpenMessageBox_Tprj.GetText(TID_GAME_LACKMONEY)), MB_OKthis );
return 
TRUE
}
else
if( 
m_pItemBase->m_nBuyMode == && g_pPlayer->m_Inventory.GetItemCountII_CHIP_FARM ) < ((CItemElem*)m_pItemBase)->m_nCost nBufNum )
{
g_WndMng.OpenMessageBox_Tprj.GetText(TID_GAME_LACKMONEY)), MB_OKthis );
return 
TRUE
}
#endif // __EXTENDED_CURRENCY 
what is the right code on this part., also in the chip_playershop.

they can cause neuz crush when we closed the privateshop of the players..,

thnx in advance
09/21/2015 06:22 sonbaotvk#10
(DWORD)((CItemElem*)
09/28/2015 07:35 Ecrypter#11
Quote:
Originally Posted by sonbaotvk View Post
(DWORD)((CItemElem*)


Where we can fix that neuz crash win we closed the privateshop?