summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-11-08 22:19:51 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-11-08 22:19:51 +0000
commitb14078da1a3de5447a158cbfab324512e158b9b6 (patch)
treefdd321a8164855e78823c4b535f682dc7c21f6d8
parent4b99c9930e41592dee91b04b489ce89a3ec4f668 (diff)
downloadhercules-b14078da1a3de5447a158cbfab324512e158b9b6.tar.gz
hercules-b14078da1a3de5447a158cbfab324512e158b9b6.tar.bz2
hercules-b14078da1a3de5447a158cbfab324512e158b9b6.tar.xz
hercules-b14078da1a3de5447a158cbfab324512e158b9b6.zip
Corrected documentation on monster respawn delay1/delay2 fields to reflect actual server behavior (followup to r11964).
Long ago they meant "delay since last spawn/death"; the current meaning is "fixed base delay + random variance". git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14991 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r--doc/script_commands.txt11
-rw-r--r--src/map/map.h2
2 files changed, 5 insertions, 8 deletions
diff --git a/doc/script_commands.txt b/doc/script_commands.txt
index 743597298..103a84fa3 100644
--- a/doc/script_commands.txt
+++ b/doc/script_commands.txt
@@ -331,13 +331,10 @@ below).
Amount is the amount of monsters that will be spawned when this command is
executed, it is affected by spawn rates in 'battle_athena.conf'.
-Delay1 and delay2 are the monster respawn delays - the first one counts the time
-since a monster defined in this spawn was last respawned and the second one
-counts the time since the monster of this spawn was last killed. Whichever turns
-out to be higher will be used. If the resulting number is smaller than a random
-value between 5 and 10 seconds, this value will be used instead. (Which is
-normally the case if both delay values are zero.) The times are given in
-1/1000ths of a second.
+Delay1 and delay2 control monster respawn delays - the first one is the fixed
+base respawn time, and the second is random variance on top of the base time.
+Both values are given in miliseconds (1000 = 1 second).
+Note that the server also enforces a minimum respawn delay of 5 seconds.
You can specify a custom level to use for the mob different from the one of
the database by adjoining the level after the name with a comma. eg:
diff --git a/src/map/map.h b/src/map/map.h
index 6af6efb2c..8e4507599 100644
--- a/src/map/map.h
+++ b/src/map/map.h
@@ -269,7 +269,7 @@ struct spawn_data {
signed short xs,ys;
unsigned short num; //Number of mobs using this structure
unsigned short active; //Number of mobs that are already spawned (for mob_remove_damaged: no)
- unsigned int delay1,delay2; //Min delay before respawning after spawn/death
+ unsigned int delay1,delay2; //Spawn delay (fixed base + random variance)
struct {
unsigned int size :2; //Holds if mob has to be tiny/large
unsigned int ai :2; //Holds if mob is special ai.