From 06dfb2968dfb798349522c39c0d4fc55d9488364 Mon Sep 17 00:00:00 2001 From: TurmoilToad Date: Thu, 22 Feb 2018 11:07:24 -0500 Subject: [PATCH] Updated Perl EVENT_COMBINE_FAILURE (markdown) --- Perl-EVENT_COMBINE_FAILURE.md | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/Perl-EVENT_COMBINE_FAILURE.md b/Perl-EVENT_COMBINE_FAILURE.md index d3ffab0..b028032 100755 --- a/Perl-EVENT_COMBINE_FAILURE.md +++ b/Perl-EVENT_COMBINE_FAILURE.md @@ -1,4 +1,7 @@ -EVENT_COMBINE_FAILURE +EVENT_COMBINE_FAILURE is triggered when a player fails to makes a trade skill combine. You would typically use this event in your zone player.pl (or global_player.pl) files. + +Note that this event is in addition to the typical trade skill combine messages. You can use this event to add additional flavor, trigger other events, etc. + ### Exports **Name**|**Type**|**Description** :-----|:-----|:----- @@ -12,4 +15,22 @@ sub EVENT_COMBINE_FAILURE { } ``` +### Triggered + +* When a player fails to makes a trade skill combine + +### Example + +* In this example, we send the client a message when they fail to combine a Hand Made Backpack + +```perl +sub EVENT_COMBINE_FAILURE { + #:: Match Recipe 2686: "Hand Made Backpack" by ID + if ($recipe_id == 2686) { + #:: Send the client a message in color 15 (yellow) + $client->Message(15,"Awww...now where are you going to put all of your stuff?"); + } +} +``` + Generated On 2018-01-15T22:07:30-08:00 \ No newline at end of file