diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-10-16 00:01:32 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-10-16 00:02:53 +0300 |
commit | 42cd207c4c5f0be387f85f4c89bdcf21929a7f84 (patch) | |
tree | 59c38e8d75180a252419af867d747191faa361a2 /src/emap/init.c | |
parent | ab731862f899dd87b84613ebf12a82cdc73e094f (diff) | |
download | evol-hercules-42cd207c4c5f0be387f85f4c89bdcf21929a7f84.tar.gz evol-hercules-42cd207c4c5f0be387f85f4c89bdcf21929a7f84.tar.bz2 evol-hercules-42cd207c4c5f0be387f85f4c89bdcf21929a7f84.tar.xz evol-hercules-42cd207c4c5f0be387f85f4c89bdcf21929a7f84.zip |
Add script function and packet to set group of cells to given mask (gat value)
New script function: setcells "map name", x1, y1, x2, y2, mask, "wall name"
Diffstat (limited to 'src/emap/init.c')
-rw-r--r-- | src/emap/init.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/emap/init.c b/src/emap/init.c index 271f98a..7f84c95 100644 --- a/src/emap/init.c +++ b/src/emap/init.c @@ -127,6 +127,7 @@ HPExport void plugin_init (void) addScriptCommand("isstr", "v", isStr); addScriptCommand("setbgteam", "ii", setBgTeam); addScriptCommand("checknpccell", "siii", checkNpcCell); + addScriptCommand("setcells", "siiiiis", setCells); do_init_langs(); @@ -185,6 +186,9 @@ HPExport void plugin_init (void) addHookPre("map->gat2cell", emap_gat2cell); addHookPre("map->getcellp", emap_getcellp); addHookPre("map->setgatcell", emap_setgatcell); + addHookPre("map->iwall_set", emap_iwall_set); + addHookPre("map->iwall_get", emap_iwall_get); + addHookPre("map->iwall_remove", emap_iwall_remove); addHookPre("script->get_val_npc_num", eget_val_npcscope_num); addHookPre("script->get_val_ref_num", eget_val_npcscope_num); addHookPre("script->get_val_npc_str", eget_val_npcscope_str); @@ -199,6 +203,7 @@ HPExport void plugin_init (void) addHookPost("clif->authok", eclif_authok_post); addHookPost("clif->changemap", eclif_changemap_post); addHookPost("clif->set_unit_idle", eclif_set_unit_idle_post); + addHookPost("clif->pLoadEndAck", eclif_parse_LoadEndAck_post); addHookPost("status->set_viewdata", estatus_set_viewdata_post); addHookPost("status->read_job_db_sub", estatus_read_job_db_sub); addHookPost("status->calc_pc_", estatus_calc_pc__post); |