Jump to content

[Game] Tempo De Rodar Pelo Config


tierrilopes

Recommended Posts

Abrir o ficheiro game\config.cpp

 

Procurar por:

 

int gPlayerMaxLevel = 99;

 

Adicionar por baixo (60=60segundos em cada troca de bónus, valor por defeito. Pode ser alterado aqui ou pelo ficheiro CONFIG):

 

int attr_change_limit = 60;

 

Procurar por:

 

TOKEN("max_level")

{

str_to_number(gPlayerMaxLevel, value_string);

 

gPlayerMaxLevel = MINMAX(1, gPlayerMaxLevel, PLAYER_MAX_LEVEL_CONST);

 

fprintf(stderr, "PLAYER_MAX_LEVEL: %d\n", gPlayerMaxLevel);

}

 

Adicionar por baixo:

 

TOKEN("attr_change_limit")

{

str_to_number(attr_change_limit, value_string);

 

attr_change_limit = MINMAX(0, attr_change_limit, 32767);

 

fprintf(stderr, "ATTR_CHANGE_LIMIT: %d\n", attr_change_limit);

 

}

 

separador.png

 

Abrir o ficheiro game\char_item.cpp

 

Procurar por:

 

const BYTE g_aBuffOnAttrPoints[] = { POINT_ENERGY, POINT_COSTUME_ATTR_BONUS };

 

Adicionar por baixo:

 

extern int attr_change_limit;

 

Procurar por:

 

 

 

DWORD dwChangeItemAttrCycle = quest::CQuestManager::instance().GetEventFlag(msc_szChangeItemAttrCycleFlag);

if (dwChangeItemAttrCycle < msc_dwDefaultChangeItemAttrCycle)

dwChangeItemAttrCycle = msc_dwDefaultChangeItemAttrCycle;

 

quest::PC* pPC = quest::CQuestManager::instance().GetPC(GetPlayerID());

 

if (pPC)

{

DWORD dwNowMin = get_global_time() / 60;

 

DWORD dwLastChangeItemAttrMin = pPC->GetFlag(msc_szLastChangeItemAttrFlag);

 

if (dwLastChangeItemAttrMin + dwChangeItemAttrCycle > dwNowMin)

{

ChatPacket(CHAT_TYPE_INFO, LC_TEXT("속성을 바꾼지 %d분 이내에는 다시 변경할 수 없습니다.(%d 분 남음)"),

dwChangeItemAttrCycle, dwChangeItemAttrCycle - (dwNowMin - dwLastChangeItemAttrMin));

return false;

}

 

pPC->SetFlag(msc_szLastChangeItemAttrFlag, dwNowMin);

}

}

 

 

 

 

Substituir por:

 

 

 

DWORD dwChangeItemAttrCycle = attr_change_limit;

 

quest::PC* pPC = quest::CQuestManager::instance().GetPC(GetPlayerID());

 

if (pPC)

{

DWORD dwNowMin = get_global_time();

 

DWORD dwLastChangeItemAttrMin = pPC->GetFlag(msc_szLastChangeItemAttrFlag);

 

if (dwLastChangeItemAttrMin + dwChangeItemAttrCycle > dwNowMin)

{

ChatPacket(CHAT_TYPE_INFO, LC_TEXT("속성을 바꾼지 %d분 이내에는 다시 변경할 수 없습니다.(%d 분 남음)"),

dwChangeItemAttrCycle, dwChangeItemAttrCycle - (dwNowMin - dwLastChangeItemAttrMin));

return false;

}

 

pPC->SetFlag(msc_szLastChangeItemAttrFlag, dwNowMin);

}

}

 

 

 

 

separador.png

Abrir o ficheiro game\config.h

 

Procurar por:

 

extern int gPlayerMaxLevel;

 

Adicionar por baixo:

 

extern int attr_change_limit;

 

 

Ficheiro config:

 

ATTR_CHANGE_LIMIT: X

Onde X = número em segundos

Link to comment
Share on other sites

  • 4 years later...

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
×
×
  • Create New...