Thread: GS2 'cron jobs'
View Single Post
  #13  
Old 05-12-2009, 10:58 PM
Tigairius Tigairius is offline
The Cat
Tigairius's Avatar
Join Date: Jan 2007
Location: Missouri, USA
Posts: 4,240
Tigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant future
Quote:
Originally Posted by LoneAngelIbesu View Post
Server flag would allow all shops to be updated at the same time, which is what I want to do. Loriel's way is just complicating things by updating on a shop-by-shop basis. Having all shops update at the same time is required, anyways, for the global managing GUI that I've made.
We're all saying that you should keep a database and only update the shops every time someone enters the level to prevent the use of a timeout/sleep. It's really the best way to go about it, if you wanted to restock all shops just add a DBNPC.restockall = true boolean and check it when a player enters a shop.
__________________


“Shoot for the moon. Even if you miss, you'll land among the stars.”
Reply With Quote