From 93a5e9c5c78a2c4b740d61385145c3cf85881307 Mon Sep 17 00:00:00 2001 From: TurmoilToad Date: Wed, 7 Feb 2018 08:05:56 -0500 Subject: [PATCH] Created Perl EVENT_ATTACK (markdown) --- Perl-EVENT_ATTACK.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Perl-EVENT_ATTACK.md diff --git a/Perl-EVENT_ATTACK.md b/Perl-EVENT_ATTACK.md new file mode 100644 index 0000000..e8fd2cb --- /dev/null +++ b/Perl-EVENT_ATTACK.md @@ -0,0 +1,15 @@ +EVENT_ATTACK is triggered when the NPC is attacked. Often this event is used for flavor text or to spawn adds. Do not confuse this event with [EVENT_AGGRO](https://github.com/EQEmu/Server/wiki/Perl-EVENT_AGGRO), which is triggered when the NPC aggros a player. + +### Triggered + +* When the NPC is attacked by a player + +### Example + +* This is a well-known example where Derakor the Vindicator (Vindi) shouts when attacked by a player + +```perl +sub EVENT_ATTACK { + quest::shout("Your kind will not defile the temple of Rallos Zek!"); +} +``` \ No newline at end of file