From bac319d7f99c9a87c20774a50e13d9c80d2aaf8a Mon Sep 17 00:00:00 2001 From: AnnieRuru Date: Mon, 1 Sep 2014 02:50:15 +0800 Subject: Add MAX_REFINE as hard-coded constant MAX_REFINE has different value for renewal(20) and non-renewal(10) and some server even adjust this value so its better to add this constant so there's no need to add a configuration when making custom refiner scripts --- doc/script_commands.txt | 1 + src/map/script.c | 1 + 2 files changed, 2 insertions(+) diff --git a/doc/script_commands.txt b/doc/script_commands.txt index e964385ba..3a65c86dd 100644 --- a/doc/script_commands.txt +++ b/doc/script_commands.txt @@ -702,6 +702,7 @@ MAX_INVENTORY - Maximum inventory items MAX_ZENY - Maximum Zeny MAX_BG_MEMBERS - Maximum BattleGround members MAX_CHAT_USERS - Maximum Chat users +MAX_REFINE - Maximum Refine level Send targets and status options are also hard-coded and can be found in src/map/script.c::script_hardcoded_constants or in functions that diff --git a/src/map/script.c b/src/map/script.c index 26072cf66..2c893219c 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -19282,6 +19282,7 @@ void script_hardcoded_constants(void) { 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); + script->set_constant("MAX_REFINE",MAX_REFINE,false); /* status options */ script->set_constant("Option_Nothing",OPTION_NOTHING,false); -- cgit v1.2.3-70-g09d2