本文整理汇总了C#中Packets.GetQuestID方法的典型用法代码示例。如果您正苦于以下问题:C# Packets.GetQuestID方法的具体用法?C# Packets.GetQuestID怎么用?C# Packets.GetQuestID使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Packets
的用法示例。
在下文中一共展示了Packets.GetQuestID方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: OnQuestCompleted
//07 06
public void OnQuestCompleted(Packets.Client.QuestCompleted p)
{
if (RewardChoice != null)
{
Packets.Server.QuestRewardChoice p1 = new SagaMap.Packets.Server.QuestRewardChoice();
this.netIO.SendPacket(p1, this.SessionID); ;
completingquest = p.GetQuestID();
}
else
{
if (RewardFunc != null)
{
RewardFunc.DynamicInvoke(this.Char, p.GetQuestID());
completingquest = 0;
RewardFunc = null;
}
}
}
示例2: OnQuestConfirm
//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;
}
}
示例3: OnQuestConfirmCancel
public void OnQuestConfirmCancel(Packets.Client.QuestConfirmCancel p)
{
this.QuestConfirm = false;
uint QID = p.GetQuestID();
SagaDB.Quest.Quest quest = Quest.QuestsManager.GetActiveQuest(this.Char);
if (QID != 0 && quest != null)
{
if (QID == quest.ID)
{
MapServer.charDB.DeleteQuest(this.Char, this.Char.QuestTable[QID]);
this.Char.QuestTable.Remove(QID);
this.SendQuestInfo();
}
}
quest = Quest.QuestsManager.GetActivePersonalQuest(this.Char);
if (QID != 0 && quest != null)
{
if (QID == quest.ID)
{
MapServer.charDB.DeleteQuest(this.Char, this.Char.PersonalQuestTable[QID]);
this.Char.PersonalQuestTable.Remove(QID);
this.SendQuestInfo();
}
}
}