… | |
… | |
334 | =head3 leave (map player -- ) |
334 | =head3 leave (map player -- ) |
335 | |
335 | |
336 | Invoked whenever a player tries to leave the B<map>. Overriding means the |
336 | Invoked whenever a player tries to leave the B<map>. Overriding means the |
337 | player won't be able to leave. |
337 | player won't be able to leave. |
338 | |
338 | |
339 | =head3 trigger (map connection state) |
339 | =head3 trigger (map connection state -- ) |
340 | |
340 | |
341 | Invoked whenever something activates a B<connection> on the B<map>. If B<state> |
341 | Invoked whenever something activates a B<connection> on the B<map>. If B<state> |
342 | is true the connection was 'state' and if false it is 'released'. |
342 | is true the connection was 'state' and if false it is 'released'. |
343 | |
343 | |
|
|
344 | |
|
|
345 | =head2 CLIENT EVENTS |
|
|
346 | |
|
|
347 | These events are very similar to player events, but they are might be |
|
|
348 | handled asynchronously as soon as the command reaches the server, even when |
|
|
349 | the player hasn't logged in yet (meaning there is no player yet). |
|
|
350 | |
|
|
351 | =head3 connect (client -- ) |
|
|
352 | |
|
|
353 | Called as soon as a new connection to the server is established. Should |
|
|
354 | not be overriden. |
|
|
355 | |
|
|
356 | =head3 addme (client -- ) |
|
|
357 | |
|
|
358 | The client sent an addme, thus ending the initial handshaking. If overriden, the server |
|
|
359 | will not send any response. |
|
|
360 | |
|
|
361 | =head3 reattach (client -- ) |
|
|
362 | |
|
|
363 | Invoked whenever attachments/plug-ins need to get reattached to the |
|
|
364 | object. This usually happens when server was reloaded. This event will |
|
|
365 | only be generated if the object has attachments. |
|
|
366 | |
|
|
367 | =head3 exticmd (client string -- ) |
|
|
368 | |
|
|
369 | Like C<extcmd>, but can be called before a player has logged in. |
|
|
370 | |
|
|
371 | Programmable plug-ins usually handle this event internally. |
|
|
372 | |