mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-30 13:32:26 +00:00
Updated Perl API Perl Sub Event Examples (markdown)
parent
9da954dabf
commit
103130222f
@ -1090,8 +1090,33 @@ sub EVENT_PLAYER_PICKUP {
|
|||||||
```
|
```
|
||||||
|
|
||||||
# EVENT_POPUPRESPONSE
|
# EVENT_POPUPRESPONSE
|
||||||
|
|
||||||
|
### Trigger
|
||||||
|
|
||||||
|
- When a player clicks a button on a popup.
|
||||||
|
|
||||||
Used with quest::popup.
|
Used with quest::popup.
|
||||||
|
|
||||||
|
### Exports
|
||||||
|
|
||||||
|
|Name | Type | Usage
|
||||||
|
| --- | --- | ---
|
||||||
|
|popupid | int | `quest::say($popupid); # returns int`
|
||||||
|
|
||||||
|
### Example
|
||||||
|
|
||||||
|
- a well-known example from the Guild Lobby portal pool.
|
||||||
|
|
||||||
|
```perl
|
||||||
|
sub EVENT_POPUPRESPONSE {
|
||||||
|
#:: Triggered by sub EVENT_ENTER: quest::popup('Teleport', 'Teleport to The Plane of Hate?', 666, 1, 0);
|
||||||
|
if ($popupid == 666) {
|
||||||
|
#:: Teleport the player to hateplaneb
|
||||||
|
quest::movepc(186,-393,656,3);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
# EVENT_PROXIMITY_SAY
|
# EVENT_PROXIMITY_SAY
|
||||||
|
|
||||||
### Trigger
|
### Trigger
|
||||||
@ -1132,6 +1157,7 @@ sub EVENT_SAY {
|
|||||||
### Exports
|
### Exports
|
||||||
|
|
||||||
|Name | Type | Usage
|
|Name | Type | Usage
|
||||||
|
| --- | --- | ---
|
||||||
|option | int | `quest::say($option); # returns int`
|
|option | int | `quest::say($option); # returns int`
|
||||||
|resurrect | int | `quest::say($resurrect); # returns int`
|
|resurrect | int | `quest::say($resurrect); # returns int`
|
||||||
|
|
||||||
@ -1464,6 +1490,7 @@ The timer will loop until it is stopped, and EVENT_TIMER will trigger each time
|
|||||||
### Exports
|
### Exports
|
||||||
|
|
||||||
|Name | Type | Usage
|
|Name | Type | Usage
|
||||||
|
| --- | --- | ---
|
||||||
|timer | int | `quest::say($timer); # returns int`
|
|timer | int | `quest::say($timer); # returns int`
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user