Jump to content

[HELP] Player and HonorKills


Recommended Posts

Posted

So I'm trying to program a little thing in here to allow certain functions if the player meets the certain honorable kills.

So I write:

if (Player->HonorKills >= 8000)

But when you compile:

error C2039: 'HonorKills' : is not a member of 'Player'

So why not? Why can I not use HonorKills as a variable? The thing is written in Player.cpp anywhere where the HonorKills is used. I don't see why I cannot use this...
Posted

uint32 HonorKills = GetUInt32Value(PLAYER_FIELD_LIFETIME_HONORBALE_KILLS);

This is how you have to define HonorKills if you want to use it in Player.cpp, but I did not find anything like that in clean mangos core too.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use