xienne15 Posted August 2, 2013 Group: Members Topic Count: 44 Topics Per Day: 0.01 Content Count: 226 Reputation: 11 Joined: 01/09/12 Last Seen: March 15, 2018 Share Posted August 2, 2013 Info:The invasion will occur when the script detects that the server is night time, and when day time arrives, the invasion will end killing all the monster in a map(prontera) Quote Link to comment Share on other sites More sharing options...
michaelsoftman Posted August 2, 2013 Group: Members Topic Count: 48 Topics Per Day: 0.01 Content Count: 410 Reputation: 29 Joined: 04/04/12 Last Seen: November 28, 2024 Share Posted August 2, 2013 (edited) Just apply these commands to an invasion script. isnight()isday()These functions will return 1 or 0 depending on whether the server is in night mode or day mode. 'isnight' returns 1 if it's night and 0 if it isn't, 'isday' the other way around. They can be used interchangeably, pick the one you like more: // These two are equivalent: if (isday()) mes "I only prowl in the night."; if (isnight()!=1) mes "I only prowl in the night."; Edited August 2, 2013 by michaelsoftman Quote Link to comment Share on other sites More sharing options...
Mad Walker Posted August 2, 2013 Group: Members Topic Count: 37 Topics Per Day: 0.01 Content Count: 177 Reputation: 9 Joined: 06/25/12 Last Seen: October 31, 2016 Share Posted August 2, 2013 oh wow, also applies at item scripts right? Quote Link to comment Share on other sites More sharing options...
xienne15 Posted August 2, 2013 Group: Members Topic Count: 44 Topics Per Day: 0.01 Content Count: 226 Reputation: 11 Joined: 01/09/12 Last Seen: March 15, 2018 Author Share Posted August 2, 2013 (edited) michaelsoftman, on 02 Aug 2013 - 10:45, said: Just apply these commands to an invasion script. isnight() isday() These functions will return 1 or 0 depending on whether the server is in night mode or day mode. 'isnight' returns 1 if it's night and 0 if it isn't, 'isday' the other way around. They can be used interchangeably, pick the one you like more: // These two are equivalent: if (isday()) mes "I only prowl in the night."; if (isnight()!=1) mes "I only prowl in the night."; Thanks but actually i was requesting for a script that is when the night time comes the map will be invaded by zombies(1002),and when day comes, every monster in that map will die. Nothing special or other features should be included, Just the simple invasion without any prizes or such. @night announce "The night has come, The mist entered the city"; then the script will summon ghouls/zombies, once they are killed they will respawn. @day announce "The sun has come, the mist retreated"; all monsters in map will be removed. Edited August 2, 2013 by xienne15 Quote Link to comment Share on other sites More sharing options...
Emistry Posted August 2, 2013 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted August 2, 2013 OnMinute00: if( isday() ){ // startevent.. at day time. } end; Quote Link to comment Share on other sites More sharing options...
xienne15 Posted August 2, 2013 Group: Members Topic Count: 44 Topics Per Day: 0.01 Content Count: 226 Reputation: 11 Joined: 01/09/12 Last Seen: March 15, 2018 Author Share Posted August 2, 2013 Thanks! Quote Link to comment Share on other sites More sharing options...
Question
xienne15
Info:
The invasion will occur when the script detects that the server is night time, and when day time arrives, the invasion will end killing all the monster in a map(prontera)
Link to comment
Share on other sites
5 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.