Jump to content

Recommended Posts

        case POINT_STAMINA:
            {
                if (IsDead() || IsStun())
                    return;

                int prev_val = GetStamina();
                amount = MIN(GetMaxStamina() - GetStamina(), amount);
                SetStamina(GetStamina() + amount);
                val = GetStamina();
                
                if (val == 0)
                {
                    // Stamina
                    SetNowWalking(true);
                }
                else if (prev_val == 0)
                {
                    ResetWalking();
                }

                if (amount < 0 && val != 0)
                    return;
            }
            break;

 

 

Somebody helps me disable the stamina.

This is the hidden content, please

  • Metin2 Dev 5
  • Love 1
Link to comment
Share on other sites

  • 1 month later...
  • Premium
/*
         case POINT_STAMINA:
            {
                if (IsDead() || IsStun())
                    return;

                int prev_val = GetStamina();
                amount = MIN(GetMaxStamina() - GetStamina(), amount);
                SetStamina(GetStamina() + amount);
                val = GetStamina();
                
                if (val == 0)
                {
                    // Stamina
                    SetNowWalking(true);
                }
                else if (prev_val == 0)
                {
                    ResetWalking();
                }

                if (amount < 0 && val != 0)
                    return;
            }
            break;
*/

done..?

 

"Nothing's free in this life.

Ignorant people have an obligation to make up for their ignorance by paying those who help them.

Either you got the brains or cash, if you lack both you're useless."

Syreldar

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now


×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.