From 1cc8e263bb9990ffaec4cce64b22b73ca1a2c2e5 Mon Sep 17 00:00:00 2001 From: TurmoilToad Date: Thu, 22 Feb 2018 11:04:54 -0500 Subject: [PATCH] Updated Perl EVENT_COMBINE_SUCCESS (markdown) --- Perl-EVENT_COMBINE_SUCCESS.md | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/Perl-EVENT_COMBINE_SUCCESS.md b/Perl-EVENT_COMBINE_SUCCESS.md index d7c4210..5c8c787 100755 --- a/Perl-EVENT_COMBINE_SUCCESS.md +++ b/Perl-EVENT_COMBINE_SUCCESS.md @@ -1,4 +1,7 @@ -EVENT_COMBINE_SUCCESS +EVENT_COMBINE_SUCCESS is triggered when a player successfully 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,24 @@ sub EVENT_COMBINE_SUCCESS { } ``` +### Triggered + +* When a player successfully makes a trade skill combine + +### Example + +* In this example, we send the client a message when they successfully combine a Hand Made Backpack + +```perl +sub EVENT_COMBINE_SUCCESS { + #:: Match Recipe 2686: "Hand Made Backpack" by ID + if ($recipe_id == 2686) { + #:: Send the client a message in color 15 (yellow) + $client->Message(15,"Yay, now you have a place to put all of your stuff!"); + } +} +``` + + + Generated On 2018-01-15T22:07:30-08:00 \ No newline at end of file