diff options
author | veider <veider@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2005-03-28 21:25:11 +0000 |
---|---|---|
committer | veider <veider@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2005-03-28 21:25:11 +0000 |
commit | cb44aff61ed172eb338535078d772090b124d465 (patch) | |
tree | 68efd87328d3c019577d968833a44b588270c28b /src/map/charcommand.c | |
parent | 00fb4a56f6ae894e84cdd62faf6bf596a097e0e0 (diff) | |
download | hercules-cb44aff61ed172eb338535078d772090b124d465.tar.gz hercules-cb44aff61ed172eb338535078d772090b124d465.tar.bz2 hercules-cb44aff61ed172eb338535078d772090b124d465.tar.xz hercules-cb44aff61ed172eb338535078d772090b124d465.zip |
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@1316 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/charcommand.c')
-rw-r--r-- | src/map/charcommand.c | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/src/map/charcommand.c b/src/map/charcommand.c index 40961f39e..ab57a6b39 100644 --- a/src/map/charcommand.c +++ b/src/map/charcommand.c @@ -51,6 +51,8 @@ CCMD_FUNC(storagelist); CCMD_FUNC(item); CCMD_FUNC(warp); CCMD_FUNC(zeny); +CCMD_FUNC(showexp); +CCMD_FUNC(showdelay); #ifdef TXT_ONLY /* TXT_ONLY */ @@ -88,6 +90,9 @@ static CharCommandInfo charcommand_info[] = { { CharCommandWarp, "#rura", 60, charcommand_warp }, { CharCommandWarp, "#rura+", 60, charcommand_warp }, { CharCommandZeny, "#zeny", 60, charcommand_zeny }, + { CharCommandShowExp, "#showexp", 0, charcommand_showexp}, + { CharCommandShowDelay, "#showdelay", 0, charcommand_showdelay}, + #ifdef TXT_ONLY /* TXT_ONLY */ @@ -1213,3 +1218,40 @@ int charcommand_zeny( return 0; } + +/*=================================== + * Remove some messages + *----------------------------------- + */ +int charcommand_showexp( + const int fd, struct map_session_data* sd, + const char* command, const char* message) +{ + if (sd->noexp) { + sd->noexp = 0; + clif_displaymessage(fd, "Gained exp is now shown"); + return 0; + } + else { + sd->noexp = 1; + clif_displaymessage(fd, "Gained exp is now NOT shown"); + return 0; + } +} + +int charcommand_showdelay( + const int fd, struct map_session_data* sd, + const char* command, const char* message) +{ + if (sd->nodelay) { + sd->nodelay = 0; + clif_displaymessage(fd, "Skill delay failure is now shown"); + return 0; + } + else { + sd->nodelay = 1; + clif_displaymessage(fd, "Skill delay failure is NOT now shown"); + return 0; + } +} + |