Jump to content

IsBoss function server


Go to solution Solved by Mali,

Recommended Posts

Hi,

 

I need a function on server side which returns true/false if the mob is a Boss.

I want to use it in battle.cpp as pkVictim->IsBoss().

 

Did someone already developed it?

 

Thank you!

System Administrator @ Hungarian Government
System Administrator @ Vibestro
Freelancer Developer @ Various projects

Link to comment
Share on other sites

  • Honorable Member
  • Solution
enum EMobRank
{
	MOB_RANK_PAWN,
	MOB_RANK_S_PAWN,
	MOB_RANK_KNIGHT,
	MOB_RANK_S_KNIGHT,
	MOB_RANK_BOSS,
	MOB_RANK_KING,
	MOB_RANK_MAX_NUM
};
if (GetMobRank() == MOB_RANK_BOSS)

 

  • Love 2

 

Link to comment
Share on other sites

1 hour ago, Mali61 said:

enum EMobRank
{
	MOB_RANK_PAWN,
	MOB_RANK_S_PAWN,
	MOB_RANK_KNIGHT,
	MOB_RANK_S_KNIGHT,
	MOB_RANK_BOSS,
	MOB_RANK_KING,
	MOB_RANK_MAX_NUM
};

if (GetMobRank() == MOB_RANK_BOSS)

 

Thank you! I got it!

  • Love 1

System Administrator @ Hungarian Government
System Administrator @ Vibestro
Freelancer Developer @ Various projects

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / 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.