mirror of
https://github.com/EQEmu/Server.git
synced 2026-04-05 15:22:37 +00:00
Created Perl EVENT_SLAY (markdown)
parent
1ab5a1b2af
commit
859d896115
15
Perl-EVENT_SLAY.md
Normal file
15
Perl-EVENT_SLAY.md
Normal file
@ -0,0 +1,15 @@
|
||||
EVENT_SLAY is triggered when an NPC kills a player. Often this event is used for some flavor messages, or to spawn adds. Do not confuse this event with [EVENT_DEATH_COMPLETE](https://github.com/EQEmu/Server/wiki/Perl-EVENT_DEATH_COMPLETE) or [EVENT_DEATH](https://github.com/EQEmu/Server/wiki/Perl-EVENT_DEATH), which are used when a player kills an NPC.
|
||||
|
||||
### Triggered
|
||||
|
||||
* When an NPC kills a player
|
||||
|
||||
### Example
|
||||
|
||||
* This is a well-known example from Emperor Ssraeshza, who mocks any player that he kills
|
||||
|
||||
```perl
|
||||
sub EVENT_SLAY {
|
||||
quest::say("Your god has found you lacking.");
|
||||
}
|
||||
```
|
||||
Loading…
x
Reference in New Issue
Block a user