public void OnQuestInfo(SM_QUEST_INFO p) { long session = p.SessionID; if (packetSessions.ContainsKey(session)) { if (packetSessions.TryRemove(session, out T client)) { OnQuestInfo(client, p.Quests, p.QuestCompleted); } } }
public void OnQuestGet(Packets.Client.CM_QUEST_GET p) { ActorPC pc = CharacterCache.Instance[p.CharID]; SM_QUEST_INFO p1 = new SM_QUEST_INFO() { SessionID = p.SessionID, Quests = pc.Quests.Values.ToList(), QuestCompleted = pc.QuestsCompleted }; Network.SendPacket(p1); }
public void SendQuestList() { SM_QUEST_INFO p = new SM_QUEST_INFO() { Quests = chara.Quests.Values.ToList() }; Network.SendPacket(p); { SM_QUEST_HISTORY p2 = new SM_QUEST_HISTORY() { QuestsCompelted = chara.QuestsCompleted }; Network.SendPacket(p2); } }