Beispiel #1
0
 public override void AddLoginBytes(Player player, Map map)
 {
     netmsg.AddByte(0x0A);
     netmsg.AddU32(player.GetID());
     netmsg.AddByte(0x32);
     netmsg.AddByte(0x00);
     AddScreenMap(map, player);
     AddStats(player);
     UpdateWorldLight(map.GetWorldLightLevel());
     UpdateCreatureLight(player, player.SpellLightLevel);
     AddSkills(player);
     AddFullInventory(player);
 }
Beispiel #2
0
 /// <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());
 }