Quote:
Originally Posted by Raavak
[You must be logged in to view images. Log in or Register.]
There are plenty of people reading this that know how it works, but I don't. I think the spawn is determined from the moment the mob dies with a /random generated number, and is therefore set. This number or time is then accessible by a GM with a command, like /spawntimer #. I'm also sure extended windows screws some of this up and it is re-randomed at the end of the window. But, like I said, I don't know... these are guesses.
|
It would be natural but silly to implement extended windows this way; after all you know whether the timer will fall in the last 25% of the window when you make the initial dice roll. So something like this would work:
Code:
int respawn_ticks(base, variance)
{
int window = random(0, variance);
if(variance-window < ONE_DAY && random(0, 100) > 75)
return respawn_ticks(base+window, ONE_DAY);
else
return base+window;
}