Jump to content

Nível Ao Lado Dos Mobs


Recommended Posts

Hoje vou ensinar como colocar o nível ao lado dos mobs como na última actualização do metin2 oficial:





abaixo do método GetMonsterName insira:


BYTE GetMobLevel(DWORD dwVnum);



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;




Procure o seguinte :


m_dwLevel = c_rkCreateData.m_dwLevel;


Substitua por isto:

if (GetInstanceType() == CActorInstance::TYPE_ENEMY)
m_dwLevel = CPythonNonPlayer::Instance().GetMobLevel(GetRace());
m_dwLevel = c_rkCreateData.m_dwLevel;

Link to comment
  • 2 years later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...