This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
client_side_scripting:client_scripting_interface-basic_howto [2015/11/30 12:57] partmedia Update first example |
client_side_scripting:client_scripting_interface-basic_howto [2018/02/16 19:38] karl [Commands to client] add missing request player, skills, spells |
||
---|---|---|---|
Line 152: | Line 152: | ||
| map all | Return all the known map information | | | map all | Return all the known map information | | ||
| map <x> <y> | Return the information about square x,y in the current map (relative to player position)| | | map <x> <y> | Return the information about square x,y in the current map (relative to player position)| | ||
+ | | player | Return the player's tag and title | | ||
+ | | skills | Return a list of all skill names, one per line (see also stat xp) | | ||
+ | | spells | Return a list of known spells, one per line | | ||
+ | | stat paths | Return spell paths: attuned, repelled, denied | | ||
+ | Note: player, skills, spells, stat path were added between versions 1.11 and 1.50 of the client.\\ | ||
</box> | </box> | ||
- | :!: in order to get the result of the request into your script's stdin you have to "watch request <data type>" before you do the request. | + | FIXME \\ |
+ | :!: In order to get the result of the request into your script's stdin you have to "watch request <data type>" before you do the request.\\ | ||
+ | :!: No, you do not need to watch requests (anymore?). The client will send the request to stdin of the script. | ||
* //issue <repeat> <must_send> <command>// - send <command> to server on behalf of client. <repeat> is the number of times to execute command <must_send> tells whether or not the command must sent at all cost (1 or 0). <repeat> and <must_send> are optional parameters. See [[#The Issue Command]] for more details. | * //issue <repeat> <must_send> <command>// - send <command> to server on behalf of client. <repeat> is the number of times to execute command <must_send> tells whether or not the command must sent at all cost (1 or 0). <repeat> and <must_send> are optional parameters. See [[#The Issue Command]] for more details. |