… | |
… | |
253 | |
253 | |
254 | =head3 map_change (player newmap x y -- ) |
254 | =head3 map_change (player newmap x y -- ) |
255 | |
255 | |
256 | Invoked before a player moves from one map to another, can override the movement. |
256 | Invoked before a player moves from one map to another, can override the movement. |
257 | |
257 | |
|
|
258 | =head3 command (player command args -- time) |
|
|
259 | |
|
|
260 | Execute a user command send by the client. Programmable plug-ins usually |
|
|
261 | handle this event internally. |
|
|
262 | |
258 | =head3 extcmd (player string) |
263 | =head3 extcmd (player string) |
259 | |
264 | |
260 | Invoked whenever a client issues the C<extcmd> protocol command. It's |
265 | Invoked whenever a client issues the C<extcmd> protocol command. |
261 | argument is passed without any changes. |
266 | Programmable plug-ins usually handle this event internally. |
262 | |
267 | |
263 | =head3 move (player direction -- ) |
268 | =head3 move (player direction -- ) |
264 | |
269 | |
265 | =head3 pray_altar (player altar skill -- ) |
270 | =head3 pray_altar (player altar skill -- ) |
266 | |
271 | |
… | |
… | |
329 | =head3 leave (map player -- ) |
334 | =head3 leave (map player -- ) |
330 | |
335 | |
331 | 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 |
332 | player won't be able to leave. |
337 | player won't be able to leave. |
333 | |
338 | |
334 | =head3 trigger (map connection state) |
339 | =head3 trigger (map connection state -- ) |
335 | |
340 | |
336 | 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> |
337 | 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'. |
338 | |
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 | |