Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > 12Sky2
You last visited: Today at 10:37

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

Advertisement



Fix CP Hack

Discussion on Fix CP Hack within the 12Sky2 forum part of the MMORPGs category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Nov 2011
Posts: 129
Received Thanks: 174
Fix CP Hack

Description: merit point to cp point function
File : S04_MyWork03.cpp
Function : void MyWork::ProcessForData( int tUserIndex, int tSort, BYTE tData[MAX_BROADCAST_DATA_SIZE] )
Line : Mabye 1077 or find case 235
By : DOS

Old Code :
Code:
	case 235 : //[공덕치]->[기여도]
		CopyMemory( &tValue, &tData[0], 4 );
		if( tValue < 1 )
		{
			mUSER[tUserIndex].Quit(__FILE__, __FUNCTION__, __LINE__);
			               
			return;
		}
		if( mUSER[tUserIndex].mAvatarInfo.aTeacherPoint < ( tValue * 20000 ) )
		{
			mUSER[tUserIndex].Quit(__FILE__, __FUNCTION__, __LINE__);
			               
			return;
		}
		if (mUSER[tUserIndex].mAvatarInfo.aLevel1 < 50) {
			mUSER[tUserIndex].Quit ();
			return ;
		}
		mUSER[tUserIndex].mAvatarInfo.aKillOtherTribe += tValue;
		mAVATAR_OBJECT[tUserIndex].mDATA.aKillOtherTribe += tValue;
		mUSER[tUserIndex].mAvatarInfo.aTeacherPoint -= ( tValue * 20000 );
		mTRANSFER.B_PROCESS_DATA_RECV( 0, tSort, &tData[0] );
		mUSER[tUserIndex].Send( TRUE, (char *) &mTRANSFER.mOriginal[0], mTRANSFER.mOriginalSize );
New Code:
Code:
	case 235 : //[공덕치]->[기여도]
		CopyMemory( &tValue, &tData[0], 4 );
		if( tValue < 1 )
		{
			mUSER[tUserIndex].Quit(__FILE__, __FUNCTION__, __LINE__);
			               
			return;
		}
		if( mUSER[tUserIndex].mAvatarInfo.aTeacherPoint < ( tValue * 20000 ) )
		{
			mUSER[tUserIndex].Quit(__FILE__, __FUNCTION__, __LINE__);
			               
			return;
		}
		if (mUSER[tUserIndex].mAvatarInfo.aLevel1 < 50) {
			mUSER[tUserIndex].Quit ();
			return ;
		}
		
		// Protect CP Hack > Merit Point to CP
		mUSER[tUserIndex].mAvatarInfo.aTeacherPoint -= ( tValue * 20000 );
		if( mUSER[tUserIndex].mAvatarInfo.aTeacherPoint < 0 )
		{
			// ban -> mPLAYUSER_COM.U_BLOCK_USER_FOR_ZONE_1_SEND( 999, mUSER[tUserIndex].uUserIndex );
			mUSER[tUserIndex].Quit(__FILE__, __FUNCTION__, __LINE__);
			return;
		}
		// Protect CP Hack > Merit Point to CP
		
		mUSER[tUserIndex].mAvatarInfo.aKillOtherTribe += tValue;
		mAVATAR_OBJECT[tUserIndex].mDATA.aKillOtherTribe += tValue;
		mTRANSFER.B_PROCESS_DATA_RECV( 0, tSort, &tData[0] );
		mUSER[tUserIndex].Send( TRUE, (char *) &mTRANSFER.mOriginal[0], mTRANSFER.mOriginalSize );
lnwnuyhodd is offline  
Thanks
5 Users
Reply


Similar Threads Similar Threads
[04.09.13] GigaByte v2.6 [FIX, FIX, FIX, FIX AND FIX]
09/11/2013 - WarRock Hacks, Bots, Cheats & Exploits - 79 Replies
http://www.elitepvpers.com/forum/warrock-hacks-bot s-cheats-exploits/2843300-11-09-gigabyte-public-v2 -7-a.html



All times are GMT +1. The time now is 10:37.


Powered by vBulletin®
Copyright ©2000 - 2026, 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 ©2026 elitepvpers All Rights Reserved.