mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-29 08:23:34 +00:00
Updated Perl EVENT_COMBINE_SUCCESS (markdown)
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
|
### Exports
|
||||||
**Name**|**Type**|**Description**
|
**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
|
Generated On 2018-01-15T22:07:30-08:00
|
||||||
Loading…
x
Reference in New Issue
Block a user