mirror of
https://github.com/EQEmu/Server.git
synced 2026-12-03 01:52:18 +00:00
Updated Perl EVENT_WAYPOINT_DEPART (markdown)
1 parent
ea5483c12d
commit
1a4683ce17
1 file changed
+15
@@ -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