bimbi Posted February 15, 2013 Group: Members Topic Count: 17 Topics Per Day: 0.00 Content Count: 59 Reputation: 1 Joined: 01/15/12 Last Seen: April 19, 2017 Share Posted February 15, 2013 Just a little question, where do i find the source of the "getting exp after killing a monster". I just want to add a variable. Quote Link to comment Share on other sites More sharing options...
clydelion Posted February 15, 2013 Group: Members Topic Count: 17 Topics Per Day: 0.00 Content Count: 754 Reputation: 186 Joined: 05/22/12 Last Seen: October 15, 2022 Share Posted February 15, 2013 File: mob.c Look for the mob_dead function.. if(flag) { if(base_exp && md->dmglog[i].flag == MDLF_HOMUN) //tmpsd[i] is null if it has no homunc. merc_hom_gainexp(tmpsd[i]->hd, base_exp); if(base_exp || job_exp) { if( md->dmglog[i].flag != MDLF_PET || battle_config.pet_attack_exp_to_master ) {#ifdef RENEWAL_EXP int rate = pc_level_penalty_mod(tmpsd[i], md, 1); base_exp = (unsigned int)cap_value(base_exp * rate / 100, 1, UINT_MAX); job_exp = (unsigned int)cap_value(job_exp * rate / 100, 1, UINT_MAX);#endif pc_gainexp(tmpsd[i], &md->bl, base_exp, job_exp, false); } } if(zeny) // zeny from mobs [Valaris] pc_getzeny(tmpsd[i], zeny, LOG_TYPE_PICKDROP_MONSTER, NULL); } Quote Link to comment Share on other sites More sharing options...
Question
bimbi
Just a little question, where do i find the source of the "getting exp after killing a monster".
I just want to add a variable.
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.