… | |
… | |
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 | |
… | |
… | |
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 exticmd (client string) |
|
|
352 | |
|
|
353 | Like C<extcmd>, but can be called before a player has logged in. |
|
|
354 | |
|
|
355 | Programmable plug-ins usually handle this event internally. |
|
|
356 | |