summaryrefslogtreecommitdiff
path: root/src/map/atcommand.c
diff options
context:
space:
mode:
authorgepard1984 <gepard1984@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-02-14 02:05:16 +0000
committergepard1984 <gepard1984@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-02-14 02:05:16 +0000
commitbf9b79f1e0f2141191215e85a2f5b00eea9eba5f (patch)
treebdc92c422fef492740f25d2b93a1d5b84fa50902 /src/map/atcommand.c
parent8b2a77020601a1d6a567ddd7ae1cd519e7097483 (diff)
downloadhercules-bf9b79f1e0f2141191215e85a2f5b00eea9eba5f.tar.gz
hercules-bf9b79f1e0f2141191215e85a2f5b00eea9eba5f.tar.bz2
hercules-bf9b79f1e0f2141191215e85a2f5b00eea9eba5f.tar.xz
hercules-bf9b79f1e0f2141191215e85a2f5b00eea9eba5f.zip
Merged `@kill` and `@die`, since `@kill` was just a remote version of `@die`.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15578 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/atcommand.c')
-rw-r--r--src/map/atcommand.c42
1 files changed, 3 insertions, 39 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c
index d86d6aa64..296156c20 100644
--- a/src/map/atcommand.c
+++ b/src/map/atcommand.c
@@ -1182,48 +1182,13 @@ ACMD_FUNC(jobchange)
/*==========================================
*
*------------------------------------------*/
-ACMD_FUNC(die)
-{
- nullpo_retr(-1, sd);
- clif_specialeffect(&sd->bl,450,SELF);
- status_kill(&sd->bl);
- clif_displaymessage(fd, msg_txt(13)); // A pity! You've died.
-
- return 0;
-}
-
-/*==========================================
- *
- *------------------------------------------*/
ACMD_FUNC(kill)
{
- struct map_session_data *pl_sd;
nullpo_retr(-1, sd);
-
- memset(atcmd_player_name, '\0', sizeof(atcmd_player_name));
-
- if (!message || !*message) {
- clif_displaymessage(fd, "Please, enter a player name (usage: @kill <player name/id>).");
- return -1;
- }
-
- if((pl_sd=map_nick2sd((char *)message)) == NULL && (pl_sd=map_charid2sd(atoi(message))) == NULL)
- {
- clif_displaymessage(fd, msg_txt(3)); // Character not found.
- return -1;
- }
-
- if (pc_get_group_level(sd) < pc_get_group_level(pl_sd))
- { // you can kill only lower or same level
- clif_displaymessage(fd, msg_txt(81)); // Your GM level don't authorise you to do this action on this player.
- return -1;
- }
-
- status_kill(&pl_sd->bl);
- clif_displaymessage(pl_sd->fd, msg_txt(13)); // A pity! You've died.
- if (fd != pl_sd->fd)
+ status_kill(&sd->bl);
+ clif_displaymessage(sd->fd, msg_txt(13)); // A pity! You've died.
+ if (fd != sd->fd)
clif_displaymessage(fd, msg_txt(14)); // Character killed.
-
return 0;
}
@@ -8426,7 +8391,6 @@ void atcommand_basecommands(void) {
ACMD_DEF(option),
ACMD_DEF(hide), // + /hide
ACMD_DEF(jobchange),
- ACMD_DEF(die),
ACMD_DEF(kill),
ACMD_DEF(alive),
ACMD_DEF(kami),