xXBoyDarkXx Posted June 18, 2015 at 09:21 PM Share Posted June 18, 2015 at 09:21 PM Hoje vou ensinar como colocar o nível ao lado dos mobs como na última actualização do metin2 oficial: PythonNonPlayer.h: abaixo do método GetMonsterName insira: BYTE GetMobLevel(DWORD dwVnum); PythonNonPlayer.cpp: basta adicionar a seguinte função: BYTE CPythonNonPlayer::GetMobLevel(DWORD dwVnum) { const CPythonNonPlayer::TMobTable * c_pTable = GetTable(dwVnum); if (!c_pTable) return 0; return c_pTable->bLevel; } InstanceBase.cpp: Procure o seguinte : m_dwLevel = c_rkCreateData.m_dwLevel; Substitua por isto: if (GetInstanceType() == CActorInstance::TYPE_ENEMY) m_dwLevel = CPythonNonPlayer::Instance().GetMobLevel(GetRace()); else m_dwLevel = c_rkCreateData.m_dwLevel; Link to comment
F-Caneiras Posted August 26, 2017 at 08:58 PM Share Posted August 26, 2017 at 08:58 PM Bom tutorial funcionou perfeitamente =) Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now