diff --git a/Perl-EVENT_WAYPOINT_DEPART.md b/Perl-EVENT_WAYPOINT_DEPART.md index 12b4e41..5d559f6 100755 --- a/Perl-EVENT_WAYPOINT_DEPART.md +++ b/Perl-EVENT_WAYPOINT_DEPART.md @@ -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 \ No newline at end of file