private static string GetCommandText(EndQuestCommand command, MapInstance map)
        {
            if (!command.SkipCompletionEvent)
            {
                return(Strings.EventCommandList.endquest.ToString(
                           QuestBase.GetName(command.QuestId), Strings.EventCommandList.runcompletionevent
                           ));
            }

            return(Strings.EventCommandList.endquest.ToString(
                       QuestBase.GetName(command.QuestId), Strings.EventCommandList.skipcompletionevent
                       ));
        }
 private static string GetCommandText(StartQuestCommand command, MapInstance map)
 {
     if (!command.Offer)
     {
         return(Strings.EventCommandList.startquest.ToString(
                    QuestBase.GetName(command.QuestId), Strings.EventCommandList.forcedstart
                    ));
     }
     else
     {
         return(Strings.EventCommandList.startquest.ToString(
                    QuestBase.GetName(command.QuestId), Strings.EventCommandList.showoffer
                    ));
     }
 }
        private static string GetCommandText(CompleteQuestTaskCommand command, MapInstance map)
        {
            var quest = QuestBase.Get(command.QuestId);

            if (quest != null)
            {
                //Try to find task
                foreach (var task in quest.Tasks)
                {
                    if (task.Id == command.TaskId)
                    {
                        return(Strings.EventCommandList.completetask.ToString(
                                   QuestBase.GetName(command.QuestId), task.GetTaskString(Strings.TaskEditor.descriptions)
                                   ));
                    }
                }
            }

            return(Strings.EventCommandList.completetask.ToString(
                       QuestBase.GetName(command.QuestId), Strings.EventCommandList.taskundefined
                       ));
        }