diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-08-10 01:03:32 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-08-10 01:03:32 +0300 |
commit | cb10231838c918dbf380899a947599331818a4bc (patch) | |
tree | 7f92446dd65643a81d7ddf0419ff1c4c60be73be /src/emap/inter.c | |
parent | 725fb53014ab7d48d43d69f0c1ca21354ef8619c (diff) | |
download | evol-hercules-cb10231838c918dbf380899a947599331818a4bc.tar.gz evol-hercules-cb10231838c918dbf380899a947599331818a4bc.tar.bz2 evol-hercules-cb10231838c918dbf380899a947599331818a4bc.tar.xz evol-hercules-cb10231838c918dbf380899a947599331818a4bc.zip |
Add gm command for send restart events to all servers.
For now it support only one char and one map server.
For support this actions need use hercules wrapper.
Diffstat (limited to 'src/emap/inter.c')
-rw-r--r-- | src/emap/inter.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/emap/inter.c b/src/emap/inter.c new file mode 100644 index 0000000..8f36be9 --- /dev/null +++ b/src/emap/inter.c @@ -0,0 +1,23 @@ +// Copyright (c) Copyright (c) Hercules Dev Team, licensed under GNU GPL. +// Copyright (c) 2014 - 2015 Evol developers + +#include "common/hercules.h" + +#include <stdio.h> +#include <stdlib.h> +#include <string.h> + +#include "common/HPMi.h" +#include "common/memmgr.h" +#include "common/nullpo.h" +#include "common/socket.h" +#include "common/strlib.h" +#include "map/chrif.h" + +void send_char_exit(const int code) +{ + WFIFOHEAD(chrif->fd, 4); + WFIFOW(chrif->fd, 0) = 0x5002; + WFIFOW(chrif->fd, 2) = code; + WFIFOSET(chrif->fd, 4); +} |