summaryrefslogtreecommitdiff
path: root/src/map/script.h
diff options
context:
space:
mode:
authorDastgir <dastgirpojee@rocketmail.com>2015-08-12 11:20:12 +0530
committerDastgir <dastgirpojee@rocketmail.com>2015-08-12 11:20:12 +0530
commit10f24ba5b82e7e563cb720a8dea9a415fd8055d7 (patch)
tree854d29dfa5096dcb1e427a2b50b47fdb4601b8b8 /src/map/script.h
parentc63f46ef29310ec846b7fb90e02e93a6abd7abdc (diff)
parentbe8b2eaed13475ae043daa81882e490e78396562 (diff)
downloadhercules-10f24ba5b82e7e563cb720a8dea9a415fd8055d7.tar.gz
hercules-10f24ba5b82e7e563cb720a8dea9a415fd8055d7.tar.bz2
hercules-10f24ba5b82e7e563cb720a8dea9a415fd8055d7.tar.xz
hercules-10f24ba5b82e7e563cb720a8dea9a415fd8055d7.zip
Merge branch 'master' of https://github.com/HerculesWS/Hercules
Diffstat (limited to 'src/map/script.h')
-rw-r--r--src/map/script.h8
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;