MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame^] | 1 | SYNOPSIS |
| 2 | xlpc <lpc code> |
| 3 | |
| 4 | DESCRIPTION |
| 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 | |
| 10 | EXAMPLES |
| 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 | |