Jump to content
Sign in to follow this  
xXBoyDarkXx

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:

 

Please login or register to see this image.

 

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:

Please login or register to see this code.

  • Thanks 1
  • Upvote 3

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×

Important Information

By using this site, you agree to our Terms of Use.

Our website is made possible by displaying online advertisements to our visitors.
Please consider supporting us by disabling your ad blocker.
You will be able to see content when you disable your adblocker and enable javascript.