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 [2021/04/07 05:55] boingman Grammar. |
client_side_scripting:client_scripting_interface-basic_howto [2021/04/11 15:07] partmedia Update documentation for drawextinfo/drawinfo |
||
---|---|---|---|
Line 139: | Line 139: | ||
* //watch <command type>// - watch the given command from server-client protocol. <command type> specifies the commands we want to watch. Set to empty to get all commands. | * //watch <command type>// - watch the given command from server-client protocol. <command type> specifies the commands we want to watch. Set to empty to get all commands. | ||
- | * Besides what is already documented, watch also supports "tick", "drawinfo" (GTK2 client) and "drawextinfo" (JXClient). | + | * Besides what is already documented, watch also supports "tick", "drawextinfo" (for most servers), and "drawinfo" (for very old servers) |
* The "tick" argument will provide the script with "watch tick <integer>", as a tick of the server's clock. | * The "tick" argument will provide the script with "watch tick <integer>", as a tick of the server's clock. | ||
- | * The "drawinfo" and "drawextinfo" arguments are functionally equivalent in the GTK2 client and the JXClient with some minor differences. Both will provide the script with text printed in the Messages text area: The GTKv2 client must receive "watch drawinfo" whereas JXClient must receive "watch drawextinfo". The GTK2 then provides the script with "watch drawinfo <integer> <message>", while the JXClient provides "watch drawextinfo <integer> <integer> <message>". | + | * "drawextinfo" provide the script with text printed in the Messages text area. The format is "watch drawextinfo <integer> <integer> <message>". For some very old servers (none of them which are online at the time of writing), "drawextinfo" is not supported and you must fall back to "drawinfo", which has the arguments "watch drawinfo <integer> <message>". |
* //unwatch <command type>// - unwatch the given command from server-client protocol. <command type> specifies the commands we want to watch. Set to empty to get all commands. | * //unwatch <command type>// - unwatch the given command from server-client protocol. <command type> specifies the commands we want to watch. Set to empty to get all commands. | ||
- | * //request <data type>// - Request a piece of informations from client memory. Following is a table of <data type> allowed: | + | * //request <data type>// - Request a piece of information from client memory. Following is a table of <data type> allowed: |
<box round | Data Type Table> | <box round | Data Type Table> |