Jump to content
  • 0

Question

Posted

Hi everyone. How to lessen or remove death penalty when your account groupid >= 1 ?

 

For example if your account groupid is level 1 the death penalty will be just 50% but if its level 0 it will be 100%.

3 answers to this question

Recommended Posts

Posted

inside trunk/src/map/pc.c , find these...

base_penalty = (unsigned int) ((double)pc_nextbaseexp(sd) * (double)battle_config.death_penalty_base/10000);
base_penalty = (unsigned int) ((double)sd->status.base_exp * (double)battle_config.death_penalty_base/10000);

base_penalty = (unsigned int) ((double)pc_nextjobexp(sd) * (double)battle_config.death_penalty_job/10000);
base_penalty = (unsigned int) ((double)sd->status.job_exp * (double)battle_config.death_penalty_job/10000);

just edit these 4 line by adding another IF-ELSE condition to check for GM Level / Group ID for different penalty..

  • Upvote 1

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...