Hi epvp! i would like to ask if theres a code for Auto Perin convert? once i sell item more than 100m and when i reach the maximum capacity of the penya it will automatically converted to perin? help please thanks! sorry for my bad english
Needs work, credits to whoever the original author of this was. Google is your friend..Quote:
Hi epvp! i would like to ask if theres a code for Auto Perin convert? once i sell item more than 100m and when i reach the maximum capacity of the penya it will automatically converted to perin? help please thanks! sorry for my bad english
void CUser::AddGoldText( int nPlus )
{
char szPlus[64];
char szGold[64];
sprintf( szPlus, "%d", nPlus );
sprintf( szGold, "%d", GetGold() );
CString strPlus = GetNumberFormatEx( szPlus );
CString strGold = GetNumberFormatEx( szGold );
//AddDefinedText( TID_GAME_REAPMONEY, "%s %s", strPlus, strGold );
if( GetGold() > 2100000000 )
{
if( m_Inventory.GetEmptyCount() == 0 && GetPerinNum() > 0 )
{
CItemElem* pItem = m_Inventory.GetAtItemId( II_SYS_SYS_SCR_PERIN );
pItem.m_nItemNum += 21;
AddGold( -2100000000 );
AddDefinedText( TID_GAME_MAKEPERIN );
}
else if ( m_Inventory.GetEmptyCount() > 0 && GetPerinNum() >= 0)
{
CItemElem pItem;
pItem.m_nItemNum = 21;
pItem.m_bCharged = TRUE;
pItem.m_dwItemId = II_SYS_SYS_SCR_PERIN;
BYTE nID;
CreateItem( &pItem, &nID );
AddGold( -2100000000 );
AddDefinedText( TID_GAME_MAKEPERIN );
}
else if ( m_Inventory.GetEmptyCount() == 0 && GetPerinNum() == 0)
{
AddDefinedText( TID_GAME_MAKEPERIN_FAILURE );
}
}
AddDefinedText( TID_GAME_REAPMONEY, "%s %s", strPlus, strGold );
}
sorry but where can i put this code sorry im just new about developing :) :handsdown::handsdown::handsdown:Quote:
Needs work, credits to whoever the original author of this was. Google is your friend..
Code:void CUser::AddGoldText( int nPlus ) { char szPlus[64]; char szGold[64]; sprintf( szPlus, "%d", nPlus ); sprintf( szGold, "%d", GetGold() ); CString strPlus = GetNumberFormatEx( szPlus ); CString strGold = GetNumberFormatEx( szGold ); //AddDefinedText( TID_GAME_REAPMONEY, "%s %s", strPlus, strGold ); if( GetGold() > 2100000000 ) { if( m_Inventory.GetEmptyCount() == 0 && GetPerinNum() > 0 ) { CItemElem* pItem = m_Inventory.GetAtItemId( II_SYS_SYS_SCR_PERIN ); pItem.m_nItemNum += 21; AddGold( -2100000000 ); AddDefinedText( TID_GAME_MAKEPERIN ); } else if ( m_Inventory.GetEmptyCount() > 0 && GetPerinNum() >= 0) { CItemElem pItem; pItem.m_nItemNum = 21; pItem.m_bCharged = TRUE; pItem.m_dwItemId = II_SYS_SYS_SCR_PERIN; BYTE nID; CreateItem( &pItem, &nID ); AddGold( -2100000000 ); AddDefinedText( TID_GAME_MAKEPERIN ); } else if ( m_Inventory.GetEmptyCount() == 0 && GetPerinNum() == 0) { AddDefinedText( TID_GAME_MAKEPERIN_FAILURE ); } } AddDefinedText( TID_GAME_REAPMONEY, "%s %s", strPlus, strGold ); }
Quote:
User.cpp
void CUser::AddGoldText( int nPlus )
Sad :( not working :(Quote:
Needs work, credits to whoever the original author of this was. Google is your friend..
Code:void CUser::AddGoldText( int nPlus ) { char szPlus[64]; char szGold[64]; sprintf( szPlus, "%d", nPlus ); sprintf( szGold, "%d", GetGold() ); CString strPlus = GetNumberFormatEx( szPlus ); CString strGold = GetNumberFormatEx( szGold ); //AddDefinedText( TID_GAME_REAPMONEY, "%s %s", strPlus, strGold ); if( GetGold() > 2100000000 ) { if( m_Inventory.GetEmptyCount() == 0 && GetPerinNum() > 0 ) { CItemElem* pItem = m_Inventory.GetAtItemId( II_SYS_SYS_SCR_PERIN ); pItem.m_nItemNum += 21; AddGold( -2100000000 ); AddDefinedText( TID_GAME_MAKEPERIN ); } else if ( m_Inventory.GetEmptyCount() > 0 && GetPerinNum() >= 0) { CItemElem pItem; pItem.m_nItemNum = 21; pItem.m_bCharged = TRUE; pItem.m_dwItemId = II_SYS_SYS_SCR_PERIN; BYTE nID; CreateItem( &pItem, &nID ); AddGold( -2100000000 ); AddDefinedText( TID_GAME_MAKEPERIN ); } else if ( m_Inventory.GetEmptyCount() == 0 && GetPerinNum() == 0) { AddDefinedText( TID_GAME_MAKEPERIN_FAILURE ); } } AddDefinedText( TID_GAME_REAPMONEY, "%s %s", strPlus, strGold ); }
I think it only works on penya drop.Quote:
Sad :( not working :(
i tryd to sell 9999suns
and i receive some penya instead of perins :(
[Only registered and activated users can see links. Click Here To Register...]