mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-22 11:38:29 +00:00
Updated Perl EVENT_WAYPOINT_DEPART (markdown)
@@ -1,3 +1,4 @@
|
|||||||
|
|
||||||
EVENT_WAYPOINT_DEPART
|
EVENT_WAYPOINT_DEPART
|
||||||
### Exports
|
### Exports
|
||||||
**Name**|**Type**|**Description**
|
**Name**|**Type**|**Description**
|
||||||
@@ -10,19 +11,18 @@ sub EVENT_WAYPOINT_DEPART {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
### Functionality Explained
|
### Triggered
|
||||||
|
|
||||||
EVENT_WAYPOINT_DEPART is triggered when an NPC leaves its current grid waypoint entry.
|
* When an NPC leaves its current grid waypoint entry
|
||||||
|
|
||||||
### EVENT_WAYPOINT_DEPART in use
|
### Example
|
||||||
|
|
||||||
|
* This example would cause your NPC to speak as it departs a particular waypoint.
|
||||||
|
* Don't forget to count waypoint 0 (the spawn point) when using waypoint events.
|
||||||
|
|
||||||
```perl
|
```perl
|
||||||
# This example would cause your NPC to speak as it departs a particular waypoint.
|
|
||||||
# Don't forget to count waypoint 0 (the spawn point) when using waypoint events.
|
|
||||||
|
|
||||||
sub EVENT_WAYPOINT_DEPART {
|
sub EVENT_WAYPOINT_DEPART {
|
||||||
|
# If we departed waypoint 0
|
||||||
# Use == for numeric comparison to match grid waypoint entry "0"
|
|
||||||
if ($wp == 0) {
|
if ($wp == 0) {
|
||||||
quest::say("And we're off!");
|
quest::say("And we're off!");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user