Butch Posted October 30, 2012 Group: Members Topic Count: 4 Topics Per Day: 0.00 Content Count: 12 Reputation: 2 Joined: 10/01/12 Last Seen: October 14, 2023 Share Posted October 30, 2012 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. Quote Link to comment Share on other sites More sharing options...
Bin4ry Posted October 30, 2012 Group: Members Topic Count: 30 Topics Per Day: 0.01 Content Count: 782 Reputation: 82 Joined: 01/01/12 Last Seen: September 21, 2015 Share Posted October 30, 2012 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 Quote Link to comment Share on other sites More sharing options...
Butch Posted October 30, 2012 Group: Members Topic Count: 4 Topics Per Day: 0.00 Content Count: 12 Reputation: 2 Joined: 10/01/12 Last Seen: October 14, 2023 Author Share Posted October 30, 2012 (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 October 30, 2012 by Butch Quote Link to comment Share on other sites More sharing options...
Question
Butch
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.
Link to comment
Share on other sites
2 answers 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.