Day and Night
Day and Night
The server now keep's track if it is day or night and I've added LUA functions to support it. It will be active next time I update NT.
Examples
Examples
Code: Select all
function use(Item, Player)
if IsDay(Player) then
SendMessageToPlayer(Player, "daytime.")
end
if IsNight(Player) then
SendMessageToPlayer(Player, "Night Time.")
end
end
Re: Day and Night
OH sweet !
We can use this to have certain mobs spawn at day time or night time only ?
We can use this to have certain mobs spawn at day time or night time only ?
Re: Day and Night
Yes if you are using the SpawnNPC() function and want to check if it's day or night.
I really would like to add a column in the unreal_location_placement so it can be applied to all npc something like 0 = normal 1 = day 2 = night but need to get zippy's input on this since he did a lot of the spawning code.
I really would like to add a column in the unreal_location_placement so it can be applied to all npc something like 0 = normal 1 = day 2 = night but need to get zippy's input on this since he did a lot of the spawning code.
Re: Day and Night
Oh man you guys are awesome
I was wracking my brains how to implement the by night Quest spawns without flooding the Tremean farm area with spawns of various wolfs if to many players where doing that series of quest at same time.
Now this will help ill go change the quest scripts to check for night time now.
I was wracking my brains how to implement the by night Quest spawns without flooding the Tremean farm area with spawns of various wolfs if to many players where doing that series of quest at same time.
Now this will help ill go change the quest scripts to check for night time now.
Re: Day and Night
Very nice!
Re: Day and Night
Thanks to Foof you can now set a spawn to only spawn day, night or both now so no need to do it via lua in most situations.
Under the location tab of a spawn you will now see spawn_cycle which is where you can set the value.
0 = day/night
1 = day
2 = night
Under the location tab of a spawn you will now see spawn_cycle which is where you can set the value.
0 = day/night
1 = day
2 = night
You do not have the required permissions to view the files attached to this post.
Re: Day and Night
That's really cool!
Maybe now we can make sure the stupid COB entrance quest guy actually shows up at night.
Maybe now we can make sure the stupid COB entrance quest guy actually shows up at night.

Re: Day and Night
Wooot!!!!
Thank you Foof and gang!!! i can now have step 5 and step 8 o f By night series of quest work right instead of my work arounds 8).
Thank you Foof and gang!!! i can now have step 5 and step 8 o f By night series of quest work right instead of my work arounds 8).