Updated Perl EVENT_COMBINE_SUCCESS (markdown)

TurmoilToad 2018-02-22 11:04:54 -05:00
parent ad71571d1b
commit 1cc8e263bb

@ -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