private void ProcessEscapePacket(EscapePacket pkt) { try { var world = RealmManager.GetWorld(Player.Owner.Id); if (world.Id == World.NEXUS_ID) { SendPacket(new TextPacket { Stars = -1, BubbleTime = 0, Name = "", Text = "You are already at the Nexus!" }); return; } Reconnect(new ReconnectPacket { Host = "", Port = 2050, GameId = World.NEXUS_ID, Name = "Nexus", Key = Empty<byte>.Array, }); } catch { Console.ForegroundColor = ConsoleColor.Red; Console.Out.WriteLine("Error while sending EscapePacket, Check ClientProcessor.cs"); Console.ForegroundColor = ConsoleColor.White; } }
void ProcessEscapePacket(EscapePacket pkt) { Reconnect(new ReconnectPacket() { Host = "", Port = 2050, GameId = World.NEXUS_ID, Name = "Nexus", Key = Empty<byte>.Array, }); }
private void ProcessEscapePacket(EscapePacket pkt) { try { var world = RealmManager.GetWorld(Player.Owner.Id); if (world.Id == World.NEXUS_ID) { SendPacket(new TextPacket { Stars = -1, BubbleTime = 0, Name = "", Text = "You are already at the Nexus!" }); return; } Reconnect(new ReconnectPacket { Host = "", Port = 2050, GameId = World.NEXUS_ID, Name = "Nexus", Key = Empty<byte>.Array }); } catch { Logger.Error("Error while sending EscapePacket, ClientProcessor.cs"); } }