diff options
author | Haruna <haru@dotalux.com> | 2015-08-11 02:36:37 +0200 |
---|---|---|
committer | Haruna <haru@dotalux.com> | 2015-08-11 02:36:37 +0200 |
commit | e556fc1b65905ad186de70a9774b8b0aceee9bc0 (patch) | |
tree | ae7b0364ce80f7a479b3a10b6221b925f6e709ed /src/map/script.h | |
parent | 5ad96bcc2af2a5a76348fca87e52a0f038461808 (diff) | |
parent | 30bb5f0fb8c45b518993527fad628754c2723581 (diff) | |
download | hercules-e556fc1b65905ad186de70a9774b8b0aceee9bc0.tar.gz hercules-e556fc1b65905ad186de70a9774b8b0aceee9bc0.tar.bz2 hercules-e556fc1b65905ad186de70a9774b8b0aceee9bc0.tar.xz hercules-e556fc1b65905ad186de70a9774b8b0aceee9bc0.zip |
Merge pull request #625 from 4144/scripthooks
Add scripts invoking hooks
Diffstat (limited to 'src/map/script.h')
-rw-r--r-- | src/map/script.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/map/script.h b/src/map/script.h index 93d60f416..b3d2a3c8a 100644 --- a/src/map/script.h +++ b/src/map/script.h @@ -19,6 +19,7 @@ * Declarations **/ struct eri; +struct item_data; /** * Defines @@ -636,7 +637,9 @@ struct script_interface { void (*set_constant2) (const char *name, int value, bool isparameter); bool (*get_constant) (const char* name, int* value); void (*label_add)(int key, int pos); - void (*run) (struct script_code *rootscript,int pos,int rid,int oid); + void (*run) (struct script_code *rootscript, int pos, int rid, int oid); + void (*run_npc) (struct script_code *rootscript, int pos, int rid, int oid); + void (*run_pet) (struct script_code *rootscript, int pos, int rid, int oid); void (*run_main) (struct script_state *st); int (*run_timer) (int tid, int64 tick, int id, intptr_t data); int (*set_var) (struct map_session_data *sd, char *name, void *val); @@ -765,6 +768,9 @@ struct script_interface { uint8 (*add_language) (const char *name); const char *(*get_translation_file_name) (const char *file); void (*parser_clean_leftovers) (void); + void (*run_use_script) (struct map_session_data *sd, struct item_data *data, int oid); + void (*run_item_equip_script) (struct map_session_data *sd, struct item_data *data, int oid); + void (*run_item_unequip_script) (struct map_session_data *sd, struct item_data *data, int oid); }; struct script_interface *script; |