summaryrefslogtreecommitdiff
path: root/src/emap/init.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-09-28 18:36:58 +0300
committerAndrei Karas <akaras@inbox.ru>2015-09-28 18:36:58 +0300
commit07758e21abf23ad6742b0f6aacedbb7c60c81e98 (patch)
tree7f5b9b0bd7107426f97bc91150b52d2655e0d3f4 /src/emap/init.c
parent7218f15b792d6ae2bf88b65f6901ae5aa86ecb7a (diff)
downloadplugin-07758e21abf23ad6742b0f6aacedbb7c60c81e98.tar.gz
plugin-07758e21abf23ad6742b0f6aacedbb7c60c81e98.tar.bz2
plugin-07758e21abf23ad6742b0f6aacedbb7c60c81e98.tar.xz
plugin-07758e21abf23ad6742b0f6aacedbb7c60c81e98.zip
Add support for team id for battleground players.
New script function: setbgteam bgid, num It set for 'bgid' team id to 'num'.
Diffstat (limited to 'src/emap/init.c')
-rw-r--r--src/emap/init.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/emap/init.c b/src/emap/init.c
index 1441487..d625b42 100644
--- a/src/emap/init.c
+++ b/src/emap/init.c
@@ -42,6 +42,7 @@
#include "ecommon/config.h"
#include "ecommon/init.h"
#include "emap/atcommand.h"
+#include "emap/battleground.h"
#include "emap/clif.h"
#include "emap/itemdb.h"
#include "emap/lang.h"
@@ -123,6 +124,7 @@ HPExport void plugin_init (void)
addScriptCommand("downrefindex", "ii", downRefIndex);
addScriptCommand("successrefindex", "ii", successRefIndex);
addScriptCommand("isstr", "v", isStr);
+ addScriptCommand("setbgteam", "ii", setBgTeam);
do_init_langs();
@@ -141,6 +143,8 @@ HPExport void plugin_init (void)
addHookPre("atcommand->msgfd", eatcommand_msgfd);
addHookPre("atcommand->msgsd", eatcommand_msgsd);
+
+ addHookPre("bg->team_warp", ebg_team_warp);
addHookPre("pc->readparam", epc_readparam_pre);
addHookPre("pc->setregistry", epc_setregistry);
addHookPre("pc->equipitem_pos", epc_equipitem_pos);
@@ -161,6 +165,8 @@ HPExport void plugin_init (void)
addHookPre("clif->dropflooritem", eclif_dropflooritem);
addHookPre("clif->sendlook", eclif_sendlook);
addHookPre("clif->send", eclif_send);
+ addHookPre("clif->sendbgemblem_area", eclif_sendbgemblem_area);
+ addHookPre("clif->sendbgemblem_single", eclif_sendbgemblem_single);
addHookPre("clif->set_unit_idle", eclif_set_unit_idle);
addHookPre("clif->send_actual", eclif_send_actual);
addHookPre("clif->pLoadEndAck", eclif_parse_LoadEndAck_pre);