mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-22 12:18:27 +00:00
[Quest API] Export $item to Fishing and Forage Events in Perl (#2876)
* [Quest API] Export $item to Fishing and Forage Events in Perl # Notes - Exports `$item` to `EVENT_FISH_SUCCESS` in Perl. - Exports `$item` to `EVENT_FORAGE_SUCCESS` in Perl. * Add optional parsing to fish/forage events. * Update forage.cpp * Fix missing event param --------- Co-authored-by: Akkadius <akkadius1@gmail.com>
This commit is contained in:
@@ -6304,7 +6304,9 @@ void Client::Handle_OP_Fishing(const EQApplicationPacket *app)
|
||||
}
|
||||
|
||||
if (CanFish()) {
|
||||
parse->EventPlayer(EVENT_FISH_START, this, "", 0);
|
||||
if (parse->PlayerHasQuestSub(EVENT_FISH_START)) {
|
||||
parse->EventPlayer(EVENT_FISH_START, this, "", 0);
|
||||
}
|
||||
|
||||
//these will trigger GoFish() after a delay if we're able to actually fish, and if not, we won't stop the client from trying again immediately (although we may need to tell it to repop the button)
|
||||
p_timers.Start(pTimerFishing, FishingReuseTime - 1);
|
||||
|
||||
Reference in New Issue
Block a user