ID:179668
 
How would i make it so every lets sat 10 minutes the monsters come back
i know it has to do with repop but i am not sure on what to put so could some one please help me
Thanx
You need to make a proc that is called every [insert ammount of time here].
Example:
proc
Respawn()
world.repop()
sleep(1000)//Change this to how long
Respawn()
world
New()
Respawn()

In response to Nadrew
Nadrew wrote:
You need to make a proc that is called every [insert ammount of time here].
Example:
> proc
> Respawn()
> world.repop()
> sleep(1000)//Change this to how long
> Respawn()
> world
> New()
> Respawn()
>



an even better way to do this is....

world
New()
spawn
while(1)
sleep(3000)
Repop()
return ..()

FIREking
In response to FIREking
One little question what number would i put for the time to be one hour exact
thanx nadrew and fireking
In response to Greg
Well one hour is a bit long because most people don't play games that long I suggest around 3 minutes which is 18000. (I think)
In response to Greg
You put the number of ticks you want it to wait for in the sleep() proc.

Air _King said this in another post

"10 ticks = 1 sec 600 ticks= 60 sec = 1 min 600*60= 36000 ticks in one hour..."
In response to Nadrew
1800.

Although ten minutes seems about right, since it's long enough to keep people from waiting around for stuff, and short enough that it still happens regularly.
In response to GateGuardian
Yah but i dont want monsters to come back almost right when there killed
i want to make them wait so they cant gain alot of stats really quick
In response to Greg
Then go for about 5-10 minutes. Because the world will be empty for a long time with an hour delay.
In response to Nadrew
i am setting it at 10 minutes so that would be (3600)
Right?
In response to Greg
I got 6000 maybe my math is wrong.

10 ticks * 60 Seconds = 600 ticks/minute
600 ticks * 10 minutes = 6000 ticks/10 minutes

nope it's right. :)
In response to Evilkevkev
See what i did was take one tenth of 36000 and of course that is 3600 but i am not sure if that is seconds or what so could a math wiz come out and help
In response to Greg
He already told you, 6000 ticks is ten minutes.