[Requst] Stop Exp Scroll

02/17/2018 15:28 aoyamananami#1
Hello does anyone of you have a source code for Stop exp scroll?
02/20/2018 19:14 jericho2nd#2
Try ARMA Files.
02/20/2018 20:39 - DK#3
Quote:
Originally Posted by jericho2nd View Post
Try ARMA Files.
Its work only in Illumine Fliles :) and its work fine :)

EXP STOP Command:

Define in VersionCommon Neuz and World
Code:
#define __EXP_STOP
in authorization.h
post this
Code:
#ifdef __EXP_STOP
#define MODE_EXPUP_STOP			(DWORD)0x00040000		
#endif
under this:
Code:
#define	EQUIP_DENIAL_MODE		(DWORD)0x00020000
Go in Mover.cpp
Look in int CMover::SubExperience( CMover *pDead ) for this:
Code:
#else	// __WORLDSERVER
	EXPFLOAT fExpValue	= static_cast<EXPFLOAT>( pMoverProp->nExpValue );
	float	fFxpValue	= pMoverProp->nFxpValue;
#endif	// __WORLDSERVER
and post below this, this:
Code:
#ifdef __EXP_STOP
	if (IsAuthHigher(AUTH_ADMINISTRATOR))	// ¿î¿µÀÚ °èÁ¤À϶§
	{
		if (IsMode(MODE_EXPUP_STOP))			// °æÇèÄ¡ »ó½Â ±ÝÁö »óŸé
			fExpValue = 0;						// °æÇèÄ¡°ª 0
	}
#endif
Then go in MoverParam.cpp and look in BOOL CMover::AddExperience( EXPINTEGER nExp, BOOL bFirstCall, BOOL bMultiPly, BOOL bMonster ) for this :
Code:
{
#ifdef __VTN_TIMELIMIT
	//	mulcom	BEGIN100315	º£Æ®³² ½Ã°£ Á¦ÇÑ
	if( ::GetLanguage() == LANG_VTN )
	{
		if( IsPlayer() && m_nAccountPlayTime != -1 )
		{
			if( m_nAccountPlayTime < 0 || m_nAccountPlayTime > MIN( 300 ) )
			{
				nExp	= 0;
			}
			else if( m_nAccountPlayTime >= MIN( 180 ) && m_nAccountPlayTime <= MIN( 300 ) )
			{
				nExp	= (EXPINTEGER)( nExp * 0.5f );
			}
		}
	}
	//	mulcom	END100315	º£Æ®³² ½Ã°£ Á¦ÇÑ
#endif // __VTN_TIMELIMIT
below this Code you post this:
Code:
#ifdef __EXP_STOP
	if (IsMode(MODE_EXPUP_STOP))
		nExp = 0;
#endif
then you go in FuncTextCmd.cpp
And post after this:
Code:
BOOL TextCmd_NoUndying( CScanner& scanner )
{
#ifdef __WORLDSERVER
	CUser* pUser = (CUser*)scanner.dwValue;
	pUser->m_dwMode &= (~MATCHLESS_MODE);
	pUser->m_dwMode &= (~MATCHLESS2_MODE);
	g_UserMng.AddModifyMode( pUser );
#endif
	return TRUE;
}
this:
Code:
// exp»ó½Â ±ÝÁö ¸í·É. Åä±Û¹æ½ÄÀ¸·Î µ¿ÀÛ.
#ifdef __EXP_STOP
BOOL TextCmd_ExpUpStop(CScanner& scanner)
{
#ifdef __WORLDSERVER
	CUser* pUser = (CUser*)scanner.dwValue;
	if (pUser->m_dwMode & MODE_EXPUP_STOP)
		pUser->m_dwMode &= (~MODE_EXPUP_STOP);
	else
		pUser->m_dwMode |= MODE_EXPUP_STOP;

	g_UserMng.AddModifyMode(pUser);
#endif // __WORLDSERVER

	return TRUE;
}
#endif
then next part in FuncTextCmd.cpp:
Looking for this:
Code:
ON_TEXTCMDFUNC( TextCmd_Teleport,              "teleport",          "te",             "ÅÚ·¹Æ÷Æ®",       "ÅÚ·¹",    TCM_SERVER, AUTH_GAMEMASTER   , "ÅÚ·¹Æ÷Æ®" )
and poste below this:
Code:
#ifdef __EXP_STOP
	ON_TEXTCMDFUNC(TextCmd_ExpUpStop, "ExpUpStop", "es", "°æÇèÄ¡±ÝÁö", "°æ±Ý", TCM_SERVER, AUTH_GAMEMASTER, "")
#endif
Have fun,

Credits goes to GalaLab & Me for reawake this command :)
02/20/2018 20:42 jericho2nd#4
Quote:
Originally Posted by DK ACE View Post
Its work only in Illumine Fliles :) and its work fine :)
i have a question you know the fix in this? because i'm using your ARMA Files. [Only registered and activated users can see links. Click Here To Register...] thanks :D
02/20/2018 21:22 - DK#5
Quote:
Originally Posted by jericho2nd View Post
i have a question you know the fix in this? because i'm using your ARMA Files. [Only registered and activated users can see links. Click Here To Register...] thanks :D
I did a answer ^^
04/29/2018 21:47 nicksss03#6
Hi. How to apply the /es in game?
06/22/2021 00:35 Tamus#7
its not working the scroll., but via command its working.,