View Single Post
  #6  
Old 11-19-2015, 10:57 AM
provocating's Avatar
provocating
Demi-God
 
Join Date: Nov 2007
Posts: 2,175
Default

My source will differ from yours, modified it some. But in your attack.cpp you will have a routine

Code:
bool Client::Attack(Mob* other, int Hand, bool bRiposte, bool IsStrikethrough, bool IsFromSpell, ExtraAttackOptions *opts)
Look somewhere around line 1500~1600 and you will see this.

Code:
	if(!GetGM())
	{
		if(exploss > 0) {
			int32 newexp = GetEXP();

			if(exploss > newexp) {
				//lost more than we have... wtf..
				newexp = 1;
			} else {
				newexp -= exploss;
			}

			SetEXP(newexp, GetAAXP());
			//m_epp.perAA = 0;	//reset to no AA exp on death.
		}
I would think you could change the one line to read something like this.

Code:
SetEXP(0,0);
Reply With Quote