Quote:
Originally Posted by LoneAngelIbesu
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.