Barbosik / MultiOgar

An open source Ogar server implementation, written with Node.js.
Other
61 stars 44 forks source link

File that handles cell color #375

Closed taeukkang closed 8 years ago

taeukkang commented 8 years ago

Hello,

I am trying to use the chat login system, and I am trying to make certain color ADMIN only, so I want to exclude certain colors from the cell color list. Is there a file that handles all cell colors?

Thanks.

Shair17 commented 8 years ago

color "ID" on console

BaumanDev commented 8 years ago

That's not what he is looking for, @Jhair2015

@tveloper Are you looking for the cell to be a certain color, or chat name to be a certain color. you can change both, I just need a specification.

Shair17 commented 8 years ago

ok, sorry :)

makandz commented 8 years ago

https://github.com/Barbosik/MultiOgar/blob/master/src/packet/ChatMessage.js#L27

taeukkang commented 8 years ago

@NatsuTheGreat I have already accomplished changing the color using the packet/ChatMessage.js file.

When a cell is created, it gets a random color assigned, but I want to delete certain colors from the list. For example, I don't want anybody to have the red cell color unless I set it manually using color [ID] on the console.

BaumanDev commented 8 years ago

GameServer.js, getRandomColor();