From 8599f80d64757749bbb61daa4e0ec6029e1dc9a3 Mon Sep 17 00:00:00 2001 From: TurmoilToad Date: Thu, 18 Jan 2018 00:23:51 -0500 Subject: [PATCH] Updated Perl EVENT_DEATH_COMPLETE (markdown) --- Perl-EVENT_DEATH_COMPLETE.md | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/Perl-EVENT_DEATH_COMPLETE.md b/Perl-EVENT_DEATH_COMPLETE.md index 62029b2..a4fab9d 100755 --- a/Perl-EVENT_DEATH_COMPLETE.md +++ b/Perl-EVENT_DEATH_COMPLETE.md @@ -1,4 +1,5 @@ -EVENT_DEATH_COMPLETE +EVENT_DEATH_COMPLETE is triggered when an NPC is killed. This event is often used to signal another mob, stop any timers, or spawn other NPCs. + ### Exports **Name**|**Type**|**Description** :-----|:-----|:----- @@ -16,4 +17,27 @@ sub EVENT_DEATH_COMPLETE { } ``` +### Triggered + +* This event is triggered when the NPC dies. + +### Examples + +* In this example, when the NPC dies, it sends a signal to another NPC. + +```perl +sub EVENT_DEATH_COMPLETE { + #::: Wait 0 seconds and send a signal "1" to npc_type_id 206046 - Manaetic Behemoth + quest::signalwith(206046,1,0); +} +``` + +* In this example, when the NPC dies, it spawns A Planar Projection at its current location. + +```perl +sub EVENT_DEATH_COMPLETE { + #::: Spawn npc_type_id 218068 - A_Planar_Projection on grid 0, guildwarset 0, at the NPC's X, Y, Z, and Heading + quest::spawn2(218068,0,0,$x,$y,$z,$h); +} +``` Generated On 2018-01-15T22:07:30-08:00 \ No newline at end of file