blob: 8f471ed2f5754dcfac78cb1c9e4a3397a9533351 [file] [log] [blame]
MG Mud User88f12472016-06-24 23:31:02 +02001SYNOPSIS
2 xlpc <lpc code>
3
4DESCRIPTION
5 Execute pure LPC code. "me" and "here" are predefined objects. Also the
6 <properties.h> will be included. The function "get(string)" can be used
7 for accessing objects. If the execution returns an object the variable
8 "$result" will set to this object.
9
10EXAMPLES
11 xlpc int i;object *o;o=users();for(i=0;i<sizeof(o);i++)o[i]->
12 SetProp(P_FROG,1);
13 (Let all users be slimy frogs :)
14
15 xlpc int i;object *o;o=users();for(i=0;i<sizeof(o);i++)
16 o[i]->SetProp(P_TITLE,get("$me")->QueryProp(P_TITLE));
17 (Give all users your prefered title. Take a look of the use of get().)
18
19 Both commands must be written in one line of course!
20