summaryrefslogtreecommitdiff
path: root/src/map/script.h
diff options
context:
space:
mode:
authorai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-02-08 10:43:51 +0000
committerai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-02-08 10:43:51 +0000
commitc4f7126a6d75662c62242ec23ce76292c3f35470 (patch)
treea8c3b39ba5f1c775e90cab0ad99b89e29f71e7f2 /src/map/script.h
parent2c3da84a90b881785ff7336e6f694ccbfbcb9326 (diff)
downloadhercules-c4f7126a6d75662c62242ec23ce76292c3f35470.tar.gz
hercules-c4f7126a6d75662c62242ec23ce76292c3f35470.tar.bz2
hercules-c4f7126a6d75662c62242ec23ce76292c3f35470.tar.xz
hercules-c4f7126a6d75662c62242ec23ce76292c3f35470.zip
* Moved script constant manipulation code into separate functions script_get_constant / script_set_constant. [Ai4rei]
- Added protection against overwriting existing names in script constant creation code. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14701 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/script.h')
-rw-r--r--src/map/script.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map/script.h b/src/map/script.h
index d6ede0e8b..c272f2d32 100644
--- a/src/map/script.h
+++ b/src/map/script.h
@@ -167,6 +167,9 @@ struct DBMap* script_get_label_db(void);
struct DBMap* script_get_userfunc_db(void);
void script_run_autobonus(const char *autobonus,int id, int pos);
+bool script_get_constant(const char* name, int* value);
+void script_set_constant(const char* name, int value, bool isparameter);
+
void script_cleararray_pc(struct map_session_data* sd, const char* varname, void* value);
void script_setarray_pc(struct map_session_data* sd, const char* varname, uint8 idx, void* value, int* refcache);