From 98f533996e31c4a20d312724e02ba3d8bf35b110 Mon Sep 17 00:00:00 2001 From: MadCamel Date: Sat, 9 Jan 2010 17:51:56 -0500 Subject: charbaselvl now also performs charstreset to prevent stacking of points. @setup modified for new skill system --- src/map/atcommand.c | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'src/map/atcommand.c') diff --git a/src/map/atcommand.c b/src/map/atcommand.c index 05f4fa7..d3ea644 100644 --- a/src/map/atcommand.c +++ b/src/map/atcommand.c @@ -982,8 +982,17 @@ int atcommand_setup (const int fd, struct map_session_data *sd, snprintf (buf, 255, "%d %s", level, character); atcommand_character_baselevel (fd, sd, "@charbaselvl", buf); - snprintf (buf, 255, "+10 %s", character); - atcommand_character_joblevel (fd, sd, "@charjoblvl", buf); + // Emote skill + snprintf (buf, 255, "1 1 %s", character); + atcommand_skill_learn(fd, sd, "@skill-learn", buf); + + // Trade skill + snprintf (buf, 255, "2 1 %s", character); + atcommand_skill_learn(fd, sd, "@skill-learn", buf); + + // Party skill + snprintf (buf, 255, "2 2 %s", character); + atcommand_skill_learn(fd, sd, "@skill-learn", buf); snprintf (buf, 255, "018-1.gat 24 98 %s", character); atcommand_charwarp (fd, sd, "@charwarp", buf); @@ -4557,6 +4566,8 @@ int atcommand_character_baselevel (const int fd, struct map_session_data *sd, pc_calcstatus (pl_sd, 0); clif_displaymessage (fd, msg_table[66]); // Character's base level lowered. } + // Reset their stat points to prevent extra points from stacking + atcommand_charstreset(fd, sd,"@charstreset", character); } else { -- cgit v1.2.3-60-g2f50