--- deliantra/server/pod/events.pod 2006/12/10 20:15:58 1.6 +++ deliantra/server/pod/events.pod 2006/12/21 23:37:05 1.10 @@ -255,10 +255,15 @@ Invoked before a player moves from one map to another, can override the movement. +=head3 command (player command args -- time) + +Execute a user command send by the client. Programmable plug-ins usually +handle this event internally. + =head3 extcmd (player string) -Invoked whenever a client issues the C protocol command. It's -argument is passed without any changes. +Invoked whenever a client issues the C protocol command. +Programmable plug-ins usually handle this event internally. =head3 move (player direction -- ) @@ -331,8 +336,42 @@ Invoked whenever a player tries to leave the B. Overriding means the player won't be able to leave. -=head3 trigger (map connection state) +=head3 trigger (map connection state -- ) Invoked whenever something activates a B on the B. If B is true the connection was 'state' and if false it is 'released'. + +=head2 CLIENT EVENTS + +These events are very similar to player events, but they are might be +handled asynchronously as soon as the command reaches the server, even when +the player hasn't logged in yet (meaning there is no player yet). + +=head3 connect (client -- ) + +Called as soon as a new connection to the server is established. Should +not be overriden. + +=head3 addme (client -- ) + +The client sent an addme, thus ending the initial handshaking. If overriden, the server +will not send any response. + +=head3 reattach (client -- ) + +Invoked whenever attachments/plug-ins need to get reattached to the +object. This usually happens when server was reloaded. This event will +only be generated if the object has attachments. + +=head3 reply (client replystring -- ) + +Called when the client submits a reply in the ST_CUSTOM state. Usually +handled internally by language plugins. + +=head3 exticmd (client string -- ) + +Like C, but can be called before a player has logged in. + +Programmable plug-ins usually handle this event internally. +