Quote:
Originally Posted by Tigairius
There is, but scheduled events are cancelled when the npcserver restarts, so it would be better to use a sleep or a timeout which is not interrupted by the npcserver.
|
Timeouts are reset each time the weapon is updated, right? Is there any way to prevent this, or would I have to create a separate weapon for the timeout?
Quote:
Originally Posted by Loriel
This is retarded, just do nothing until a player actually enters the shop and then calculate how much restocking you have to do.
|
That would defeat the purpose. I don't want the shops to have an endless stock of items at all times. I want a static amount of items each 24 hours; more specific, I want to make sure that there's nothing out of stock after 24 hours. Calculating when 24 hours has passed based on players entering the level seems overly complicated, especially since no facet of the system is used in level NPCs.