summaryrefslogtreecommitdiff
path: root/src/map/init.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-11-06 20:57:29 +0300
committerAndrei Karas <akaras@inbox.ru>2014-11-07 00:35:13 +0300
commitd808fef992c2f37bd89fd8336f20cf587016e5a9 (patch)
tree2d390c3f544316b3713a9ba372aa3b0afa0667ce /src/map/init.c
parentfeba0e8cd021ab0a0b469e79125dfc794442db17 (diff)
downloadevol-hercules-d808fef992c2f37bd89fd8336f20cf587016e5a9.tar.gz
evol-hercules-d808fef992c2f37bd89fd8336f20cf587016e5a9.tar.bz2
evol-hercules-d808fef992c2f37bd89fd8336f20cf587016e5a9.tar.xz
evol-hercules-d808fef992c2f37bd89fd8336f20cf587016e5a9.zip
Add packet for accept client version in map server.
Add struct for additional connection data. Add functions for get additional connection data. Impliment script function: getclientversion.
Diffstat (limited to 'src/map/init.c')
-rw-r--r--src/map/init.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/map/init.c b/src/map/init.c
index 1af804a..df5e903 100644
--- a/src/map/init.c
+++ b/src/map/init.c
@@ -15,6 +15,7 @@
#include "../../../map/script.h"
#include "map/dummy.h"
+#include "map/parse.h"
#include "map/script.h"
#include "../../../common/HPMDataCheck.h" /* should always be the last file included! (if you don't make it last, it'll intentionally break compile time) */
@@ -38,6 +39,7 @@ HPExport void plugin_init (void) {
pc = GET_SYMBOL("pc");
strlib = GET_SYMBOL("strlib");
session = GET_SYMBOL("session");
+ sockt = GET_SYMBOL("sockt");
addScriptCommand("setcamnpc", "*", dummy);
addScriptCommand("restorecam", "", dummy);
@@ -55,9 +57,11 @@ HPExport void plugin_init (void) {
addScriptCommand("setnpcdir", "*", dummy);
addScriptCommand("rif", "is*", dummyStr);
addScriptCommand("countitemcolor", "*", dummyInt);
- addScriptCommand("getclientversion", "*", dummyInt);
+ addScriptCommand("getclientversion", "", getClientVersion);
// must be replaced to misceffect
addScriptCommand("misceffect2", "i*", dummy);
+
+ addPacket(0x7530, 22, map_parse_version, hpClif_Parse);
}
HPExport void server_preinit (void) {