Aura.Channel.Scripting.Scripts.NpcScript.QuestObjective C# (CSharp) 메소드

QuestObjective() 공개 메소드

Returns current quest objective.
public QuestObjective ( int questId ) : string
questId int
리턴 string
		public string QuestObjective(int questId)
		{
			var quest = this.Player.Quests.GetFirstIncomplete(questId);
			if (quest == null)
				throw new Exception("NPC.GetQuestObjective: Player doesn't have quest '" + questId.ToString() + "'.");

			var current = quest.CurrentObjective;
			if (current == null)
				return null;

			return current.Ident;
		}