Thread: GS2 'cron jobs'
View Single Post
  #3  
Old 05-11-2009, 11:07 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by Inverness View Post
Or you can just do serverr.restocktime = timevar2 + 86400 then if (timevar2 >= serverr.restocktime) restock().
That's what I'd do, but I'd save it in a 'server.' var; no need to send it to all the players (not a big deal here, but it's a good idea to encourage people not to use serverr when not needed).

EDIT: To be honest, I'd probably use a database NPC.
__________________
Reply With Quote