mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-19 00:18:22 +00:00
Updated Perl EVENT_WAYPOINT_DEPART (markdown)
@@ -10,4 +10,19 @@ sub EVENT_WAYPOINT_DEPART {
|
||||
}
|
||||
```
|
||||
|
||||
### Functionality Explained
|
||||
|
||||
EVENT_WAYPOINT_DEPART is triggered when an NPC leaves its current grid waypoint entry.
|
||||
|
||||
### EVENT_WAYPOINT_DEPART in use
|
||||
|
||||
```perl
|
||||
sub EVENT_WAYPOINT_DEPART {
|
||||
|
||||
# Use == for numeric comparison to match grid waypoint entry "0" (the spawn point of the NPC)
|
||||
if ($wp == 0) {
|
||||
quest::say("And we're off!");
|
||||
}
|
||||
}
|
||||
```
|
||||
Generated On 2018-01-15T22:07:30-08:00
|
||||
Reference in New Issue
Block a user