Difference between revisions of "Script"

From Larnitech wiki page
Jump to navigation Jump to search
(Created page with "===Example of description in XML=== <syntaxhighlight lang="xml" line> <item type="script" name="Test" path="script-test.txt" addr="125:150" NAME=”VALUE”/> </syntaxhighlig...")
 
Line 1: Line 1:
 +
<languages/>
 +
<translate>
 
===Example of description in XML===
 
===Example of description in XML===
  
Line 27: Line 29:
 
|0||0 – off<br>1 – on<br>0xFF – Change the status for the opposite one
 
|0||0 – off<br>1 – on<br>0xFF – Change the status for the opposite one
 
|}
 
|}
 +
</translate>

Revision as of 12:47, 26 January 2022

Other languages:
English • ‎русский

Example of description in XML

1<item type="script" name="Test" path="script-test.txt" addr="125:150" NAME=”VALUE”/>

Parameters

Name type and variety description
path* string path to script file relatively to server folder
body* string contents of script (instead of path)
NAME string parameters sent to script

* – required fields

Possible variants of setting the status

Byte description
0 0 – off
1 – on
0xFF – Change the status for the opposite one