Difference between revisions of "Script"

From Larnitech wiki page
Jump to navigation Jump to search
(Marked this version for translation)
 
Line 1: Line 1:
 
<languages/>
 
<languages/>
 
<translate>
 
<translate>
===Example of description in XML===
+
===Example of description in XML=== <!--T:1-->
  
 +
<!--T:2-->
 
<syntaxhighlight lang="xml" line>
 
<syntaxhighlight lang="xml" line>
 
<item type="script" name="Test" path="script-test.txt" addr="125:150" NAME=”VALUE”/>
 
<item type="script" name="Test" path="script-test.txt" addr="125:150" NAME=”VALUE”/>
 
</syntaxhighlight>
 
</syntaxhighlight>
  
===Parameters===
+
===Parameters=== <!--T:3-->
  
 +
<!--T:4-->
 
{|class="wikitable"
 
{|class="wikitable"
 
|-
 
|-
Line 21: Line 23:
 
<nowiki>*</nowiki> – required fields
 
<nowiki>*</nowiki> – required fields
  
===Possible variants of setting the status===
+
===Possible variants of setting the status=== <!--T:5-->
  
 +
<!--T:6-->
 
{|class="wikitable"
 
{|class="wikitable"
 
|-
 
|-

Latest revision as of 12:49, 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