Jump to content
  • 0

EXP source - where do i find?


bimbi

Question


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  59
  • Reputation:   1
  • Joined:  01/15/12
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  754
  • Reputation:   186
  • Joined:  05/22/12
  • Last Seen:  

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);        }

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...