Problem in my stamina

05/31/2013 13:32 matheus2984#1
Hi guys :).when I sit my stamina not fill faster follows the code.

HTML Code:
#region Stamina
                        if (Now > this.StaminaStamp.AddMilliseconds(1000))
                        {
                            if (Owner.Entity.Vigor < Owner.Entity.MaxVigor)
                            {
                                if (Owner.Entity.Vigor + 3 < Owner.Entity.MaxVigor)
                                {
                                    Owner.Entity.Vigor += (ushort)(3 + (Owner.Entity.Action == Game.Enums.ConquerAction.Sit ? 2 : 0));

                                    {
                                        Network.GamePackets.Vigor vigor = new Network.GamePackets.Vigor(true);
                                        vigor.VigorValue = Owner.Entity.Vigor;
                                        vigor.Send(Owner);
                                    }
                                }
                                else
                                {
                                    Owner.Entity.Vigor = (ushort)Owner.Entity.MaxVigor;

                                    {
                                        Network.GamePackets.Vigor vigor = new Network.GamePackets.Vigor(true);
                                        vigor.VigorValue = Owner.Entity.Vigor;
                                        vigor.Send(Owner);
                                    }
                                }
                            }
                            if (!this.ContainsFlag(Network.GamePackets.Update.Flags.Fly))
                            {
                                int limit = 0;
                                if (this.HeavenBlessing > 0)
                                    limit = 50;
                                if (this.Stamina != 100 + limit)
                                {
                                    if (this.Action == Game.Enums.ConquerAction.Sit || !this.Owner.Equipment.Free(18))
                                    {
                                        if (this.Stamina <= 93 + limit)
                                        {
                                            this.Stamina += 7;
                                        }
                                        else
                                        {
                                            if (this.Stamina != 100 + limit)
                                                this.Stamina = (byte)(100 + limit);
                                        }
                                    }
                                    else
                                    {
                                        if (this.Stamina <= 97 + limit)
                                        {
                                            this.Stamina += 3;
                                        }
                                        else
                                        {
                                            if (this.Stamina != 100 + limit)
                                                this.Stamina = (byte)(100 + limit);
                                        }
                                    }
                                }
                                this.StaminaStamp = Now;
                            }
                        }
                        #endregion
Help me :o
05/31/2013 17:08 pro4never#2
Make sure your action is set properly. According to that code you get +7 for sitting and +3 if not.
05/31/2013 18:18 matheus2984#3
but my problem is action sit it not work
05/31/2013 18:30 _DreadNought_#4
Why not use a Math. function for stamina ;o
05/31/2013 18:36 diedwarrior#5
If your stamina got a problem, you should try running everyday for 7 days.