Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[Help] Account Flags

Joined
Sep 3, 2013
Messages
903
Reaction score
227
Hello, I have trouble understanding the system accountflags for ShowPlayerlist(); , i make new flags

In server :

Code:
if(peers_[i].player->profile_.ProfileData.isTwitch == 1)
					n.flags |= 10;

if(plr->profile_.ProfileData.isTwitch == 1)
n.flags |= 10;

In client :

Code:
else if(plrInfo->accountFlags == 10)
	{
		var[10].SetBoolean(true);
		var[11].SetBoolean(false);
	}

But , I have as if I had the dev account flag, I change ID like n.flags |= 99 , i have flag punisher. I missing files ?


Thanks.
 
Experienced Elementalist
Joined
May 28, 2017
Messages
225
Reaction score
127
The problem is that you don't understand bitshiffting, what is fully ok because its something what you don't use normally, but if you use that then you use it for Flags as they did for the chat system. What you got to do is to go straigh from the top to the down, I mean first you start with dev, because you might have the twitch flag too and that means that you would overwrite dev flag in someway...
 
Upvote 0
Back
Top