[Quest]Zi/Noapte Automat
Scris: Sâm Oct 28, 2023 7:06 pm
Cod: Selectaţi tot
quest dynamic_day_night begin
state start begin
when login or logout begin
local ora = os.date("%H")
if (os.date("%H")) >= "19" or (os.date("%H")) <= "07" then
if game.get_event_flag("xmas_boom") == 0 then
game.set_event_flag("xmas_boom", 1)
end
notice ( "[Server] La orele 8:00 Soarele îti va varsa iar razele calde peste aceste tinuturi." )
else
if game.get_event_flag("xmas_boom") == 1 then
game.set_event_flag("xmas_boom", 0)
end
notice ( "[Server] La orele 19:00 soarele va apune." )
end
end
end
end