mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-23 16:48:21 +00:00
Updated Perl EVENT_PLAYER_PICKUP (markdown)
+20
-1
@@ -1,4 +1,5 @@
|
|||||||
EVENT_PLAYER_PICKUP
|
EVENT_PLAYER_PICKUP is triggered when a PC picks up an item (like a ground spawn, for instance).
|
||||||
|
|
||||||
### Exports
|
### Exports
|
||||||
**Name**|**Type**|**Description**
|
**Name**|**Type**|**Description**
|
||||||
:-----|:-----|:-----
|
:-----|:-----|:-----
|
||||||
@@ -12,4 +13,22 @@ sub EVENT_PLAYER_PICKUP {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Triggered
|
||||||
|
|
||||||
|
* When a client picks up an item from the ground.
|
||||||
|
|
||||||
|
### Example
|
||||||
|
|
||||||
|
* This example will display a message to the client when a particular item is picked up off the ground.
|
||||||
|
|
||||||
|
```perl
|
||||||
|
sub EVENT_PLAYER_PICKUP {
|
||||||
|
#::: Use == for numeric comparison to Item ID 5551 - Bluetoe Mushroom
|
||||||
|
if ($picked_up_id == 5551) {
|
||||||
|
$client->Message(15, "Yay, you found a Bluetoe Mushroom!");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
Generated On 2018-01-15T22:07:30-08:00
|
Generated On 2018-01-15T22:07:30-08:00
|
||||||
Reference in New Issue
Block a user