Issue information

Issue ID
#1718
Status
Fixed
Severity
Low
Started
Hercules Elf Bot
Jun 19, 2008 17:52
Last Post
Hercules Elf Bot
Feb 7, 2012 20:57
Confirmation
Yes (1)
No (0)

Hercules Elf Bot - Jun 19, 2008 17:52

Originally posted by [b]Inkfish[/b]
http://www.eathena.ws/board/index.php?autocom=bugtracker&showbug=1718

Here is the document:
[code]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.[/code]

and here is the code
[code]spawntime = md->spawn->delay1; //Base respawn time
if (md->spawn->delay2) //random variance
spawntime+= rand()%md->spawn->delay2;

if (spawntime < 5000) //Min respawn time (is it needed?)
spawntime = 5000;
[/code]

This post has been edited by Brian on Jan 18, 2012 19:51

Hercules Elf Bot - Jan 17, 2012 20:27

Originally posted by [b]Gepard[/b]
Fixed in [rev=14991]