diff options
author | Fate <fate-tmw@googlemail.com> | 2008-12-11 22:28:30 -0700 |
---|---|---|
committer | Fate <fate-tmw@googlemail.com> | 2008-12-11 22:28:30 -0700 |
commit | 5e32a6be59536a6810bf558ec07dd3a615569c39 (patch) | |
tree | 8306d38892f6802ce7ce11541738cd947de568d8 /src/map/atcommand.c | |
parent | c9e5567e98cf7e26c549f4a512eeece24a0d9c81 (diff) | |
download | tmwa-5e32a6be59536a6810bf558ec07dd3a615569c39.tar.gz tmwa-5e32a6be59536a6810bf558ec07dd3a615569c39.tar.bz2 tmwa-5e32a6be59536a6810bf558ec07dd3a615569c39.tar.xz tmwa-5e32a6be59536a6810bf558ec07dd3a615569c39.zip |
Added @invisible and @visible GM commands
Diffstat (limited to 'src/map/atcommand.c')
-rw-r--r-- | src/map/atcommand.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c index ea92f34..d10139f 100644 --- a/src/map/atcommand.c +++ b/src/map/atcommand.c @@ -220,6 +220,8 @@ ATCOMMAND_FUNC(set_magic); // [Fate] ATCOMMAND_FUNC(magic_info); // [Fate] ATCOMMAND_FUNC(log); // [Fate] ATCOMMAND_FUNC(tee); // [Fate] +ATCOMMAND_FUNC(invisible); // [Fate] +ATCOMMAND_FUNC(visible); // [Fate] #ifndef TXT_ONLY ATCOMMAND_FUNC(checkmail); // [Valaris] @@ -471,6 +473,8 @@ static AtCommandInfo atcommand_info[] = { { AtCommand_Log, "@l", 60, atcommand_log }, // [Fate] { AtCommand_Tee, "@tee", 60, atcommand_tee }, // [Fate] { AtCommand_Tee, "@t", 60, atcommand_tee }, // [Fate] + { AtCommand_Tee, "@invisible", 60, atcommand_invisible }, // [Fate] + { AtCommand_Tee, "@visible", 60, atcommand_visible }, // [Fate] #ifndef TXT_ONLY // sql-only commands { AtCommand_CheckMail, "@checkmail", 1, atcommand_listmail }, // [Valaris] @@ -8037,3 +8041,20 @@ atcommand_tee(const int fd, struct map_session_data* sd, clif_message(&sd->bl, data); return 0; } + +int +atcommand_invisible(const int fd, struct map_session_data* sd, + const char* command, const char* message) +{ + pc_invisibility(sd, 1); + return 0; +} + +int +atcommand_visible(const int fd, struct map_session_data* sd, + const char* command, const char* message) +{ + pc_invisibility(sd, 0); + return 0; +} + |