… | |
… | |
235 | |
235 | |
236 | =head3 death (player) |
236 | =head3 death (player) |
237 | |
237 | |
238 | Invoked whenever a player dies, before the death actually gets processed. |
238 | Invoked whenever a player dies, before the death actually gets processed. |
239 | |
239 | |
240 | =head3 map_change (player oldmap newmap) |
240 | =head3 map_change (player newmap x y -- ) |
241 | |
241 | |
242 | Invoked whenever a player moves from one map to another. |
242 | Invoked before a player moves from one map to another, can override the movement. |
243 | |
243 | |
244 | =head3 extcmd (player string) |
244 | =head3 extcmd (player string) |
245 | |
245 | |
246 | Invoked whenever a client issues the C<extcmd> protocol command. It's |
246 | Invoked whenever a client issues the C<extcmd> protocol command. It's |
247 | argument is passed without any changes. |
247 | argument is passed without any changes. |
… | |
… | |
304 | |
304 | |
305 | =head3 clean (map) |
305 | =head3 clean (map) |
306 | |
306 | |
307 | Invoked when a temporary B<map> gets deleted on-disk. |
307 | Invoked when a temporary B<map> gets deleted on-disk. |
308 | |
308 | |
309 | =head3 enter (map player) |
309 | =head3 enter (map player x y -- ) |
310 | |
310 | |
311 | Invoked whenever a player enters the B<map>. This event is likely unreliable. |
311 | Invoked whenever a player tries to enter the B<map>, while he/she is still |
|
|
312 | on the old map. Overriding means the player won't be able to enter, and, |
|
|
313 | if newmap/x/y are given, will be redirected to that map instead. |
312 | |
314 | |
313 | =head3 leave (map player) |
315 | =head3 leave (map player -- ) |
314 | |
316 | |
315 | Invoked whenever a player leaves the B<map>. This event is likely unreliable. |
317 | Invoked whenever a player tries to leave the B<map>. Overriding means the |
316 | |
318 | player won't be able to leave. |
317 | =head3 upgrade (map) |
|
|
318 | |
|
|
319 | (TEMPORARY EVENT) gets invoked whenever a old-style map has been upgraded. |
|
|
320 | |
319 | |
321 | =head3 trigger (map connection state) |
320 | =head3 trigger (map connection state) |
322 | |
321 | |
323 | Invoked whenever something activates a B<connection> on the B<map>. If B<state> |
322 | Invoked whenever something activates a B<connection> on the B<map>. If B<state> |
324 | is true the connection was 'state' and if false it is 'released'. |
323 | is true the connection was 'state' and if false it is 'released'. |
|
|
324 | |