Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

How to add some extra function on Source Code (Newbie Coder)

Status
Not open for further replies.
Junior Spellweaver
Joined
Oct 26, 2011
Messages
111
Reaction score
0
ok sir, i think i know how to

GLCharactorReq.cpp
Code:
if ( m_emClass == GLCC_EXTREME_M || m_emClass == GLCC_EXTREME_W )
	{
		CInnerInterface::GetInstance().PrintMsgText ( NS_UITEXTCOLOR::DISABLE, ID2GAMEINTEXT("EMINVEN_GENDER_CHANGE_FB_BADCLASS") );
		return E_FAIL;
	}

edit it:
Code:
	//if ( m_emClass == GLCC_EXTREME_M || m_emClass == GLCC_EXTREME_W )
	//{
		//CInnerInterface::GetInstance().PrintMsgText ( NS_UITEXTCOLOR::DISABLE, ID2GAMEINTEXT("EMINVEN_GENDER_CHANGE_FB_BADCLASS") );
		//return E_FAIL;
	//}

GLCharInvenMsg.cpp
Code:
	if ( m_emClass == GLCC_EXTREME_M || m_emClass == GLCC_EXTREME_W )
	{
		MsgFB.emFB = EMINVEN_GENDER_CHANGE_FB_BADCLASS;
		GLGaeaServer::GetInstance().SENDTOCLIENT(m_dwClientID,&MsgFB);
		return E_FAIL;
	}

	EMCHARCLASS emClass;
    	
	if ( m_emClass > GLCC_EXTREME_M )	emClass = (EMCHARCLASS) (m_emClass / 64 );
	else emClass = (EMCHARCLASS) (m_emClass * 64);

edit it:
Code:
	//if ( m_emClass == GLCC_EXTREME_M || m_emClass == GLCC_EXTREME_W )
	//{
		//MsgFB.emFB = EMINVEN_GENDER_CHANGE_FB_BADCLASS;
		//GLGaeaServer::GetInstance().SENDTOCLIENT(m_dwClientID,&MsgFB);
		//return E_FAIL;
	//}

	EMCHARCLASS emClass;
    	
	if ( m_emClass > GLCC_EXTREME_M )	emClass = (EMCHARCLASS) (m_emClass / 64 );
	else if ( m_emClass == GLCC_EXTREME_M )	emClass = (EMCHARCLASS) (m_emClass * 2);
	else if ( m_emClass == GLCC_EXTREME_W )	emClass = (EMCHARCLASS) (m_emClass / 2);
	else emClass = (EMCHARCLASS) (m_emClass * 64);

i hope i will work and correct i yet try and will try after day ^^..

Hello sorry for having poor understanding but this code use for what?
Thanks :D
 
Junior Spellweaver
Joined
Jan 2, 2014
Messages
166
Reaction score
29
How to set glogic.rcc password :

Go to: Source\enginelib\Common

Find this:
Code:
if( IsEncrypted( info.dwFlags ) ) // MEMO : ¾Ïȣȭ µÈ ÆÄÀÏÀ̸é...
        {
            if( unzOpenCurrentFilePassword(m_uzFile, "asdgfh") != UNZ_OK )
                return UINT_MAX;
        }
        else
        {
            if( unzOpenCurrentFile(m_uzFile) != UNZ_OK )
                return UINT_MAX;
        }

Edit:

Code:
if( IsEncrypted( info.dwFlags ) ) // MEMO : ¾Ïȣȭ µÈ ÆÄÀÏÀ̸é...
        {
            if( unzOpenCurrentFilePassword(m_uzFile, "[COLOR=Red]Yourpassword[/COLOR]") != UNZ_OK )
                return UINT_MAX;
        }
        else
        {
            if( unzOpenCurrentFile(m_uzFile) != UNZ_OK )
                return UINT_MAX;
        }

After that compile source,,
Hope it helped!:):

Source\enginelib\Common\what name file (cpp,h)???
 
Status
Not open for further replies.
Back
Top