Next Administrador
Cantidad de envíos : 117 Edad : 34 Fecha de inscripción : 08/01/2008
| Tema: Auto Reset -Stats y Lvl- Jue 07 Feb 2008, 04:52 | |
| Lo q hace este code es q si te pasas del max lvl o del max stat te desconecta del servidor y cuando volves a entrar se te arregla Funcion InitPlayerData buscar: - Código:
-
if (m_pClientList[iClientH] == NULL) { wsprintf(cTxt, "<%d> InitPlayerData error - Socket error! Disconnected.", iClientH); PutLogList(cTxt); return; } Abajo agregar: - Código:
-
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]; } } Code By XenX. | |
|