/// <summary> /// Adds the login bytes to the player's client. /// </summary> /// <param name="player">The player for whom to add the login bytes.</param> /// <param name="map">A reference to the map.</param> public override void AddLoginBytes(Player player, Map map) { AddMOTD(Config.GetMOTD(), Config.GetMessageNumber()); netmsg.AddU16(0x01); //Login header netmsg.AddU32(player.GetID()); //ID sent to the client AddScreenMap(map, player); AddEffect(MagicEffect.BLUEBALL, player.CurrentPosition); AddFullInventory(player); AddStats(player); AddStatusMessage(Config.GetWelcomeMessage()); UpdateWorldLight(map.GetWorldLightLevel()); UpdateCreatureLight(player, player.GetLightLevel()); }