[Crossfire-wiki] [Crossfire DokuWiki] page changed: server_plugin
no-reply_wiki at metalforge.org
no-reply_wiki at metalforge.org
Tue Jul 23 14:33:11 CDT 2013
A page in your DokuWiki was added or changed. Here are the details:
Date : 2013/07/23 14:33
User : ryo
Edit Summary: Title.
@@ -35,12 +35,13 @@
Events are either //global// or //object-specific//. Examples of global events include a player joining or exiting the game, a map being loaded. Examples of object-specific events include an item being applied, a player attacking a monster.
FIXME check parameters and such :)
+
===== Hooking to an object-specific event =====
- Just add an //event_xxx// object into your object's inventory, and fill the ''title'' field with the plugin name. See the specific plugin documentation for optional arguments that need to be set to that object. Note that the ''slaying'' field must be set too.
+ Just add an //event_xxx// object into your object's inventory, and fill the ''title'' field with the plugin's title as defined in the table above. See the specific plugin documentation for optional arguments that need to be set to that object. Note that the ''slaying'' field must be set too whatever the plugin.
When an object-specific event is raised, affected object is sent to the plugin.
For some events, returning a non-zero value will prevent the default server processing to take place, allowing to override things. FIXME be more specific :)
IP-Address : 82.236.87.204
Old Revision: http://wiki.metalforge.net/doku.php/server_plugin?rev=1374607933
New Revision: http://wiki.metalforge.net/doku.php/server_plugin
--
This mail was generated by DokuWiki at
http://wiki.metalforge.net/
More information about the crossfire-wiki
mailing list