Esempio n. 1
0
 /// <summary>
 /// Add player stats to player's client.
 /// </summary>
 /// <param name="player">Player whose stats to add.</param>
 public override void AddStats(Player player)
 {
     netmsg.AddU16(0x3C); //Stats header
     netmsg.AddU16(player.CurrentHP); //hp
     netmsg.AddU16((ushort)player.GetCurrentCap()); //cap
     netmsg.AddU32(player.Experience); //xp
     netmsg.AddByte(player.Level); //lvl
     netmsg.AddU16(player.CurrentMana); //mana
     netmsg.AddByte(player.MagicLevel); //magic level
     netmsg.AddU16(player.GetAmmo()); //Ammo
 }