Grey Monsters

Status
Not open for further replies.
Yes you can here. Remplace the old function with this one. Only changed the bottom line.


UINT CWorldServer::GetColorExp( UINT playerlevel,UINT moblevel, UINT exp )
{
int dif = moblevel - playerlevel;

if(dif>15)//purple
exp = (UINT)floor(exp*1.5);
else if(dif>10)
exp = (UINT)floor(exp*1.2);
else if(dif>4)
exp = (UINT)floor(exp*1.1);
else if(dif>-4)
exp = (UINT)floor(exp*1);
else if(dif>-9)
exp = (UINT)floor(exp*0.7);
else if(dif>-15)
exp = (UINT)floor(exp*0.4);
else if(dif>-25)
exp = (UINT)floor(exp*0.1);
else
exp = (UINT)floor(exp*0.005);
return exp;
}
 
Yup. You can play with any of the exp multipliers, easier to change exp though, but the point it.

exp*0.005 means "The exp in the config TIMES 0.0005" will give the basis which then will be multiplied again when you kill something... I guess. Though, Im not thinking properly right now.
 
Status
Not open for further replies.
Back