Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Flyff > Flyff Private Server
You last visited: Today at 17:46

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



AFK Vendor Mails

Discussion on AFK Vendor Mails within the Flyff Private Server forum part of the Flyff category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jun 2019
Posts: 130
Received Thanks: 3
AFK Vendor Mails

Hello, I have this little problem. So when a player used AFK Vendor, and put amount of 1.5M Perins, and then they are off. The Mail only receive 200K perins. Any tips how to increase the maximum mail perins? Thank you.
LuciferMorningStar666 is offline  
Old 04/08/2020, 08:42   #2
 
Hyellow's Avatar
 
elite*gold: 0
Join Date: Feb 2020
Posts: 64
Received Thanks: 23
You can find the answer here:

Code:
BOOL CMover::AddGold(int nGold, BOOL bSend)
Hyellow is offline  
Old 04/08/2020, 18:28   #3
 
Ecrypter's Avatar
 
elite*gold: 0
Join Date: Aug 2014
Posts: 653
Received Thanks: 217
Quote:
Originally Posted by LuciferMorningStar666 View Post
Hello, I have this little problem. So when a player used AFK Vendor, and put amount of 1.5M Perins, and then they are off. The Mail only receive 200K perins. Any tips how to increase the maximum mail perins? Thank you.
what files you use?
Ecrypter is offline  
Old 04/08/2020, 19:08   #4
 
jericho2nd's Avatar
 
elite*gold: 0
Join Date: Jul 2015
Posts: 170
Received Thanks: 10
Code:
BOOL CMover::AddGold(int nGold, BOOL bSend)
{
	if (!IsValidObj(this))
		return FALSE;
	if (nGold == 0)
		return TRUE;

	__int64 i64Total = static_cast<__int64>(GetGold()) + static_cast<__int64>(nGold);

	if (i64Total > static_cast<__int64>(INT_MAX))
		i64Total = static_cast<__int64>(INT_MAX);
	else if (i64Total < 0)
		i64Total = 0;

	SetGold(static_cast<int>(i64Total));

	if (bSend)
	{
#ifdef __WORLDSERVER
		if (i64Total > INT_MAX)
			i64Total = INT_MAX;

		g_UserMng.AddSetPointParam(this, DST_GOLD, (int)i64Total);
#endif // __WORLDSERVER
}

	return TRUE;
}
jericho2nd is offline  
Thanks
1 User
Old 04/10/2020, 04:44   #5
 
Ecrypter's Avatar
 
elite*gold: 0
Join Date: Aug 2014
Posts: 653
Received Thanks: 217
Quote:
Originally Posted by LuciferMorningStar666 View Post
Hello, I have this little problem. So when a player used AFK Vendor, and put amount of 1.5M Perins, and then they are off. The Mail only receive 200K perins. Any tips how to increase the maximum mail perins? Thank you.
PHP Code:
BOOL CMover::AddGoldint nGoldBOOL bSend )
{
    if( 
nGold == )
        return 
TRUE;

//#ifdef __WORLDSERVER
//    if( m_vtInfo.TradeGetGold() != 0 )
//        return FALSE;
//#endif    // __WORLDSERVER

#ifdef __PERIN_BUY_BUG
    
__int64 i64Total static_cast<__int64>( GetGold() ) + static_cast<__int64>( nGold );
    
    if( 
i64Total static_cast<__int64>( INT_MAX ) )
        
i64Total static_cast<__int64>( INT_MAX );
    else if( 
i64Total )
        
i64Total 0;

    
SetGoldstatic_cast<int>( i64Total ) );
#else // __PERIN_BUY_BUG
    
int nTotal GetGold() + nGold;

    if( 
nGold )
    {
        if( 
nTotal )        // overflow?
            
nTotal INT_MAX;
    }
    else    
// nGold < 0
    
{
        if( 
nTotal )        // underflow?
        
{
//#ifdef __WORLDSERVER
//            Error( "AddGold: nTotal < 0" );
//#endif    // __WORLDSERVER
            
nTotal    0;
//            return FALSE;
        
}
    }

    
SetGoldnTotal );
#endif // __PERIN_BUY_BUG
    
    
if( bSend )
    {
    
#ifdef __WORLDSERVER
#ifdef __PERIN_BUY_BUG
        
g_UserMng.AddSetPointParamthisDST_GOLDstatic_cast<int>( i64Total ) );
#else // __PERIN_BUY_BUG
        
g_UserMng.AddSetPointParamthisDST_GOLDnTotal );
#endif // __PERIN_BUY_BUG
    #endif    // __WORLDSERVER
    
}

    return 
TRUE;

Ecrypter is offline  
Thanks
1 User
Old 04/10/2020, 06:26   #6
 
Hyellow's Avatar
 
elite*gold: 0
Join Date: Feb 2020
Posts: 64
Received Thanks: 23
Quote:
Originally Posted by Ecrypter View Post
PHP Code:
BOOL CMover::AddGoldint nGoldBOOL bSend )
{
    if( 
nGold == )
        return 
TRUE;

//#ifdef __WORLDSERVER
//    if( m_vtInfo.TradeGetGold() != 0 )
//        return FALSE;
//#endif    // __WORLDSERVER

#ifdef __PERIN_BUY_BUG
    
__int64 i64Total static_cast<__int64>( GetGold() ) + static_cast<__int64>( nGold );
    
    if( 
i64Total static_cast<__int64>( INT_MAX ) )
        
i64Total static_cast<__int64>( INT_MAX );
    else if( 
i64Total )
        
i64Total 0;

    
SetGoldstatic_cast<int>( i64Total ) );
#else // __PERIN_BUY_BUG
    
int nTotal GetGold() + nGold;

    if( 
nGold )
    {
        if( 
nTotal )        // overflow?
            
nTotal INT_MAX;
    }
    else    
// nGold < 0
    
{
        if( 
nTotal )        // underflow?
        
{
//#ifdef __WORLDSERVER
//            Error( "AddGold: nTotal < 0" );
//#endif    // __WORLDSERVER
            
nTotal    0;
//            return FALSE;
        
}
    }

    
SetGoldnTotal );
#endif // __PERIN_BUY_BUG
    
    
if( bSend )
    {
    
#ifdef __WORLDSERVER
#ifdef __PERIN_BUY_BUG
        
g_UserMng.AddSetPointParamthisDST_GOLDstatic_cast<int>( i64Total ) );
#else // __PERIN_BUY_BUG
        
g_UserMng.AddSetPointParamthisDST_GOLDnTotal );
#endif // __PERIN_BUY_BUG
    #endif    // __WORLDSERVER
    
}

    return 
TRUE;


Genius
Hyellow is offline  
Old 04/10/2020, 06:33   #7
 
elite*gold: 0
Join Date: Mar 2018
Posts: 155
Received Thanks: 54
Quote:
Originally Posted by Hyellow View Post
You can find the answer here:

Code:
BOOL CMover::AddGold(int nGold, BOOL bSend)
Genius
Tweeney is offline  
Old 04/10/2020, 09:08   #8
 
Hyellow's Avatar
 
elite*gold: 0
Join Date: Feb 2020
Posts: 64
Received Thanks: 23
Quote:
Originally Posted by Tweeney View Post
Genius
Thank you.
Hyellow is offline  
Reply


Similar Threads Similar Threads
[Selling] e-mails über e-mails
08/02/2013 - elite*gold Trading - 31 Replies
Hier verkaufe ich extrem billig e-mails. GÜNSTIGER GEHT NICHT AUF EPVP. Die e-mails sind alle von dem Anbieter usa.net. Und werden in diesem Format verkauft:[email protected]:1F1186AD51 Die Treasures werden regelmässig aufgefüllt, es können auch grössere Mengen gekauft werden nach absprache. Bei wunsch- mengen bitte eine pn oder per skype.
500 E-Mails für nur 5 EGold! | Echte E-Mails
11/19/2012 - elite*gold Trading - 6 Replies
http://i.epvpimg.com/8L4Yb.png Hey, wer möchte kann sich gerne eine Treasure kaufen. In der Treasure befindet sich a) 500 E-Mails b) ein Dankeschön E-Mails + Passwörter!



All times are GMT +1. The time now is 17:47.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.