|
You last visited: Today at 17:46
Advertisement
AFK Vendor Mails
Discussion on AFK Vendor Mails within the Flyff Private Server forum part of the Flyff category.
03/20/2020, 06:51
|
#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.
|
|
|
04/08/2020, 08:42
|
#2
|
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)
|
|
|
04/08/2020, 18:28
|
#3
|
elite*gold: 0
Join Date: Aug 2014
Posts: 653
Received Thanks: 217
|
Quote:
Originally Posted by LuciferMorningStar666
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?
|
|
|
04/08/2020, 19:08
|
#4
|
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;
}
|
|
|
04/10/2020, 04:44
|
#5
|
elite*gold: 0
Join Date: Aug 2014
Posts: 653
Received Thanks: 217
|
Quote:
Originally Posted by LuciferMorningStar666
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::AddGold( int nGold, BOOL bSend )
{
if( nGold == 0 )
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 < 0 )
i64Total = 0;
SetGold( static_cast<int>( i64Total ) );
#else // __PERIN_BUY_BUG
int nTotal = GetGold() + nGold;
if( nGold > 0 )
{
if( nTotal < 0 ) // overflow?
nTotal = INT_MAX;
}
else // nGold < 0
{
if( nTotal < 0 ) // underflow?
{
//#ifdef __WORLDSERVER
// Error( "AddGold: nTotal < 0" );
//#endif // __WORLDSERVER
nTotal = 0;
// return FALSE;
}
}
SetGold( nTotal );
#endif // __PERIN_BUY_BUG
if( bSend )
{
#ifdef __WORLDSERVER
#ifdef __PERIN_BUY_BUG
g_UserMng.AddSetPointParam( this, DST_GOLD, static_cast<int>( i64Total ) );
#else // __PERIN_BUY_BUG
g_UserMng.AddSetPointParam( this, DST_GOLD, nTotal );
#endif // __PERIN_BUY_BUG
#endif // __WORLDSERVER
}
return TRUE;
}
|
|
|
04/10/2020, 06:26
|
#6
|
elite*gold: 0
Join Date: Feb 2020
Posts: 64
Received Thanks: 23
|
Quote:
Originally Posted by Ecrypter
PHP Code:
BOOL CMover::AddGold( int nGold, BOOL bSend )
{
if( nGold == 0 )
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 < 0 )
i64Total = 0;
SetGold( static_cast<int>( i64Total ) );
#else // __PERIN_BUY_BUG
int nTotal = GetGold() + nGold;
if( nGold > 0 )
{
if( nTotal < 0 ) // overflow?
nTotal = INT_MAX;
}
else // nGold < 0
{
if( nTotal < 0 ) // underflow?
{
//#ifdef __WORLDSERVER
// Error( "AddGold: nTotal < 0" );
//#endif // __WORLDSERVER
nTotal = 0;
// return FALSE;
}
}
SetGold( nTotal );
#endif // __PERIN_BUY_BUG
if( bSend )
{
#ifdef __WORLDSERVER
#ifdef __PERIN_BUY_BUG
g_UserMng.AddSetPointParam( this, DST_GOLD, static_cast<int>( i64Total ) );
#else // __PERIN_BUY_BUG
g_UserMng.AddSetPointParam( this, DST_GOLD, nTotal );
#endif // __PERIN_BUY_BUG
#endif // __WORLDSERVER
}
return TRUE;
}
|
  
Genius  
|
|
|
04/10/2020, 06:33
|
#7
|
elite*gold: 0
Join Date: Mar 2018
Posts: 155
Received Thanks: 54
|
Quote:
Originally Posted by Hyellow
You can find the answer here:
Code:
BOOL CMover::AddGold(int nGold, BOOL bSend)
|
Genius   
|
|
|
04/10/2020, 09:08
|
#8
|
elite*gold: 0
Join Date: Feb 2020
Posts: 64
Received Thanks: 23
|
Quote:
Originally Posted by Tweeney
|
Thank you.
|
|
|
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.
|
|