[Request] Auto Perin Convert

05/07/2017 09:15 babyminion#1
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
05/08/2017 09:52 Ecrypter#2
Nice asking but the question is who is crazy man want to share that kind of awesome feature.
05/08/2017 16:36 KetchupSamurai#3
Quote:
Originally Posted by babyminion View Post
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..

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 );
}
05/08/2017 23:25 babyminion#4
Quote:
Originally Posted by KetchupSamurai View Post
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 );
}
sorry but where can i put this code sorry im just new about developing :) :handsdown::handsdown::handsdown:
05/09/2017 07:37 Kiseku#5
Quote:
Originally Posted by babyminion View Post
sorry but where can i put this code sorry im just new about developing :) :handsdown::handsdown::handsdown:
User.cpp
void CUser::AddGoldText( int nPlus )
05/09/2017 15:33 babyminion#6
Quote:
Originally Posted by Kiseku View Post
User.cpp
void CUser::AddGoldText( int nPlus )
Quote:
Originally Posted by KetchupSamurai View Post
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 );
}
Sad :( not working :(
i tryd to sell 9999suns
[Only registered and activated users can see links. Click Here To Register...]
and i receive some penya instead of perins :(
[Only registered and activated users can see links. Click Here To Register...]
05/09/2017 18:28 defaced-#7
Quote:
Originally Posted by babyminion View Post
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...]
I think it only works on penya drop.
05/09/2017 18:44 babyminion#8
yea maybe.