Jump to content
  • 0

Stat Attribute


Question

Posted

Hello guys, can you give a little help here about stat.

I want on every 1 vit gives 5 HP on character or on every 1 Str it gives 2 Attack Power,

Where should I edit or what file should I edit?

Thanks in advance.

2 answers to this question

Recommended Posts

Posted

For Max HP calculation, in status.c find:

static unsigned int status_base_pc_maxhp(struct map_session_data* sd, struct status_data* status)
{
unsigned int val = pc_class2idx(sd->status.class_);
val = 35 + sd->status.base_level*hp_coefficient2[val]/100 + hp_sigma_val[val][sd->status.base_level];
if((sd->class_&MAPID_UPPERMASK) == MAPID_NINJA || (sd->class_&MAPID_UPPERMASK) == MAPID_GUNSLINGER)
 val += 100; //Since their HP can't be approximated well enough without this.
if((sd->class_&MAPID_UPPERMASK) == MAPID_TAEKWON && sd->status.base_level >= 90 && pc_famerank(sd->status.char_id, MAPID_TAEKWON))
 val *= 3; //Triple max HP for top ranking Taekwons over level 90.
if((sd->class_&MAPID_UPPERMASK) == MAPID_SUPER_NOVICE && sd->status.base_level >= 99)
 val += 2000; //Supernovice lvl99 hp bonus.
val += val * status->vit/100; // +1% per each point of VIT
if (sd->class_&JOBL_UPPER)
 val += val * 25/100; //Trans classes get a 25% hp bonus
else if (sd->class_&JOBL_BABY)
 val -= val * 30/100; //Baby classes get a 30% hp penalty
return val;
}

As for STR (Damage calculation) which is more complicated, I'd suggest you not to touch it :P

Posted (edited)

Thank you so much bro.

Got Higher MaxHP now :)

EDIT : I want to look at that STR Calculation, where can i find that sir?

Edited by Butch

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...