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: #11
RE: NPC Restock
Think about restock like a 2 way function, the first one 'restock' clears everything, so nothing gets duplicated or something like that, the second one 'restock 1' is generating everything again and setting it up 'ready to shop'.
07-27-2015 07:40 AM
Find all posts by this user Like Post Quote this message in a reply
[+] 1 user Likes XuN's post
escribano
Journeyman
*

Posts: 170
Likes Given: 16
Likes Received: 32 in 23 posts
Joined: Nov 2012
Reputation: 2

Dragon Shard

Post: #12
RE: NPC Restock
Yeah XuN, i know.. but sphere aren't doing this... when sphere restock a npc, it run the "cleaning restock" but not the "setting up restock".

But anyway, i solved that making some hard-coded functions on the buy/sell packet.

Thanks.

UltimaPHP - OpenSource Ultima Online Server v0.1-pre-alpha under development, we need help!
07-27-2015 12:43 PM
Find all posts by this user Like Post Quote this message in a reply
escribano
Journeyman
*

Posts: 170
Likes Given: 16
Likes Received: 32 in 23 posts
Joined: Nov 2012
Reputation: 2

Dragon Shard

Post: #13
RE: NPC Restock
Dudes.. i fixed the problem setting regions to not resotck and scripting a trigger to be fired when a player is trying to buy or sell something, it checks if NPC have something on the layers.. if not, do the restock.

UltimaPHP - OpenSource Ultima Online Server v0.1-pre-alpha under development, we need help!
08-01-2015 02:36 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


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