xienne15 Posted August 2, 2013 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
michaelsoftman Posted August 2, 2013 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
Mad Walker Posted August 2, 2013 Posted August 2, 2013 oh wow, also applies at item scripts right? Quote
xienne15 Posted August 2, 2013 Author 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
Emistry Posted August 2, 2013 Posted August 2, 2013 OnMinute00: if( isday() ){ // startevent.. at day time. } end; Quote
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)
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.