arcemu/arcemu — Issue #42: NPC with gossip menu and quests
Author: Appled
Created: 2011-11-23 21:48:45+00:00
State: open

I've created a friendly NPC with npcflags 3 (Gossip and quest). Then I gave him a basic gossip menu with one option. It works fine. But you can't see any quests there. Without "GossipAddQuests" there are no quests, with "GossipAddQuests" server crashes.

Script (yes, it is a custom script and I use LuaEngine):
function GeneralKorkText_OnGossipTalk(pUnit, Event, player)
if player:HasFinishedQuest(30002) == true then
pUnit:GossipCreateMenu(30000, player, 0)
else
pUnit:GossipCreateMenu(30001, player, 0)
end
pUnit:GossipAddQuests()
pUnit:GossipMenuAddItem(0, "How can we help you, General?", 1, 0)
pUnit:GossipSendMenu(player)
end

Looks like NPC cannot have a quest and a gossip.
Got the latest ArcEmu revision (the one with !kill fix) and the latest WhyDB.