Jump to content
  • 0

script night mode


IsabelaFernandez

Question


  • Group:  Members
  • Topic Count:  145
  • Topics Per Day:  0.07
  • Content Count:  354
  • Reputation:   8
  • Joined:  04/16/18
  • Last Seen:  

 

hello friends, I would like a simple script to make @night always active

?

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 1

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.01
  • Content Count:  233
  • Reputation:   50
  • Joined:  12/20/18
  • Last Seen:  

// conf/battle/misc.conf#L65

Actual -> night_at_start: no
Alter -> night_at_start: yes


// conf/battle/misc.conf#L75

Actual -> night_duration: 0
Keep at 0, but if there is still a change to day mode for some reason, change this value 0 to 86400000.

 

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  145
  • Topics Per Day:  0.07
  • Content Count:  354
  • Reputation:   8
  • Joined:  04/16/18
  • Last Seen:  

23 minutes ago, dev LOOLP said:

// conf/battle/misc.conf#L65

Actual -> night_at_start: no
Alter -> night_at_start: yes


// conf/battle/misc.conf#L75

Actual -> night_duration: 0
Keep at 0, but if there is still a change to day mode for some reason, change this value 0 to 86400000.

 

Thank you my friend!

Link to comment
Share on other sites

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2346
  • Joined:  10/28/11
  • Last Seen:  

-	script	night_mode_on	-1,{
	OnInit:
		setbattleflag("night_at_start", 0);
		setbattleflag("night_at_start", 0);
		setbattleflag("night_duration", 0);
		night;
		end;
}

now your server will always stay in night mode.

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  145
  • Topics Per Day:  0.07
  • Content Count:  354
  • Reputation:   8
  • Joined:  04/16/18
  • Last Seen:  

On 1/18/2020 at 9:46 AM, Emistry said:

-	script	night_mode_on	-1,{
	OnInit:
		setbattleflag("night_at_start", 0);
		setbattleflag("night_at_start", 0);
		setbattleflag("night_duration", 0);
		night;
		end;
}

now your server will always stay in night mode.

Thanks my friend, work very well

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...