Updated Perl EVENT_PLAYER_PICKUP (markdown)

TurmoilToad
2018-01-17 23:26:35 -05:00
parent f6edb864dc
commit 95c58ad1b1
+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
**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