Dragonslayer Posted June 13, 2015 Report Share Posted June 13, 2015 Antes de nada. Todo el merito es de Dennis(metin2dev). Yo solo publico como lo tengo. InstanceBase.cpp Cambiar: m_dwLevel = c_rkCreateData.m_dwLevel Por: BYTE level_mob = CPythonNonPlayer::Instance().GetMobLevel(c_rkCreateData.m_dwRace); m_dwLevel = ((c_rkCreateData.m_dwRace > 8 && (c_rkCreateData.m_bType == CActorInstance::TYPE_ENEMY || c_rkCreateData.m_bType == CActorInstance::TYPE_STONE)) ? level_mob : c_rkCreateData.m_dwLevel); Si no tenies incluido PythonNonPlayer.h lo poneis. PythonNonPlayer.h Lo dejais como yo std::map<DWORD, BYTE> LevelByVnum; BYTE GetMobLevel(DWORD dwVnum); PythonNonPlayer.cpp Lo dejais como yo LevelByVnum[pNonPlayerData->dwVnum] = pNonPlayerData->bLevel; //edit Y añadis esto por el final. BYTE CPythonNonPlayer::GetMobLevel(DWORD dwVnum) //edit { map<DWORD, BYTE>::iterator it; it = LevelByVnum.find(dwVnum); if (it != LevelByVnum.end()) { return it->second; } return 0; } Eso es todo, los creditos de Dennis ZoneLife, wedxp123, NazoX and 11 others 14 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.