![]() |
|
NPC Restock - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: General Help (/Forum-General-Help) +--- Thread: NPC Restock (/Thread-NPC-Restock) Pages: 1 2 |
RE: NPC Restock - XuN - 07-27-2015 07:40 AM 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'. RE: NPC Restock - escribano - 07-27-2015 12:43 PM 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. RE: NPC Restock - escribano - 08-01-2015 02:36 PM 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. |