I would want to put a script on my server which does spawn 2-2 treasure boxes to every field and some dungeons, and once a player kills a treasue box, it will drop some items. The box's respawn time should be 3 days. Please help me with this npc I have no idea how to write it.
Thanks