mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-11 11:48:37 +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:
+1
-1
@@ -683,7 +683,7 @@ void EntityList::AddNPC(NPC *npc, bool send_spawn_packet, bool dont_queue)
|
||||
npc_list.insert(std::pair<uint16, NPC *>(npc->GetID(), npc));
|
||||
mob_list.insert(std::pair<uint16, Mob *>(npc->GetID(), npc));
|
||||
|
||||
if (parse->HasQuestSub(npc->GetNPCTypeID())) {
|
||||
if (parse->HasQuestSub(npc->GetNPCTypeID(), EVENT_SPAWN)) {
|
||||
parse->EventNPC(EVENT_SPAWN, npc, nullptr, "", 0);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user