Logo
live-news-icon

Noticias

Tema: Add Keep DL command status option - MuEMU

Applayo

  • *
Add Keep DL command status option - MuEMU | en: Abril 21, 2021, 05:43:18 pm »

Opção para manter o status DL quando ResetType for 1 (Pontuativo)


Em ServerInfo.h procure por int m_CommandResetPointRate[MAX_CLASS];

E acrescente abaixo int m_CommandResetKeepDLCommandPoint[MAX_ACCOUNT_LEVEL];


Em ServerInfo.cpp procure por this->m_CommandResetPointRate[6] = GetPrivateProfileInt(section,"CommandResetPointRat eRF",0,path);

E acrescente abaixo

Código: [Seleccionar]
this->m_CommandResetKeepDLCommandPoint[0] = GetPrivateProfileInt(section,"CommandResetKeepDLCo mmandPoint_AL0",0,path);

this->m_CommandResetKeepDLCommandPoint[1] = GetPrivateProfileInt(section,"CommandResetKeepDLCo mmandPoint_AL1",0,path);

this->m_CommandResetKeepDLCommandPoint[2] = GetPrivateProfileInt(section,"CommandResetKeepDLCo mmandPoint_AL2",0,path);

this->m_CommandResetKeepDLCommandPoint[3] = GetPrivateProfileInt(section,"CommandResetKeepDLCo mmandPoint_AL3",0,path);


Na função
Código:

void CCommandManager::DGCommandResetRecv(SDHP_COMMAND_RESET_RECV* lpMsg) // OK

encontre if(gServerInfo.m_CommandResetType == 1)

e onde estiver lpObj->Leadership = gDefaultClassInfo.m_DefaultClassInfo[lpObj->Class].Leadership;

troque para

Código: [Seleccionar]
//- Add Keep DL command status option
if(gServerInfo.m_CommandResetKeepDLCommandPoint[lpObj->AccountLevel] == 0)
{
lpObj->Leadership = gDefaultClassInfo.m_DefaultClassInfo[lpObj->Class].Leadership;
}


No arquivo GameServerInfo - Command.dat acrescente as linhas ao ; Reset Command Settings

Código: [Seleccionar]
CommandResetKeepDLCommandPoint_AL0 = 0
CommandResetKeepDLCommandPoint_AL1 = 0
CommandResetKeepDLCommandPoint_AL2 = 0
CommandResetKeepDLCommandPoint_AL3 = 0


Créditos: Emershow

robins1998

  • *
Re: Add Keep DL command status option - MuEMU | Respuesta #1 en: Mayo 27, 2021, 02:30:56 am »

Very helpful, thanks for sharing.


Responder Marcar No Leido Enviar Topic Print