antiblock
Cyphriun
  • Chatbox

    Did you check out our Discord? https://discord.gg/FFdvMjk9xA
    You don't have permission to chat.
    Load More
Sign in to follow this  
Ultra Instict Goku

Corrigir Bug dos Atributos C++

1 post in this topic

Boas Pessoal Venho Partilhar um Tutorial como Corrigir os Status na Source

 

Config.cpp
Porcurar Isto
TOKEN("max_level")

Adicionar Isto Abaixo
        TOKEN("max_level_status")
        {
            str_to_number(gPlayerMaxLevelStats, value_string);

            gPlayerMaxLevelStats = MINMAX(1, gPlayerMaxLevelStats, gPlayerMaxLevel);

            fprintf(stderr, "PLAYER_MAX_LEVEL_STATS: %d\n", gPlayerMaxLevelStats);
        }
        
Procurar Isto
int gPlayerMaxLevel
Adicionar Abaixo
int gPlayerMaxLevelStats = gPlayerMaxLevel;    

Config.h

Procurar isto
extern int gPlayerMaxLevel;
Adicionar Abaixo
extern int gPlayerMaxLevelStats;

Char.cpp

Procurar Isto
if (GetLevel() < 91) PointChange(POINT_STAT, 1);

e Substituir por isto
if (GetLevel() < (gPlayerMaxLevelStats+1)) PointChange(POINT_STAT, 1);

Procurar Isto
PointChange(POINT_STAT, ((MINMAX(1, iLv, 90) - 1) * 3) + GetPoint(POINT_LEVEL_STEP) - GetPoint(POINT_STAT));

Substituir por isto

PointChange(POINT_STAT, ((MINMAX(1, iLv, gPlayerMaxLevelStats) - 1) * 3) + GetPoint(POINT_LEVEL_STEP) - GetPoint(POINT_STAT));


Depois Nos Canais

Porcurar isto

MAX_LEVEL: 105
Adicionar Isto 
 
MAX_LEVEL_STATUS: 105

Share this post


Link to post
Share on other sites
antiblock
Elveron

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this