Jump to content

Nível Ao Lado Dos Mobs


xXBoyDarkXx
 Share

Recommended Posts

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

 

ysmJFyC4.png

 

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
Share on other sites

  • 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
 Share

×
×
  • Create New...