Beispiel #1
0
 //07 05
 public void OnQuestConfirm(Packets.Client.QuestConfirm p)
 {
     if (SagaMap.Quest.QuestsManager.GetActiveQuest(this.Char) != null)
     {
         Packets.Server.QuestCancel p2 = new SagaMap.Packets.Server.QuestCancel();
         p2.SetQuestID(Quest.QuestsManager.GetActiveQuest(this.Char).ID);
         this.netIO.SendPacket(p2, this.SessionID);;
         return;
     }
     if (this.QuestConfirm == false)
     {
         Packets.Server.QuestConfirm p1 = new SagaMap.Packets.Server.QuestConfirm();
         p1.SetQuestID(p.GetQuestID());
         this.netIO.SendPacket(p1, this.SessionID);
         this.QuestConfirm = true;
     }
     else
     {
         MapItem item = (MapItem)this.Char.LastMissionBoard.e;
         item.OnQuestConfirmed(this.Char, p.GetQuestID());
         this.QuestConfirm = false;
     }
 }
Beispiel #2
0
 //07 05
 public void OnQuestConfirm(Packets.Client.QuestConfirm p)
 {
     if (SagaMap.Quest.QuestsManager.GetActiveQuest(this.Char) != null)
     {
         Packets.Server.QuestCancel p2 = new SagaMap.Packets.Server.QuestCancel();
         p2.SetQuestID(Quest.QuestsManager.GetActiveQuest(this.Char).ID);
         this.netIO.SendPacket(p2, this.SessionID); ;
         return;
     }
     if (this.QuestConfirm == false)
     {
         Packets.Server.QuestConfirm p1 = new SagaMap.Packets.Server.QuestConfirm();
         p1.SetQuestID(p.GetQuestID());
         this.netIO.SendPacket(p1, this.SessionID);
         this.QuestConfirm = true;
     }
     else
     {
         MapItem item = (MapItem)this.Char.LastMissionBoard.e;
         item.OnQuestConfirmed(this.Char, p.GetQuestID());
         this.QuestConfirm = false;
     }
 }