Fix for the Grilled Eel Restat Exploit.

Junior Spellweaver
Joined
Mar 15, 2010
Messages
151
Reaction score
77
I'm not sure if many know of this bug,
Basically what happens is, Wannabe hacker noob goes full sta,
Uses a Grilled Eel, then restats back to original stats leaving their HP at overpowered levels.

In Mover.cpp Find "void CMover::ReState()"
and Before :

Code:
#endif	// __HONORABLE_TITLE			// ´ÞÀÎ
#endif // __WORLDSERVER
Add:


Code:
	if( ((CUser*)this)->IsSMMode(SM_MAX_HP50) )
	{
		SetDestParam( DST_HP, GetMaxOriginHitPoint(), NULL_CHGPARAM, 1 );
		SetHitPoint( GetMaxOriginHitPoint() );
	}

Then Find "void CMover::ReStateOne( int nKind )"
and Before :

Code:
#endif	// __HONORABLE_TITLE			// ´ÞÀÎ
#endif // __WORLDSERVER
Add:

Code:
if( ((CUser*)this)->IsSMMode(SM_MAX_HP50) )
	{
		SetDestParam( DST_HP, GetMaxOriginHitPoint(), NULL_CHGPARAM, 1 );
		SetHitPoint( GetMaxOriginHitPoint() );
	}

What this will do is Detect whether or not a Grilled Eel is Active Then set your HP Back to default
 
haha :P im sure many love the bug but as a server owner, it has to be gone and all users of it have to be lined up and HoP'd :P

and now im looking at it, you could probably remove the if statement around it, so that it jus' fixes in general so no one can exploit other HP buffs....

Also you could use the same method to prevent FP or MP exploits, if there are any.
 
Never knew there was bug like this.

Yeah me either, but ''hackers'' have a tendency to brag a lot about this stuff, so they kinda pointed it out for me ^^ felt every other developer should know before it gets too out of hand.
 
Back