Quote:
Originally Posted by Tigairius
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.
|
I've already finished the system. Auto-updating was a last-minute addition that I had accidentally overlooked. When a player enters a level with a shop in it, the serverr.restocktime check that Inverness suggested is used.