function onStartUp()
if os.date('%A') == "Sunday" then
doCreateNpc("Rashid", {x = 11111, y = 11111, z = 11})
elseif os.date('%A') == "Monday" then
doCreateNpc("Rashid", {x = 22222, y = 22222, z = 22})
elseif os.date('%A') == "Tuesday" then
doCreateNpc("Rashid", {x = 33333, y = 33333, z = 33})
elseif os.date('%A') == "Wednesday" then
doCreateNpc("Rashid", {x = 44444, y = 44444, z = 44})
elseif os.date('%A') == "Thursday" then
doCreateNpc("Rashid", {x = 55555, y = 55555, z = 55})
elseif os.date('%A') == "Friday" then
doCreateNpc("Rashid", {x = 66666, y = 66666, z = 66})
elseif os.date('%A')...
Perfect. Script works perfectly now =)
Thank you for your help I appreciate it!
Works fine for me. However I do close and open server every day when server is saving. I do not think it will change position without actually restarting server? I could be wrong.Working all ? I have a problem.
My Rashid not change position. Yesterday stay on pos=1 and now stay pos=1.
Whats wrong?
Works fine for me. However I do close and open server every day when server is saving. I do not think it will change position without actually restarting server? I could be wrong.
The script already do a check every 5 minutes, so, just wait 23:55~00:10 to see the script changing npc pos.Ok, but i need no when i restart server. My server no have shutdown everyday, only on Saturday.
I need script when Rashid change position on time 23:59...