Page 1 of 1

Timed events.

Posted: Fri Oct 26, 2007 1:40 pm
by Mightywayne
So my game's doing pretty well, almost ready for launch. Super.

I'm having trouble with what I call "ticks". My game has a part where you get a monster in an egg, and it hatches whenever the next tick happens. The problem is, the ticks are every 6 hours. I'd like to make it so the egg would be hatched in 15 minutes, but not have the server checking every monster every 15 minutes just to see if someone's egg is ready to hatch.

Any idea on how to do this?

Posted: Sat Oct 27, 2007 12:26 am
by Kieran Huggins
Sounds like a job for CRON and a MySQL query.