summaryrefslogtreecommitdiff
path: root/src/map/atcommand.c
diff options
context:
space:
mode:
authorMadCamel <madcamel@gmail.com>2010-01-09 17:51:56 -0500
committerJared Adams <jaxad0127@gmail.com>2010-01-09 23:15:57 +0000
commit98f533996e31c4a20d312724e02ba3d8bf35b110 (patch)
treeffb3f973d514af7e79a69b47537da920dee53368 /src/map/atcommand.c
parent7fb4432dee68ef6340b7be778e5d07ee17674169 (diff)
downloadtmwa-98f533996e31c4a20d312724e02ba3d8bf35b110.tar.gz
tmwa-98f533996e31c4a20d312724e02ba3d8bf35b110.tar.bz2
tmwa-98f533996e31c4a20d312724e02ba3d8bf35b110.tar.xz
tmwa-98f533996e31c4a20d312724e02ba3d8bf35b110.zip
charbaselvl now also performs charstreset to prevent stacking of points. @setup modified for new skill system
Diffstat (limited to 'src/map/atcommand.c')
-rw-r--r--src/map/atcommand.c15
1 files changed, 13 insertions, 2 deletions
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
{