Exemplo n.º 1
0
 public override void Parse(SagaLib.Client client)
 {
     try
     {
         LoginSession client_ = (LoginSession)client;
         Packets.Login.Send.MapPong p = new SagaMap.Packets.Login.Send.MapPong();
         client.netIO.SendPacket(p, client_.SessionID);
     }
     catch
     {
         MapClient client_ = (MapClient)client;
         Packets.Login.Send.MapPong p = new SagaMap.Packets.Login.Send.MapPong();
         client.netIO.SendPacket(p, client_.SessionID);
     }
 }
Exemplo n.º 2
0
 public override void Parse(SagaLib.Client client)
 {
     LoginClient client_ = (LoginClient)client;
     if (client_.pinging)
     {
         client_.mapServer.lastPong = DateTime.Now;
         client_.pinging = false;
         TimeSpan span = client_.mapServer.lastPong - client_.mapServer.lastPing;
         Logger.ShowInfo("Last Map ping value:" + span.TotalMilliseconds.ToString() + "ms");
     }
     else
     {
         Packets.Server.MapPong p = new SagaLogin.Packets.Server.MapPong();
         p.SetResult(1);
         LoginClient.CPGateway.netIO.SendPacket(p, LoginClient.CPGateway.SessionID);
     }
 }
Exemplo n.º 3
0
 public override void Parse(SagaLib.Client client)
 {
     try
     {
         foreach (CharServer i in LoginServer.charServerList.Values)
         {
             MapServer map = i.mapServers[0];
             Packets.Map.Send.MapPing p = new SagaLogin.Packets.Map.Send.MapPing();
             map.sClient.netIO.SendPacket(p, map.sClient.SessionID);
             LoginClient.CPGateway = (LoginClient)client;
             return;
         }
     }
     catch(Exception)
     {
         Packets.Server.MapPong p = new SagaLogin.Packets.Server.MapPong();
         p.SetResult(0);
         client.netIO.SendPacket(p, 0xFFFFFFFF);
     }
 }
Exemplo n.º 4
0
 public override void Parse(SagaLib.Client client)
 {
     ((MapClient)(client)).OnTradeListConfirm(this);
 }
Exemplo n.º 5
0
 public override void Parse(SagaLib.Client client)
 {
     ((MapClient)(client)).OnSkillToggle(this);
 }
Exemplo n.º 6
0
 public override void Parse(SagaLib.Client client)
 {
     ((LoginClient)(client)).OnLogout(this);
 }
Exemplo n.º 7
0
 public override void Parse(SagaLib.Client client)
 {
     ((MapClient)(client)).OnItemGet(this);
 }
Exemplo n.º 8
0
 public override void Parse(SagaLib.Client client)
 {
     ((MapClient)(client)).OnPartyQuit(this);
 }
Exemplo n.º 9
0
 public override void Parse(SagaLib.Client client)
 {
     ((MapClient)(client)).OnSendMoveStart(this);
 }
Exemplo n.º 10
0
 public override void Parse(SagaLib.Client client)
 {
     ((MapClient)(client)).OnSetSpecialSkill(this);
 }
Exemplo n.º 11
0
 public override void Parse(SagaLib.Client client)
 {
     ((MapClient)(client)).OnMarketDeleteItem(this);
 }
Exemplo n.º 12
0
 public override void Parse(SagaLib.Client client)
 {
     ((MapClient)(client)).OnSendUsePortal(this);
 }
Exemplo n.º 13
0
 public override void Parse(SagaLib.Client client)
 {
     ((MapClient)(client)).OnSendHomePoint(this);
 }
Exemplo n.º 14
0
 public override void Parse(SagaLib.Client client)
 {
     ((MapClient)(client)).OnHeartbeat(this);
 }
Exemplo n.º 15
0
 public override void Parse(SagaLib.Client client)
 {
     ((MapClient)(client)).OnCharSlot(this);
 }
Exemplo n.º 16
0
 public override void Parse(SagaLib.Client client)
 {
     ((GatewayClient)(client)).OnSendIdentify(this);
 }
Exemplo n.º 17
0
 public override void Parse(SagaLib.Client client)
 {
     ((LoginSession)(client)).OnResponseRequest(this);
 }
Exemplo n.º 18
0
 public override void Parse(SagaLib.Client client)
 {
     ((ServerSession)(client)).OnSendUniversal(this);
 }
Exemplo n.º 19
0
 public override void Parse(SagaLib.Client client)
 {
     ((LoginClient)(client)).OnSelectChar(this);
 }
Exemplo n.º 20
0
 public override void Parse(SagaLib.Client client)
 {
     ((MapClient)(client)).OnSortInvList(this);
 }
Exemplo n.º 21
0
 public override void Parse(SagaLib.Client client)
 {
     ((MapClient)(client)).OnNPCDropList(this);
 }
Exemplo n.º 22
0
 public override void Parse(SagaLib.Client client)
 {
     ((LoginClient)(client)).OnRequestMapServer(this);
 }
Exemplo n.º 23
0
 public override void Parse(SagaLib.Client client)
 {
     ((LoginSession)(client)).OnSendKey(this);
 }
Exemplo n.º 24
0
 public override void Parse(SagaLib.Client client)
 {
     ((MapClient)(client)).OnCorpseCleared(this);
 }
Exemplo n.º 25
0
 public override void Parse(SagaLib.Client client)
 {
     ((MapClient)(client)).OnGetCancel(this);
 }
Exemplo n.º 26
0
 public override void Parse(SagaLib.Client client)
 {
     ((LoginClient)(client)).OnSendGUID(this);
 }
Exemplo n.º 27
0
 public override void Parse(SagaLib.Client client)
 {
     ((MapClient)(client)).OnSendVersion(this);
 }
Exemplo n.º 28
0
 public override void Parse(SagaLib.Client client)
 {
     LoginClient client_ = (LoginClient)client;
     Packets.Server.LoginPong p = new SagaLogin.Packets.Server.LoginPong();
     client.netIO.SendPacket(p, client_.SessionID);
 }
Exemplo n.º 29
0
 public override void Parse(SagaLib.Client client)
 {
     ((MapSession)(client)).OnSendGUID(this);
 }
Exemplo n.º 30
0
 public override void Parse(SagaLib.Client client)
 {
     ((MapClient)(client)).OnMarketGetComment(this);
 }