The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
NPC Restock
Author Message
XuN
Sphere Developer
*****

Posts: 852
Likes Given: 102
Likes Received: 156 in 119 posts
Joined: Jul 2013
Reputation: 30



Post: #7
RE: NPC Restock
I never told you to use default restock, just that 'restock' custom function, and only region by region ... doing it world-wide is insane for a full spawned shard!

You don't have to restock all npcs in the server, just region by region, create a memory item (or a repeating timerf) forcing ONE REGION to restock its npcs, so you'll end with like 10 timers at max depending on the amount of cities with vendors you have, that will decrease the impact a lot.

Another idea is to do it for each vendor individually, intercept the 'buy' and 'sell' speechs on the vendors and create a memory on them which force restock when timing out and remove it, so it will not regenerate anything until the next time a shop command is being heard by them.
07-22-2015 06:14 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
NPC Restock - escribano - 07-19-2015, 12:51 PM
RE: NPC Restock - azmanomer - 07-19-2015, 04:19 PM
RE: NPC Restock - Paulo_BR - 07-20-2015, 03:59 AM
RE: NPC Restock - XuN - 07-20-2015, 05:46 PM
RE: NPC Restock - escribano - 07-21-2015, 08:01 AM
RE: NPC Restock - escribano - 07-21-2015, 09:29 AM
RE: NPC Restock - XuN - 07-22-2015 06:14 PM
RE: NPC Restock - escribano - 07-23-2015, 12:55 AM
RE: NPC Restock - XuN - 07-24-2015, 06:47 PM
RE: NPC Restock - escribano - 07-25-2015, 04:27 PM
RE: NPC Restock - XuN - 07-27-2015, 07:40 AM
RE: NPC Restock - escribano - 07-27-2015, 12:43 PM
RE: NPC Restock - escribano - 08-01-2015, 02:36 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)