public override void Execute(Npc npc, Character character) { var dialog = new NpcDialog(character, npc); dialog.Open(); dialog.ChangeMessage(Message); }
public override void Execute(Npc npc, Character character) { NpcDialog npcDialog = new NpcDialog(character, npc); npcDialog.Open(); npcDialog.ChangeMessage(this.Message); }
public void OnStateEnter() { Chat.WriteLine("StartMissionState::OnStateEnter"); Dynel questStarter = DynelManager.Characters.FirstOrDefault(x => x.Name == QuestStarterName && !x.IsPet); if (questStarter == null) { //Should we just reform and try again or try to solve this situation? Chat.WriteLine("Unable to locate quest starter."); return; } NpcDialog.Open(questStarter); }
public void OnStateEnter() { Chat.WriteLine("GrabMissionState::OnStateEnter"); //Ignore pets because I already know you people are going to try that. //There should be a NPC template associated with this mob that we can use to accurately identify it but i will wait until there's a need. Dynel questGiver = DynelManager.Characters.FirstOrDefault(x => x.Name == Constants.QuestGiverName && !x.IsPet); if (questGiver == null) { //Goto MoveToQuestGiver State? Chat.WriteLine("Unable to locate quest giver."); return; } NpcDialog.Open(questGiver); }