The only issue I come across is literally having to sit over and over to gain stamina after using a skill that requires stamina usage. I'm not sure what I am missing so when the character is sitting, the stamina is increasing.
Code:
#region Stamina
//TODO: Fly update for stamina
{
try
{
byte ToUp = 2;
if (client.Entity.Action == Game.Enums.ConquerAction.Sit || client.Entity.Action == Game.Enums.ConquerAction.Lie)
{
if (DateTime.Now > client.Entity.SitAt.AddMilliseconds(300))
{
ToUp = 11;
client.Entity.Stamina = (byte)Math.Min(client.Entity.Stamina + ToUp, client.Entity.MaxStamina);
}
client.Entity.SitAt = DateTime.Now;
}
}
catch{}
}
#endregion






