//1.) Search:
case POINT_LEVEL:
if ((GetLevel() + amount) > gPlayerMaxLevel)
return;
SetLevel(GetLevel() + amount);
val = GetLevel();
sys_log(0, "LEVELUP: %s %d NEXT EXP %d", GetName(), GetLevel(), GetNextExp());
PointChange(POINT_NEXT_EXP, GetNextExp(), false);
//2.) Add bellow:
#ifdef ENABLE_ANNOUNCEMENT_LEVELUP
//functionTestvegas746
switch (val)
{
case 10: case 15: case 20: case 25: case 30: case 35:
case 40: case 45: case 50: case 55: case 60: case 65:
case 70: case 75: case 80: case 85: case 90: case 95:
case 100: case 105:
char szNoticeLevelUp[QUERY_MAX_LEN];
snprintf(szNoticeLevelUp, sizeof(szNoticeLevelUp), "<Informations> [CH%d]: [%s] reached level [%u]. Congratulations!", g_bChannel, GetName(), GetLevel());
BroadcastNotice(szNoticeLevelUp);
break;
default:
break;
}
#endif