diff options
author | Fate <fate.tmw@googlemail.com> | 2008-11-10 16:43:13 +0000 |
---|---|---|
committer | Fate <fate.tmw@googlemail.com> | 2008-11-10 16:43:13 +0000 |
commit | 7e9ef4d4154caf5c982e0753e9685c04ee52d913 (patch) | |
tree | c94003e0f22b451a0ef4dcd6df38e8c48843e81a /src/map/pc.c | |
parent | f52600e3795cd8a40c716ff92db6d8f55cc8e7cf (diff) | |
download | tmwa-7e9ef4d4154caf5c982e0753e9685c04ee52d913.tar.gz tmwa-7e9ef4d4154caf5c982e0753e9685c04ee52d913.tar.bz2 tmwa-7e9ef4d4154caf5c982e0753e9685c04ee52d913.tar.xz tmwa-7e9ef4d4154caf5c982e0753e9685c04ee52d913.zip |
* Adjusted the GM @charbaselvl command to set base experience to zero when lowering a char level
* Adjusted the GM @charreset command as follows:
- All stats are reset to 5 instead of 1
- Available statpoints are recomputed as per Malivox reset
- Quest skills are reset to zero but their skill points don't contribute to empty skillpoints
- Two character variables bound to WIP quest skills are zeroed
* Added @charwipe command (default level 60) to reset a character as if that character had newly started
Diffstat (limited to 'src/map/pc.c')
-rw-r--r-- | src/map/pc.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/map/pc.c b/src/map/pc.c index ab75b2e..353f60c 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -4937,14 +4937,16 @@ int pc_resetstate(struct map_session_data* sd) // add += sumsp(sd->status.luk); // sd->status.status_point+=add; + sd->status.status_point -= 8 * 6; // [Fate] Remove points used for setting stats to 5 + clif_updatestatus(sd,SP_STATUSPOINT); - sd->status.str=1; - sd->status.agi=1; - sd->status.vit=1; - sd->status.int_=1; - sd->status.dex=1; - sd->status.luk=1; + sd->status.str=5; + sd->status.agi=5; + sd->status.vit=5; + sd->status.int_=5; + sd->status.dex=5; + sd->status.luk=5; clif_updatestatus(sd,SP_STR); clif_updatestatus(sd,SP_AGI); @@ -4978,7 +4980,7 @@ int pc_resetskill(struct map_session_data* sd) for(i=1;i<MAX_SKILL;i++){ if( (skill = pc_checkskill(sd,i)) > 0) { if(!(skill_get_inf2(i)&0x01) || battle_config.quest_skill_learn) { - if(!sd->status.skill[i].flag) + if(!sd->status.skill[i].flag && !QUEST_SKILL(i)) sd->status.skill_point += skill; else if(sd->status.skill[i].flag > 2 && sd->status.skill[i].flag != 13) { sd->status.skill_point += (sd->status.skill[i].flag - 2); |