Nigga
Administrator
Dołączył: 18 Mar 2008
Posty: 43
Przeczytał: 0 tematów
Ostrzeżeń: 0/5
|
Wysłany: Wto 13:37, 25 Mar 2008 Temat postu: [CODE] AutoReset |
|
|
Bueno, este en un code q te auto-resetea al lvl max si te pasas, tmb te resetea la exp y los stats:
Funcion InitPlayerData buscar:
Kod: |
if (m_pClientList[iClientH] == NULL) {
wsprintf(cTxt, "<%d> InitPlayerData error - Socket error! Disconnected.", iClientH);
PutLogList(cTxt);
return;
} |
Abajo agregar:
Kod: |
if (m_pClientList[iClientH]->m_iStr > m_sCharStatLimit) { // XenX restore if you go above max stats
m_pClientList[iClientH]->m_iStr = m_sCharStatLimit;
}
if (m_pClientList[iClientH]->m_iVit > m_sCharStatLimit) { // XenX restore if you go above max stats
m_pClientList[iClientH]->m_iVit = m_sCharStatLimit;
}
if (m_pClientList[iClientH]->m_iDex > m_sCharStatLimit) { // XenX restore if you go above max stats
m_pClientList[iClientH]->m_iDex = m_sCharStatLimit;
}
if (m_pClientList[iClientH]->m_iMag > m_sCharStatLimit) { // XenX restore if you go above max stats
m_pClientList[iClientH]->m_iMag = m_sCharStatLimit;
}
if (m_pClientList[iClientH]->m_iInt > m_sCharStatLimit) { // XenX restore if you go above max stats
m_pClientList[iClientH]->m_iInt = m_sCharStatLimit;
}
if (m_pClientList[iClientH]->m_iCharisma >m_sCharStatLimit) { // XenX restore if you go above max stats
m_pClientList[iClientH]->m_iCharisma = m_sCharStatLimit;
}
if (m_pClientList[iClientH]->m_iAdminUserLevel == 0){ // added by XenX code to restore character after going over max level
if (m_pClientList[iClientH]->m_iLevel > m_iPlayerMaxLevel) {
m_pClientList[iClientH]->m_iLevel = m_iPlayerMaxLevel;
}
}
if (m_pClientList[iClientH]->m_iAdminUserLevel == 0){
if (m_pClientList[iClientH]->m_iExp > m_iLevelExpTable[m_iPlayerMaxLevel+1]) {
m_pClientList[iClientH]->m_iExp = m_iLevelExpTable[m_iPlayerMaxLevel];
}
} |
Post został pochwalony 0 razy
|
|