summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2019-04-07 23:11:24 +0200
committerGitHub <noreply@github.com>2019-04-07 23:11:24 +0200
commita48dfbf61dcbc25cb29e276a48665fb720ecc4e9 (patch)
tree8d404b5890a902a31553b713558aaac12a383b8f
parentab975f47579e1522dd6da8996913ac31c2e72207 (diff)
parent9fa9bddbbdbdb7a81b68cc9c8bc05da1efb0f68d (diff)
downloadhercules-a48dfbf61dcbc25cb29e276a48665fb720ecc4e9.tar.gz
hercules-a48dfbf61dcbc25cb29e276a48665fb720ecc4e9.tar.bz2
hercules-a48dfbf61dcbc25cb29e276a48665fb720ecc4e9.tar.xz
hercules-a48dfbf61dcbc25cb29e276a48665fb720ecc4e9.zip
Merge pull request #2367 from AnnieRuru/54-MAX_ITEM_ID
Add new server define constant MAX_ITEM_ID
-rw-r--r--doc/script_commands.txt1
-rw-r--r--src/map/script.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/doc/script_commands.txt b/doc/script_commands.txt
index 416a84dc7..180919237 100644
--- a/doc/script_commands.txt
+++ b/doc/script_commands.txt
@@ -716,6 +716,7 @@ MAX_BANK_ZENY - Maximum Zeny in the bank
MAX_BG_MEMBERS - Maximum BattleGround members
MAX_CHAT_USERS - Maximum Chat users
MAX_REFINE - Maximum Refine level
+MAX_ITEM_ID - Maximum Item ID
MAX_MENU_OPTIONS - Maximum NPC menu options
MAX_MENU_LENGTH - Maximum NPC menu string length
MOB_CLONE_START - Clone ID start from this range
diff --git a/src/map/script.c b/src/map/script.c
index 605293893..bfb7e9d37 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -25949,6 +25949,7 @@ static void script_hardcoded_constants(void)
script->set_constant("MAX_BG_MEMBERS",MAX_BG_MEMBERS,false, false);
script->set_constant("MAX_CHAT_USERS",MAX_CHAT_USERS,false, false);
script->set_constant("MAX_REFINE",MAX_REFINE,false, false);
+ script->set_constant("MAX_ITEM_ID",MAX_ITEM_ID,false, false);
script->set_constant("MAX_MENU_OPTIONS", MAX_MENU_OPTIONS, false, false);
script->set_constant("MAX_MENU_LENGTH", MAX_MENU_LENGTH, false, false);
script->set_constant("MOB_CLONE_START", MOB_CLONE_START, false, false);