Money more than 2.1B ???

Results 1 to 4 of 4
  1. #1
    Member trikialaa is offline
    MemberRank
    Apr 2012 Join Date
    Sfax, TunisiaLocation
    66Posts

    big grin Money more than 2.1B ???

    Hello everyone,
    I saw this post:
    Quote Originally Posted by IManuelI96 View Post
    Hi is my first Post
    First in Source

    Code:
    Firts Open User.cpp and Search
    
    
    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 );
    }
    And Remplace for
    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 );
    
    	if( GetGold() > 2100000000 &&  this->m_Inventory.GetEmptyCount() == 0 && CMover::GetPerinNum() > 0 )
    	{
    		CItemElem pItem;
    		pItem.m_nItemNum = CMover::GetPerinNum() + 21;
    		pItem.m_bCharged = TRUE;
    		pItem.m_dwItemId = II_SYS_SYS_SCR_PERIN;
    		BYTE nID;
    		CMover::RemovePerin( CMover::GetPerinNum() );
    		CreateItem( &pItem, &nID );
    		AddGold( -2100000000 );
    		AddDefinedText( TID_GAME_MAKEPERIN );
    	}
    	else if (GetGold() > 2100000000 &&  this->m_Inventory.GetEmptyCount() > 0 && CMover::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 (GetGold() > 2100000000 &&  this->m_Inventory.GetEmptyCount() > 0 && CMover::GetPerinNum() > 1)
    	{
    		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 (GetGold() > 2100000000 &&  this->m_Inventory.GetEmptyCount() == 0 && CMover::GetPerinNum() == 0)
    	{
    		AddDefinedText( TID_GAME_MAKEPERIN_FAILURE );
    	}
    
    	AddDefinedText( TID_GAME_REAPMONEY, "%s %s", strPlus, strGold );
    
    }
    Ok now in Resource
    Code:
    First Open definetext.h and add
    
    Code:
    #define TID_GAME_MAKEPERIN	 4702
    #define TID_GAME_MAKEPERIN_FAILURE	 4703
    now open textClient.inc and add
    Code:
    TID_GAME_MAKEPERIN	0xffbb00
    {
    	IDS_TEXTCLIENT_INC_100000
    }
    TID_GAME_MAKEPERIN_FAILURE	0xff0000
    {
    	IDS_TEXTCLIENT_INC_100001
    
    
    }
    And finally open textClient.txt.txt and add
    Code:
    IDS_TEXTCLIENT_INC_100000	21 perins have been created, penya has been reduced of your money.
    IDS_TEXTCLIENT_INC_100001	the perins not been able to create, Please check your inventory / Penya deducted when your inventory, place, or perin“s stack is available. There is a  output message when the Perins were created, or a (red) output message when there is no room in the inventory
    Congratulation! you now have auto make perin in yours flyff any question comment in post and Sorry for my bad english ;)
    Credits by Yakuzai
    Attachment 106450
    It allows to integrate the perin auto-drop in the source of the flyff server
    If I change the values "21" and "2100000000" by "99" and "9999999999" coud I have more than 2.1B of penyas ???
    Last edited by trikialaa; 16-06-12 at 06:11 PM. Reason: Title changed


  2. #2
    One word! Im Fawkin Pro! Xakzi is offline
    MemberRank
    Jul 2010 Join Date
    SwedenLocation
    1,356Posts

    Re: Money more than 2.1B ???

    1 perin = 100,000 Penya..
    so yes.. you can have as much perins as you want.. but there is a limit to how many penya you can get..

  3. #3
    Flyff Developer ShadowDragon is offline
    MemberRank
    Apr 2009 Join Date
    1,915Posts

    Re: Money more than 2.1B ???

    You completely misunderstood his question Xakzi. He's asking if changing those values in the auto perin thing, would allow you to have more than 2.1b penya in your inventory...

    And the answer to that is no. Increasing penya limit is far more complicated than that.

  4. #4
    Valued Member yarinil is offline
    MemberRank
    Sep 2008 Join Date
    EverywhereLocation
    114Posts

    Re: Money more than 2.1B ???

    I guess the Penya stays at 2.1bill cause its an Int32, he have to change it to INT64 so it will increase the maximum Penya amount.



Advertisement