public bool Remove(Quest quest)
{
lock (_quests)
{
// Try to remove quest
if (_quests.Remove(quest))
{
Send.QuestClear(_creature, quest.UniqueId);
// Removing the item will silently fail if creature
// doesn't have it. We don't really care at this point,
// and if the quest is a party quest, only the leader
// has the quest item.
_creature.Inventory.Remove(quest.QuestItem);
return true;
}
}
return false;
}