public override void ProcessTalk(Player player, Controllers.DialogController dialog, bool isReward) { if (!IsCountersComplete(player)) return; string title = Task.JournalText.Substring(0, Task.JournalText.IndexOf(":", StringComparison.OrdinalIgnoreCase) + 1); int titleId = int.Parse(Task.JournalText.Substring(Task.JournalText.IndexOf(":", StringComparison.OrdinalIgnoreCase) + 1)) - 1; title = title + titleId; if (dialog.Buttons[0].Text.Equals(title)) { Processor.FinishStep(player); } else { dialog.Reset(3, 0, player.Quests[Quest.QuestId].Step + 1, 1 + (titleId % 1000) / 2, Quest.QuestId); dialog.Buttons.Add(new DialogButton(DialogIcon.DefaultQuest, title)); dialog.SendDialog(Quest, Global.QuestEngine.GetRewardForPlayer(player, Quest)); } }