Deviszh Posted September 13, 2016 Group: Members Topic Count: 51 Topics Per Day: 0.02 Content Count: 173 Reputation: 3 Joined: 09/04/16 Last Seen: November 6, 2016 Share Posted September 13, 2016 as the title says, i find some scripts but it giving me error in mapserver. Quote Link to comment Share on other sites More sharing options...
0 Emistry Posted September 13, 2016 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10017 Reputation: 2369 Joined: 10/28/11 Last Seen: 9 hours ago Share Posted September 13, 2016 conf/battle/misc.conf#L60-L71 Quote Link to comment Share on other sites More sharing options...
1 Rynbef Posted September 13, 2016 Group: Forum Moderator Topic Count: 47 Topics Per Day: 0.01 Content Count: 937 Reputation: 124 Joined: 05/23/12 Last Seen: Thursday at 01:31 PM Share Posted September 13, 2016 Better use this script because to use an atcommand isnt needed and if you restart/reload the server after 18 o'clock it will be always day. - script DaynNight -1,{ OnInit: if(gettime(3) >= 18 || gettime(3) < 6){night;} else {day;} end; OnClock0600: day; end; OnClock1800: night; end; } Rynbef~ Quote Link to comment Share on other sites More sharing options...
0 Yugosh Posted September 13, 2016 Group: Members Topic Count: 17 Topics Per Day: 0.00 Content Count: 65 Reputation: 0 Joined: 05/09/12 Last Seen: April 3, 2023 Share Posted September 13, 2016 (edited) - script pagi -1,{ end; OnClock0600: atcommand "@day"; end; } - script malam -1,{ end; OnClock1800: atcommand "@night"; end; } Edited December 11, 2016 by Emistry Quote Link to comment Share on other sites More sharing options...
0 Deviszh Posted September 14, 2016 Group: Members Topic Count: 51 Topics Per Day: 0.02 Content Count: 173 Reputation: 3 Joined: 09/04/16 Last Seen: November 6, 2016 Author Share Posted September 14, 2016 (edited) conf/battle/misc.conf#L60-L71 - script pagi -1,{ end; OnClock0600: atcommand "@day"; end; } - script malam -1,{ end; OnClock1800: atcommand "@night"; end; } Better use this script because to use an atcommand isnt needed and if you restart/reload the server after 18 o'clock it will be always day. - script DaynNight -1,{ OnInit: if(gettime(3) >= 18 || gettime(3) < 6){night;} else {day;} end; OnClock0600: day; end; OnClock1800: night; end; } Rynbef~ Thank you all! But my game time is permanent Day time. How to change this? Edited September 14, 2016 by Kinkkynipps Quote Link to comment Share on other sites More sharing options...
0 Hijirikawa Posted September 14, 2016 Group: Members Topic Count: 19 Topics Per Day: 0.01 Content Count: 193 Reputation: 42 Joined: 07/21/16 Last Seen: August 7, 2019 Share Posted September 14, 2016 Read Emistry's post. Quote Link to comment Share on other sites More sharing options...
0 Deviszh Posted September 15, 2016 Group: Members Topic Count: 51 Topics Per Day: 0.02 Content Count: 173 Reputation: 3 Joined: 09/04/16 Last Seen: November 6, 2016 Author Share Posted September 15, 2016 Read Emistry's post. i cant find, link? Quote Link to comment Share on other sites More sharing options...
0 Hijirikawa Posted September 15, 2016 Group: Members Topic Count: 19 Topics Per Day: 0.01 Content Count: 193 Reputation: 42 Joined: 07/21/16 Last Seen: August 7, 2019 Share Posted September 15, 2016 (edited) // Choose if server begin with night (yes) or day (no) night_at_start: no // Define duration in msec of the day (default: 7200000 = 2 hours) // Set to 0 to disable day cycle (but not @day GM command). // Except 0, minimum is 60000 (1 minute) day_duration: 0 // Define duration in msec of the night (default: 1800000 = 30 min) // Set to 0 to disable night cycle (but not @night GM command). // Except 0, minimum is 60000 (1 minute) night_duration: 0 Edited December 11, 2016 by Emistry Quote Link to comment Share on other sites More sharing options...
0 Deviszh Posted September 15, 2016 Group: Members Topic Count: 51 Topics Per Day: 0.02 Content Count: 173 Reputation: 3 Joined: 09/04/16 Last Seen: November 6, 2016 Author Share Posted September 15, 2016 // Choose if server begin with night (yes) or day (no) night_at_start: no // Define duration in msec of the day (default: 7200000 = 2 hours) // Set to 0 to disable day cycle (but not @day GM command). // Except 0, minimum is 60000 (1 minute) day_duration: 0 // Define duration in msec of the night (default: 1800000 = 30 min) // Set to 0 to disable night cycle (but not @night GM command). // Except 0, minimum is 60000 (1 minute) night_duration: 0 thanks Quote Link to comment Share on other sites More sharing options...
Question
Deviszh
as the title says, i find some scripts but it giving me error in mapserver.
Link to comment
Share on other sites
8 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.