public void Add(WvsGameClient c) { var character = c.Character; if (c.SentCharData) { c.SendPacket(CPacket.SetField(character, false, c.ChannelId)); } else { c.SentCharData = true; #if DEBUG //So me myself and i all spawn close to eachother <3 character.Stats.nPortal = 0; #else character.Stats.nPortal = Portals.GetRandomSpawn(); #endif c.SendPacket(CPacket.SetField(character, true, c.ChannelId)); } //Send client being added all the existing characters in the map Characters.ForEach(x => c.SendPacket(CPacket.UserEnterField(x))); SendSpawnMobs(c); SendSpawnNpcs(c); Characters.Add(c.Character); Sockets.Add(c.Character, c); //Broadcast everyone already in the map that you have arrived Broadcast(CPacket.UserEnterField(character), c); }