Updated Perl EVENT_NPC_SLAY (markdown)

TurmoilToad 2018-02-14 13:23:23 -05:00
parent c4d76f47b3
commit e9699abd9d

@ -1,4 +1,5 @@
EVENT_NPC_SLAY
EVENT_NPC_SLAY is triggered when one NPC kills another NPC. Obvious opportunities for use would include city guards slaying newbie mobs, vermin being exterminated, etc. Many of these flavor text opportunities are already covered with by the default-actions plugin. Note the difference with [Perl EVENT_SLAY](https://github.com/EQEmu/Server/wiki/Perl-EVENT_SLAY), which is used when an NPC kills a player.
### Exports
**Name**|**Type**|**Description**
:-----|:-----|:-----
@ -10,4 +11,16 @@ sub EVENT_NPC_SLAY {
}
```
### Triggered
* When an NPC kills another NPC
### Example
```perl
sub EVENT_NPC_SLAY {
quest::say("Another unworthy opponent. Never cross Mining Guild 628!!");
}
```
Generated On 2018-01-15T22:07:30-08:00