summaryrefslogtreecommitdiff
path: root/src/emap/script.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-05-02 19:06:39 +0300
committerAndrei Karas <akaras@inbox.ru>2016-05-02 19:06:39 +0300
commit1fc6228436311da0d70f14176fe47f3e37f6faa6 (patch)
tree9434c90ab44ac55200daa199f524fa11f3168678 /src/emap/script.h
parent00d1b8bf9fc3648730904b6f86696417f4445037 (diff)
downloadevol-hercules-1fc6228436311da0d70f14176fe47f3e37f6faa6.tar.gz
evol-hercules-1fc6228436311da0d70f14176fe47f3e37f6faa6.tar.bz2
evol-hercules-1fc6228436311da0d70f14176fe47f3e37f6faa6.tar.xz
evol-hercules-1fc6228436311da0d70f14176fe47f3e37f6faa6.zip
Update function hook prototypes for support new hercules.
Diffstat (limited to 'src/emap/script.h')
-rw-r--r--src/emap/script.h36
1 files changed, 27 insertions, 9 deletions
diff --git a/src/emap/script.h b/src/emap/script.h
index 852c997..3985dcf 100644
--- a/src/emap/script.h
+++ b/src/emap/script.h
@@ -4,14 +4,32 @@
#ifndef EVOL_MAP_SCRIPT
#define EVOL_MAP_SCRIPT
-int escript_reload(void);
-void escript_load_translations(void);
-void escript_load_parameters(void);
-void eset_reg_npcscope_num(struct script_state* st, struct reg_db *n, int64 *num, const char* name, int *val);
-int eget_val_npcscope_num(struct script_state* st, struct reg_db *n, struct script_data* data);
-void eset_reg_npcscope_str(struct script_state* st, struct reg_db *n, int64 *num, const char* name, const char *str);
-char *eget_val_npcscope_str(struct script_state* st, struct reg_db *n, struct script_data* data);
-void script_run_item_amount_script(TBL_PC *sd, struct script_code *itemScript, int itemId, int amount);
-void script_run_card_script(TBL_PC *sd, struct script_code *itemScript, int itemId, int cardId);
+int escript_reload_pre(void);
+void escript_load_translations_pre(void);
+void escript_load_parameters_pre(void);
+void eset_reg_npcscope_num_pre(struct script_state **stPtr,
+ struct reg_db **nPtr,
+ int64 *numPtr,
+ const char **namePtr,
+ int *val);
+int eget_val_npcscope_num_pre(struct script_state **stPtr,
+ struct reg_db **nPtr,
+ struct script_data **dataPtr);
+void eset_reg_npcscope_str_pre(struct script_state **stPtr,
+ struct reg_db **nPtr,
+ int64 *num,
+ const char **namePtr,
+ const char **strPtr);
+char *eget_val_npcscope_str_pre(struct script_state **stPtr,
+ struct reg_db **nPtr,
+ struct script_data **dataPtr);
+void script_run_item_amount_script(TBL_PC *sd,
+ struct script_code *itemScript,
+ int itemId,
+ int amount);
+void script_run_card_script(TBL_PC *sd,
+ struct script_code *itemScript,
+ int itemId,
+ int cardId);
#endif // EVOL_MAP_SCRIPT