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
commitbff8c0af614f01e19a876201fc4b28d8308a6007 (patch)
tree029adcdd03324420db502f4d1db5a6098ab232fc /scripts
parent1c4c5ae37037146a4079263ccb0ef20969a33fec (diff)
downloadopenttd-bff8c0af614f01e19a876201fc4b28d8308a6007.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.