Updated Perl EVENT_WAYPOINT_DEPART (markdown)

TurmoilToad
2018-01-16 16:28:34 -05:00
parent ea5483c12d
commit 1a4683ce17
+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