diff options
-rw-r--r-- | src/emap/init.c | 3 | ||||
-rw-r--r-- | src/emap/script.c | 9 | ||||
-rw-r--r-- | src/emap/script.h | 2 |
3 files changed, 14 insertions, 0 deletions
diff --git a/src/emap/init.c b/src/emap/init.c index 17b1841..1441487 100644 --- a/src/emap/init.c +++ b/src/emap/init.c @@ -172,6 +172,9 @@ HPExport void plugin_init (void) addHookPre("script->set_reg_npc_num", escript_set_reg_npc_num); addHookPre("script->get_val_npc_num", escript_get_val_npcscope_num); addHookPre("script->get_val_ref_num", escript_get_val_npcscope_num); + addHookPre("script->set_reg_npc_str", escript_set_reg_npc_str); + addHookPre("script->get_val_npc_str", escript_get_val_npcscope_str); + addHookPre("script->get_val_ref_str", escript_get_val_npcscope_str); addHookPre("status->calc_pc_additional", estatus_calc_pc_additional); addHookPost("clif->getareachar_unit", eclif_getareachar_unit_post); diff --git a/src/emap/script.c b/src/emap/script.c index 002d581..05266d1 100644 --- a/src/emap/script.c +++ b/src/emap/script.c @@ -173,6 +173,15 @@ int escript_get_val_npcscope_num(struct script_state* st, struct reg_db *n, stru return 0; } +void escript_set_reg_npc_str(struct script_state* st, struct reg_db *n, int64 *num, const char* name, const char *str) +{ +} + +char *escript_get_val_npcscope_str(struct script_state* st, struct reg_db *n, struct script_data* data) +{ + return NULL; +} + uint32 MakeDWord(uint16 word0, uint16 word1) { return ((uint32)(word0)) | ((uint32)(word1 << 0x10)); diff --git a/src/emap/script.h b/src/emap/script.h index dcd0bf5..d17cd29 100644 --- a/src/emap/script.h +++ b/src/emap/script.h @@ -6,6 +6,8 @@ void escript_set_reg_npc_num(struct script_state* st, struct reg_db *n, int64 *num, const char* name, int *val); int escript_get_val_npcscope_num(struct script_state* st, struct reg_db *n, struct script_data* data); +void escript_set_reg_npc_str(struct script_state* st, struct reg_db *n, int64 *num, const char* name, const char *str); +char *escript_get_val_npcscope_str(struct script_state* st, struct reg_db *n, struct script_data* data); BUILDIN(l); BUILDIN(lg); |