From 1a4683ce17fdfc0cc82d892a5437f88e34cb0970 Mon Sep 17 00:00:00 2001 From: TurmoilToad Date: Tue, 16 Jan 2018 16:28:34 -0500 Subject: [PATCH] Updated Perl EVENT_WAYPOINT_DEPART (markdown) --- Perl-EVENT_WAYPOINT_DEPART.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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