summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2004-12-13 15:07:33 +0000
committertruelight <truelight@openttd.org>2004-12-13 15:07:33 +0000
commit5f83ee4554dafc7ec24ef6e56696a4e63525e2bc (patch)
tree029adcdd03324420db502f4d1db5a6098ab232fc /scripts
parent0f83be4d5b1b071fd831c4c72490e60ef22527eb (diff)
downloadopenttd-5f83ee4554dafc7ec24ef6e56696a4e63525e2bc.tar.xz
(svn r1053) -Change: [Console] Changed 'setservername', 'setpassword', 'protect' and 'name' in:
- set server_pw "password" - set server_name "servername" - set company_pw "password" - set name "playername" (patch by sign_de)
Diffstat (limited to 'scripts')
-rw-r--r--scripts/on_client.scr.example1
-rw-r--r--scripts/on_dedicated.scr.example4
-rw-r--r--scripts/readme.txt6
3 files changed, 6 insertions, 5 deletions
diff --git a/scripts/on_client.scr.example b/scripts/on_client.scr.example
index b63563f4f..53db9b9c2 100644
--- a/scripts/on_client.scr.example
+++ b/scripts/on_client.scr.example
@@ -1 +1,2 @@
echo "Setting default network client settings..."
+set name "myname"
diff --git a/scripts/on_dedicated.scr.example b/scripts/on_dedicated.scr.example
index 4df6c8be8..53cee5a63 100644
--- a/scripts/on_dedicated.scr.example
+++ b/scripts/on_dedicated.scr.example
@@ -1,3 +1,3 @@
echo "Setting dedicated network server settings..."
-setpassword "*"
-setservername "My example dedicated gameserver"
+set server_pw "*"
+set server_name "My example dedicated gameserver"
diff --git a/scripts/readme.txt b/scripts/readme.txt
index 20132b62c..99535e37c 100644
--- a/scripts/readme.txt
+++ b/scripts/readme.txt
@@ -3,9 +3,9 @@ Scripting
OpenTTD supports scripts.
- - 'on_client.scr' is runned when you join a server as client
- - 'on_server.scr' is runned when you start a server
- - 'on_dedicated.scr' is runned when you start a dedicated server
+ - 'on_client.scr' is executed when you join a server as client
+ - 'on_server.scr' is executed when you start a server / dedicated server
+ - 'on_dedicated.scr' is additionally executed when you start a dedicated server
For examples how a script can look, check the .example examples.