summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAsheraf <Asheraf@users.noreply.github.com>2019-03-02 19:02:25 +0000
committerGitHub <noreply@github.com>2019-03-02 19:02:25 +0000
commit006e08cd042fa5d04c64e701ac2a1b03aafbc2a9 (patch)
treeafcb85b6cf18cb29b865146ef59be1b1544a4cd5
parent1ac84c2dd856087a4a72fec95b3322137187637a (diff)
parentc8e10d633d67b0ba0ff9d07d8521390a54aa63a3 (diff)
downloadhercules-006e08cd042fa5d04c64e701ac2a1b03aafbc2a9.tar.gz
hercules-006e08cd042fa5d04c64e701ac2a1b03aafbc2a9.tar.bz2
hercules-006e08cd042fa5d04c64e701ac2a1b03aafbc2a9.tar.xz
hercules-006e08cd042fa5d04c64e701ac2a1b03aafbc2a9.zip
Merge pull request #2390 from AnnieRuru/63-MOB_CLONE_START
Add MOB_CLONE_START & MOB_CLONE_END to server defined constants
-rw-r--r--doc/script_commands.txt2
-rw-r--r--src/map/script.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/doc/script_commands.txt b/doc/script_commands.txt
index c3cc8a799..5eee3a4e5 100644
--- a/doc/script_commands.txt
+++ b/doc/script_commands.txt
@@ -718,6 +718,8 @@ MAX_CHAT_USERS - Maximum Chat users
MAX_REFINE - Maximum Refine level
MAX_MENU_OPTIONS - Maximum NPC menu options
MAX_MENU_LENGTH - Maximum NPC menu string length
+MOB_CLONE_START - Clone ID start from this range
+MOB_CLONE_END - Clone ID end with this range
Send targets and status options are also hard-coded and can be found
in 'doc/constants.md'.
diff --git a/src/map/script.c b/src/map/script.c
index 7e6e06376..24cb8e4f4 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -25845,6 +25845,8 @@ static void script_hardcoded_constants(void)
script->set_constant("MAX_REFINE",MAX_REFINE,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);
+ script->set_constant("MOB_CLONE_END", MOB_CLONE_END, false, false);
script->constdb_comment("status options");
script->set_constant("Option_Nothing",OPTION_NOTHING,false, false);