mirror of
https://github.com/EQEmu/Server.git
synced 2026-04-10 07:52:26 +00:00
Updated Perl API Perl Sub Event Examples (markdown)
parent
e939cade90
commit
6ac0436153
@ -281,6 +281,11 @@ sub EVENT_CLICK_OBJECT {
|
|||||||
|
|
||||||
- When an NPC enters or leaves combat.
|
- When an NPC enters or leaves combat.
|
||||||
|
|
||||||
|
### Exports
|
||||||
|
|Name | Type | Usage
|
||||||
|
| --- | --- | ---
|
||||||
|
|combat_state | int | `quest::say($combat_state); # returns int`
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
|
|
||||||
- In this example, the NPC will say some flavor text when entering combat.
|
- In this example, the NPC will say some flavor text when entering combat.
|
||||||
@ -522,7 +527,7 @@ Mainly used for logging purposes.
|
|||||||
|
|
||||||
### Trigger
|
### Trigger
|
||||||
|
|
||||||
- when a client loses a duel.
|
- When a client loses a duel.
|
||||||
|
|
||||||
You would use this event in the global global_player.pl file.
|
You would use this event in the global global_player.pl file.
|
||||||
|
|
||||||
@ -641,7 +646,7 @@ sub EVENT_ENTERZONE {
|
|||||||
|
|
||||||
### Trigger
|
### Trigger
|
||||||
|
|
||||||
- by any client who leaves a mob's proximity (as defined by quest::set_proximity).
|
- When a client leaves a mob's proximity (as defined by quest::set_proximity).
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
|
|
||||||
@ -783,7 +788,13 @@ sub EVENT_FORAGE_FAILURE {
|
|||||||
|
|
||||||
- when a client succeeds at foraging.
|
- when a client succeeds at foraging.
|
||||||
|
|
||||||
You would use this event in the global global_player.pl file.
|
You would use this event in the zone player.pl file or the global global_player.pl file.
|
||||||
|
|
||||||
|
### Exports
|
||||||
|
|
||||||
|
|Name | Type | Usage
|
||||||
|
| --- | --- | ---
|
||||||
|
|foraged_item | int | `quest::say($foraged_item); # returns int`
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user