Hey, i need help making some changes in this script: http://pastebin.com/zLV9b6EX
What i want to do, is to make the spawn of an specific theme (themes are handled in the db) be automatic every day at X hour, removing completely the npc gossip functions.
After doing some research, i noticed that UNIX_TIMESTAMP was the function that needs to be used to do this, but making an:
didn't work.
Could somebody please help me or try to do it?
EDIT: Read also response #2 to this post. If you are going to help me you must know that both ways of fixing my "problem" are ok, but i prefer the one is explained at this comment (#1).
(My problem is that i want to make the players know when they are going to be able to spawn another theme throught the NPC. With the way in response #1 the problem is fixing the UNIX_TIMESTAMP thing, IDK how to deal with it. With the way in response #2 the problem is making the global announce appear in-game, read also #6 to take a look at my try to fix it).
What i want to do, is to make the spawn of an specific theme (themes are handled in the db) be automatic every day at X hour, removing completely the npc gossip functions.
After doing some research, i noticed that UNIX_TIMESTAMP was the function that needs to be used to do this, but making an:
Code:
if (UNIX_TIMESTAMP(0000-00-00 00:00:00))
Could somebody please help me or try to do it?
EDIT: Read also response #2 to this post. If you are going to help me you must know that both ways of fixing my "problem" are ok, but i prefer the one is explained at this comment (#1).
(My problem is that i want to make the players know when they are going to be able to spawn another theme throught the NPC. With the way in response #1 the problem is fixing the UNIX_TIMESTAMP thing, IDK how to deal with it. With the way in response #2 the problem is making the global announce appear in-game, read also #6 to take a look at my try to fix it).
Last edited: