mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-24 01:08:21 +00:00
Updated Perl EVENT_WAYPOINT_DEPART (markdown)
@@ -17,9 +17,12 @@ EVENT_WAYPOINT_DEPART is triggered when an NPC leaves its current grid waypoint
|
|||||||
### EVENT_WAYPOINT_DEPART in use
|
### EVENT_WAYPOINT_DEPART in use
|
||||||
|
|
||||||
```perl
|
```perl
|
||||||
|
# This example would cause your NPC to speak as it departs a particular waypoint.
|
||||||
|
# Don't forget to count waypoint 0 (the spawn point) when using waypoint events.
|
||||||
|
|
||||||
sub EVENT_WAYPOINT_DEPART {
|
sub EVENT_WAYPOINT_DEPART {
|
||||||
|
|
||||||
# Use == for numeric comparison to match grid waypoint entry "0" (the spawn point of the NPC)
|
# Use == for numeric comparison to match grid waypoint entry "0"
|
||||||
if ($wp == 0) {
|
if ($wp == 0) {
|
||||||
quest::say("And we're off!");
|
quest::say("And we're off!");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user