[Crossfire-wiki] [Crossfire DokuWiki] page changed: server_plugin

no-reply_wiki at metalforge.org no-reply_wiki at metalforge.org
Wed Dec 27 09:24:54 CST 2006


A page in your DokuWiki was added or changed. Here are the details:

Date        : 2006/12/27 09:24
User        : ryo
Edit Summary: add parameters, change format

@@ -102,65 +102,26 @@
  Those concern the game as a whole or can't be bound to a specific object. Those events may be "registered" by a plugin (it means that the plugin requests to get a message each time one of those events happens).
  
  Plugin should use provided server callbacks to register itself. See the specific plugin documentation.
  
- FIXME {add parameters}
- 
- ==== Born ====
- Generated when a new character is created.
- 
- ==== Clock ====
- Generated at each game loop.
- 
- Note: when no player is logged, the loop "stops", meaning that clock events are not generated anymore!
- 
- ==== Crash ====
- Generated when a server crash does occur. It is not a recursive event, so if a crash occur from *inside* the crash event handling, it is not called a second time, preventing infinite loops to occur.
- 
- Note: This event is not implemented for now.
- 
- ==== Gdeath ====
- Generated whenever a player dies.
- 
- ==== Gkill ====
- Generated whenever something/someone is killed.
- 
- ==== Kick ====
- Generated when a player was kicked by a DM.
- 
- ==== Login ====
- Generated whenever a player logs into the game.
- 
- ==== Logout ====
- Generated whenever a player logs out the game.
- 
- ==== Mapenter ====
- Generated whenever someone enters a map.
- 
- ==== Mapleave ====
- Generated whenever someone leaves a map.
- 
- ==== Mapload ====
- Generated when a map is loaded in memory.
- 
- ==== Mapreset ====
- Generated each time a map is reset.
- 
- ==== Mapunload ====
- Generated when a map is being unloaded from memory.
- 
- ==== Muzzle ====
- Generated when a player was muzzled by a DM.
- 
- ==== Remove ====
- Generated when a player character is removed from the game ("quit" command).
- 
- ==== Shout ====
- Generated whenever someone shouts something.
- 
- ==== Tell ====
- Generated whenever someone tells something.
- 
+ ^ Event ^ Description ^ Parameters ^ Note ^
+ | Born | Generated when a new character is created. | ''object*'' pointing to player | |
+ | Clock | Generated at each game loop. | (none) | When no player is logged, the loop "stops", meaning that clock events are not generated anymore! |
+ | Crash | Generated when a server crash does occur. It is not a recursive event, so if a crash occur from *inside* the crash event handling, it is not called a second time, preventing infinite loops to occur. | (none) | This event is not implemented for now. |
+ | Gdeath | Generated whenever a player dies. | ''object*'' pointing to player | |
+ | Gkill | Generated whenever something/someone is killed. | ''object*'' pointing to dead object, ''object*'' pointing to killer. | |
+ | Kick | Generated when a player was kicked by a DM. | ''object*'' pointing to kicked player, ''const char*'' containing the parameter the DM used to kick | |
+ | Login | Generated whenever a player logs into the game. | ''player*'' pointing to player, ''const char*'' containing the hostname of the client. | |
+ | Logout | Generated whenever a player logs out of the game. | ''player*'' pointing to player, ''const char*'' containing the hostname of the client. | |
+ | Mapenter | Generated whenever someone enters a map. | ''object*'' pointing to the player, ''map*'' pointing to the map | |
+ | Mapleave | Generated whenever someone leaves a map. | ''object*'' pointing to the player, ''map*'' pointing to the map | |
+ | Mapload | Generated when a map is loaded in memory. | ''map*'' pointing to the map | |
+ | Mapreset | Generated each time a map is reset. | ''map*'' pointing to the map | |
+ | Mapunload | Generated when a map is being unloaded from memory. | ''map*'' pointing to the map | |
+ | Muzzle | Generated when a player was muzzled by a DM. | ''object*'' pointing to kicked player, ''const char*'' containing the parameter the DM used to muzzle | |
+ | Remove | Generated when a player character is removed from the game ("quit" command). | ''object*'' pointing to the player | |
+ | Shout | Generated whenever someone shouts something. | ''object*'' pointing to talking player, ''const char*'' containing the message, ''int'' containing the priority | |
+ | Tell | Generated whenever someone tells something. | | not implemented for now |
  
  ===== Registering a command =====
  
  A plugin can register a custom game command. This command will work exactly like other commands from the player's point of view, accepting arguments and such.


IP-Address  : 82.236.87.204
Old Revision: http://wiki.metalforge.net/doku.php/server_plugin?rev=1166397038
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