diff options
author | shennetsind <ind@henn.et> | 2014-02-26 15:00:22 -0300 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2014-02-26 15:00:22 -0300 |
commit | 950e3ebcdbbde96b090fa681ce88ecf4069f2f64 (patch) | |
tree | a38f0e664ae8d45422ff5012e9af835db838e6fc /src/map/script.c | |
parent | a5728fd9ada82b21629fd4cd3bbc9e52555b6881 (diff) | |
download | hercules-950e3ebcdbbde96b090fa681ce88ecf4069f2f64.tar.gz hercules-950e3ebcdbbde96b090fa681ce88ecf4069f2f64.tar.bz2 hercules-950e3ebcdbbde96b090fa681ce88ecf4069f2f64.tar.xz hercules-950e3ebcdbbde96b090fa681ce88ecf4069f2f64.zip |
Introducing #define npc constants
As proposed by AnnieRuru in http://hercules.ws/board/topic/4320-getserverdef/
They're input directly by the server, Haru's idea! (Thank you).
Also introducing the MAX_CHAT_USERS define as requested by AnnieRuru.
Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/script.c')
-rw-r--r-- | src/map/script.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/map/script.c b/src/map/script.c index 6b31ee7b4..e355db828 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -19063,6 +19063,17 @@ void script_label_add(int key, int pos) { **/ void script_hardcoded_constants(void) { + /* server defines */ + script->set_constant("PACKETVER",PACKETVER,false); + script->set_constant("MAX_LEVEL",MAX_LEVEL,false); + script->set_constant("MAX_STORAGE",MAX_STORAGE,false); + script->set_constant("MAX_GUILD_STORAGE",MAX_GUILD_STORAGE,false); + script->set_constant("MAX_CART",MAX_INVENTORY,false); + script->set_constant("MAX_INVENTORY",MAX_INVENTORY,false); + script->set_constant("MAX_ZENY",MAX_ZENY,false); + script->set_constant("MAX_BG_MEMBERS",MAX_BG_MEMBERS,false); + script->set_constant("MAX_CHAT_USERS",MAX_CHAT_USERS,false); + /* status options */ script->set_constant("Option_Nothing",OPTION_NOTHING,false); script->set_constant("Option_Sight",OPTION_SIGHT,false); |