From 95c58ad1b1f48be45f843c0f2265b2ef6a9c88ae Mon Sep 17 00:00:00 2001 From: TurmoilToad Date: Wed, 17 Jan 2018 23:26:35 -0500 Subject: [PATCH] Updated Perl EVENT_PLAYER_PICKUP (markdown) --- Perl-EVENT_PLAYER_PICKUP.md | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/Perl-EVENT_PLAYER_PICKUP.md b/Perl-EVENT_PLAYER_PICKUP.md index 5b8ffaf..abd818d 100755 --- a/Perl-EVENT_PLAYER_PICKUP.md +++ b/Perl-EVENT_PLAYER_PICKUP.md @@ -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 \ No newline at end of file