mirror of
https://github.com/emagi/eq2emu
synced 2026-08-12 18:23:04 -04:00
536 B
536 B
Function: IsNight(Zone)
Description: Checks if it is currently nighttime in the specified zone. This usually refers to the game’s day/night cycle.
Parameters:
Zone: Zone - The zone to check if the time is night.
Returns: Return's true if the current time is dusk/night. Otherwise return's false.
Example:
-- Example usage: On hail tell the user if it is night or day
function hail(NPC,Spawn)
if IsNight(GetZone(NPC)) then
Say(NPC, "It is night!")
else
Say(NPC, "It is day!")
end
end