Official Everybody Edits Forums

Do you think I could just leave this part blank and it'd be okay? We're just going to replace the whole thing with a header image anyway, right?

You are not logged in.

Advertisement

Hello, visitor! These forums are run off of the revenue generated from these ads. If you'd like to support us, please whitelist us or consider donating:

#51 2017-01-02 19:44:45

Tomahawk
Member
From: England
Registered: 2015-02-18
Posts: 602

Re: Protocol documentation

EE version is 218.


One bot to rule them all, one bot to find them. One bot to bring them all... and with this cliché blind them.

Offline

Wooted by:

#52 Today 00:35:18

Latif
Member
From: The Netherlands
Registered: 2015-03-13
Posts: 143

Re: Protocol documentation

"add"
19  |  Integer  |  Chat Color  |  The player's chat color.

Is this like friends are green, mods are purple and admins are orange? I want to know the color of each integer smile
Can someone help me?


Road of posts: 10 - 50 - 100 - 200 - 300 - 400 - 500
I'm waiting for UnitEE!

Offline

#53 Today 02:07:19

capasha
Member
Registered: 2015-02-21
Posts: 3,059

Re: Protocol documentation

Latif wrote:
"add"
19  |  Integer  |  Chat Color  |  The player's chat color.

Is this like friends are green, mods are purple and admins are orange? I want to know the color of each integer smile
Can someone help me?

The client detect which colors each user have, friends, admins, mods and so on.


1XlHVLW.png

Offline

#54 Today 09:30:17

Latif
Member
From: The Netherlands
Registered: 2015-03-13
Posts: 143

Re: Protocol documentation

capasha wrote:
Latif wrote:
"add"
19  |  Integer  |  Chat Color  |  The player's chat color.

Is this like friends are green, mods are purple and admins are orange? I want to know the color of each integer smile
Can someone help me?

The client detect which colors each user have, friends, admins, mods and so on.

Yeah I know, but my question is: What integer is friends, what integer is mod and what integer is admin?

EDIT:
So is it like
0 = Default
1 = Friend
2 = Mod
3 = Admin
??

Last edited by Latif (Today 10:26:33)


Road of posts: 10 - 50 - 100 - 200 - 300 - 400 - 500
I'm waiting for UnitEE!

Offline

#55 Today 11:38:42

den3107
Member
From: Netherlands
Registered: 2015-04-24
Posts: 768

Re: Protocol documentation

I think it's RGB (red, green, blue) values converted to a single integer. See this converter.
Do mind that you can see if a player is your friend through id 12.

I don't know what integral value each "user type" has, as obviously I can't easily retrieve those of mods/admins.


Current project: Thinking of/finding/requesting projects...
user.php?id=den3107&hideoffline=true    user.php?id=den3107bot&hideoffline=true

Offline

#56 Today 12:48:34

Latif
Member
From: The Netherlands
Registered: 2015-03-13
Posts: 143

Re: Protocol documentation

den3107 wrote:

I think it's RGB (red, green, blue) values converted to a single integer. See this converter.
Do mind that you can see if a player is your friend through id 12.

I don't know what integral value each "user type" has, as obviously I can't easily retrieve those of mods/admins.

Ah yeah I was afraid of that.
I already used GetBoolean(12) for friends. For admins and moderators I made a list

if (Admins.Contains(username) { }
else if (Moderators.Contains(username) { }

But I have to update the lists when admins and moderators changed.

I'll investigate smile
Thank you


Road of posts: 10 - 50 - 100 - 200 - 300 - 400 - 500
I'm waiting for UnitEE!

Offline

#57 Today 14:47:07

den3107
Member
From: Netherlands
Registered: 2015-04-24
Posts: 768

Re: Protocol documentation

Latif wrote:

But I have to update the lists when admins and moderators changed.

If you don't care about the difference between admin and moderator, you can check if the name color isn't equal to the default or friend color, meaning it's either admin or moderator.


Current project: Thinking of/finding/requesting projects...
user.php?id=den3107&hideoffline=true    user.php?id=den3107bot&hideoffline=true

Offline

#58 Today 16:15:47

capasha
Member
Registered: 2015-02-21
Posts: 3,059

Re: Protocol documentation

Latif wrote:
den3107 wrote:

I think it's RGB (red, green, blue) values converted to a single integer. See this converter.
Do mind that you can see if a player is your friend through id 12.

I don't know what integral value each "user type" has, as obviously I can't easily retrieve those of mods/admins.

Ah yeah I was afraid of that.
I already used GetBoolean(12) for friends. For admins and moderators I made a list

if (Admins.Contains(username) { }
else if (Moderators.Contains(username) { }

But I have to update the lists when admins and moderators changed.

I'll investigate smile
Thank you

That's why they use this database in the client to detect mods and so on, client.BigDB.Load("config", "staff")


1XlHVLW.png

Offline

capasha1485184547644563

Board footer

Powered by FluxBB

[ Started around 1485197866.9306 - Generated in 0.064 seconds, 10 queries executed - Memory usage: 1.08 MiB (Peak: 1.22 MiB) ]