Difference between revisions of "Messages for DayZ (Xbox)"

From Nitradopedia EN
Jump to: navigation, search
(Characteristics)
Line 1: Line 1:
 
{{ADS-dayzxbox}}
 
{{ADS-dayzxbox}}
 +
 
__FORCETOC__
 
__FORCETOC__
 
In order to inform your players with automatic messages about reboots, your website, your Discord server or anything else, it is necessary to correct the commands in the "messages.xml" accordingly.
 
In order to inform your players with automatic messages about reboots, your website, your Discord server or anything else, it is necessary to correct the commands in the "messages.xml" accordingly.

Revision as of 03:17, 22 November 2020

Dayz xbox header.png
Rent your own prepaid DayZ Xbox server today at Nitrado.net


In order to inform your players with automatic messages about reboots, your website, your Discord server or anything else, it is necessary to correct the commands in the "messages.xml" accordingly.

After a successful installation, the contents of the file are "commented out". As a result, the commands are present but ignored by the server. Use the instructions below to properly set up the messages.

messages.xml File Default

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<messages>
<!--
See <nowiki>https://community.bistudio.com/wiki/DayZ:Server_Messages</nowiki> for more information
Example messages:

1) following message will be displayed to every player in countdown manner
and shuts down server in 10 hours from its start

<message>
<deadline>600</deadline>
<shutdown>1</shutdown>
<text>This server (#name) will shutdown in #tmin minutes.</text>
</message>
2) following message will be displayed every 15 minutes to every player

<message>
<repeat>15</repeat>
<text>You're playing on my server (#name). Thank you .)</text>
</message>

3) following message will be displayed every 50 minutes to every player
and 10 minutes after player connect

<message>
<delay>10</delay>
<repeat>50</repeat>
<onconnect>1</onconnect>
<text>Check our web page at www.dayz.com</text>
</message>

4) following message will be displayed once
and 2 minutes after player connect

<message>
<delay>2</delay>
<onconnect>1</onconnect>
<text>Welcome to my server #name</text>
</message>

-->
</messages>

To activate the commands, it is necessary to stop the server and remove the comment commands, these look like this:

<!--
-->

Commands

  • onconnect

Displays the message as soon as a player enters the server

  • repeat
    • Repeats the message
  • countown
    • Count down the time specified
    • The message will be sent every 90 minutes before the entered time is reached:
  • Steps of the countdown:
      • 60 Minutes
      • 45 Minutes
      • 30 Minutes
      • 20 Minutes
      • 15 Minutes
      • 10 Minutes
      • 5 Minutes
      • 2 Minutes
      • 1 Minutes
  • shutdown
    • Indicates that the server is stopped after Countdown completes
    • If the countdown is not set, ignore the shutdown

Characteristics

Messages can not be longer than 160 characters! There are 3 placeholders (variables) which can be set:

  • #name Displays the name of the server
  • #port Shows the port of the server
  • #tmin Displays the number of minutes remaining (countdown)
    • Only works at the countdown

Any time in the messages.xml is in minutes!

delay

  • Can be used when "onconnect" is set
  • The value indicates how many minutes pass before the message is displayed to the player
  • If 0 (zero) has been entered as the value, the message is displayed directly on entering the server

repeat

  • Repeats the corresponding message after the specified period

deadline

  • Can be used in countdown

Examples

Serverstop

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<messages>

	<!-- This is an example configuration for notifying a server stop -->
	<message>

		<! - no delay ->
		<Delay> 0 </ delay>

		<! - If the value is higher than 0 (zero), the message is repeated ->
		<Repeat> 0 </ repeat>

		<! - If the value is higher than 0 (zero), the countdown is activated. In this example, the countdown lasts 10 hours (600 minutes) ->
		<Deadline> 600 </ deadline>

		<! - disables "onConnect", 1 activates the flag ->
		<OnConnect> 0 </ onConnect>

		<! - activates the "shutdown" flag, is deactivated with 0 (zero) ->
		<Shutdown> 1 </ shutdown>

		<! - message displayed with variables ->
		<text> Hello, #name is stopped in #tmin minutes! </ text>

	</message>
</messages>

Display for the website / discord server

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<messages>

	<!-- This is an example configuration for displaying the web page / discord server -->
	<message>

		<! - 5 minutes delay ->
		<Delay> 5 </ delay>

		<! - Repeat every 30 minutes ->
		<Repeat> 30 </ repeat>

		<! - No countdown / no deadline ->
		<Deadline> 0 </ deadline>

		<! - When a player enters the server ->
		<OnConnect> 1 </ onConnect>

		<! - shutdown disabled ->
		<Shutdown> 0 </ shutdown>

		<! - message displayed with variables ->
		<text> Hello, welcome to #name! Visit our website at https://nitrado.net or our discord server https://discordapp.com/invite/dayz </ text>

	</message>
</messages>