Example #1
0
 void ProcessEscapePacket(EscapePacket pkt)
 {
     Reconnect(new ReconnectPacket()
     {
         Host = "",
         Port = 2050,
         GameId = World.NEXUS_ID,
         Name = "Nexus",
         Key = Empty<byte>.Array,
     });
 }
Example #2
0
 private void ProcessEscapePacket(EscapePacket pkt)
 {
     try
     {
         World 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, Check Client.cs");
     }
 }