public void SendWorldMap() { Player.WorldMap.IsOpen = true; var packet = new ServerPacket(0x2E); packet.WriteString8(Player.WorldMap.FileName); packet.WriteByte((byte)Player.WorldMap.Nodes.Count); packet.WriteByte(0x09); for (int i = 0; i < Player.WorldMap.Nodes.Count; i++) { var node = Player.WorldMap.Nodes[i]; packet.WriteUInt16((ushort)node.X); packet.WriteUInt16((ushort)node.Y); packet.WriteString8(node.MapName); packet.WriteInt32(i); packet.WriteUInt16((ushort)node.MapX); packet.WriteUInt16((ushort)node.MapY); } Enqueue(packet); }