mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-19 21:08:20 +00:00
Updated Perl EVENT_DEATH_COMPLETE (markdown)
+25
-1
@@ -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
|
### Exports
|
||||||
**Name**|**Type**|**Description**
|
**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
|
Generated On 2018-01-15T22:07:30-08:00
|
||||||
Reference in New Issue
Block a user