Aura.Channel.World.Entities.Creatures.CreatureQuests.Finish C# (CSharp) Method

Finish() public method

Finishes objective for quest, returns false if quest doesn't exist or doesn't have the objective.
public Finish ( int questId, string objective ) : bool
questId int
objective string
return bool
		public bool Finish(int questId, string objective)
		{
			var quest = this.GetFirstIncomplete(questId);
			if (quest == null) return false;

			var progress = quest.GetProgress(objective);
			if (progress == null)
				throw new Exception("Quest.Finish: No progress found for objective '" + objective + "'.");

			quest.SetDone(objective);

			Send.QuestUpdate(_creature, quest);

			return true;
		}