hi guys, i want to change my server's src so the users wont gain hp/sp/hit/flee bonuses when they go over lvl 99 (my server's max lvl is 150)
i know this was possible to do in eathena emulators, but ive switched to rathena and i dont know well how to do it now, im sure its in this part of status.c:
void status_calc_misc(struct block_list *bl, struct status_data *status, int level)
{
int stat;
// Non players get the value set, players need to stack with previous bonuses.
if( bl->type != BL_PC )
status->batk =
status->hit = status->flee =
status->def2 = status->mdef2 =
status->cri = status->flee2 = 0;
#ifdef RENEWAL // Renewal formulas
if (bl->type == BL_MOB) {
//Hit
stat = status->hit;
stat += level + status->dex + 175;
status->hit = cap_value(stat,1,SHRT_MAX);
//Flee
stat = status->flee;
stat += level + status->agi + 100;
status->flee = cap_value(stat,1,SHRT_MAX);
} else if (bl->type == BL_HOM) {
status->hit = cap_value(level + status->dex + 150,1,SHRT_MAX); // base level + dex + 150
status->flee = cap_value(level + status->agi + level/10,1,SHRT_MAX); // base level + agi + base level/10
} else {
//Hit
stat = status->hit;
stat += level + status->dex + status->luk/3 + 175; // base level + ( every 1 dex = +1 hit ) + (every 3 luk = +1 hit) + 175
status->hit = cap_value(stat,1,SHRT_MAX);
//Flee
stat = status->flee;
stat += level + status->agi + status->luk/5 + 100; // base level + ( every 1 agi = +1 flee ) + (every 5 luk = +1 flee) + 100
status->flee = cap_value(stat,1,SHRT_MAX);
}
this part in eathena was really easy, but now i dont understand it, hope you guys can help me