mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-21 23:08:21 +00:00
Updated Perl EVENT_ZONE (markdown)
+5
-5
@@ -9,16 +9,16 @@ sub EVENT_ZONE {
|
|||||||
quest::say($target_zone_id); # returns int
|
quest::say($target_zone_id); # returns int
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
### Functionality Explained
|
### Triggered
|
||||||
|
|
||||||
EVENT_ZONE is triggered when a player zones (not to be confused with perl EVENT_ENTERZONE).
|
* When a player zones (not to be confused with perl EVENT_ENTERZONE).
|
||||||
|
|
||||||
### EVENT_ZONE in use
|
### Example
|
||||||
|
|
||||||
|
* This example removes the compass mark (IE for adventure location) when you zone out.
|
||||||
|
|
||||||
```perl
|
```perl
|
||||||
sub EVENT_ZONE {
|
sub EVENT_ZONE {
|
||||||
|
|
||||||
# Once you leave the zone, remove the compass mark (IE for adventure location)
|
|
||||||
$client->ClearCompassMark();
|
$client->ClearCompassMark();
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user