[GH-ISSUE #595] Shops restock first item instantly after purchasing #230

Open
opened 2026-05-15 02:56:42 +00:00 by Dark98 · 1 comment
Owner

Originally created by @halogod35 on GitHub (Feb 6, 2023).
Original GitHub issue: https://github.com/2006-Scape/2006Scape/issues/595

Buying an item from a fully stocked item and after the restocking timer is up, the item you buy is instantly restocked.

Intended behavior: if the shop's item is maxed out, and you purchase an item, it should start the timer after that purchase

Originally created by @halogod35 on GitHub (Feb 6, 2023). Original GitHub issue: https://github.com/2006-Scape/2006Scape/issues/595 Buying an item from a fully stocked item and after the restocking timer is up, the item you buy is instantly restocked. Intended behavior: if the shop's item is maxed out, and you purchase an item, it should start the timer after that purchase
Author
Owner

@advnau commented on GitHub (Feb 6, 2023):

This issue with shop refreshing being instant is that in the code the stock updates on a time from last update/shop change, so with the initial purchase, the time is greater than that amount so it restocks the first instantly.

If I recall in RS it works by all shops updating on the same timer, can someone confirm that this is how the system works so we can fix the current system?

<!-- gh-comment-id:1419293092 --> @advnau commented on GitHub (Feb 6, 2023): This issue with shop refreshing being instant is that in the code the stock updates on a time from last update/shop change, so with the initial purchase, the time is greater than that amount so it restocks the first instantly. If I recall in RS it works by all shops updating on the same timer, can someone confirm that this is how the system works so we can fix the current system?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: 2006-Scape/2006Scape#230