Deviszh Posted September 13, 2016 Posted September 13, 2016 as the title says, i find some scripts but it giving me error in mapserver. Quote
1 Rynbef Posted September 13, 2016 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
0 Yugosh Posted September 13, 2016 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
0 Deviszh Posted September 14, 2016 Author 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
0 Deviszh Posted September 15, 2016 Author Posted September 15, 2016 Read Emistry's post. i cant find, link? Quote
0 Hijirikawa Posted September 15, 2016 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
0 Deviszh Posted September 15, 2016 Author 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
Question
Deviszh
as the title says, i find some scripts but it giving me error in mapserver.
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.