public static void Relog(MapleClient c, InPacket p) { //if (c.Account.IsLogged) // c.Send(LoginPacket.ReLogResponse()); }
public static void PLAYER_UPDATE(MapleClient c, InPacket p) { c?.Player?.Save(); }
public static void PONG(MapleClient c, InPacket p) { c.LastPongTime = DateTime.Now; }
public static void ERROR_LOG(MapleClient c, InPacket p) { Console.WriteLine($"错误信息:{p.ReadMapleString()}"); }
protected override void OnNewClientConnected(MapleClient client) { client.SendRaw(PacketCreator.Handshake(client.SendIv, client.RecvIv)); client.HasHandShaked = true; }