Galvaxo
|
  |
| Joined: 22 Apr 2011 |
| Total Posts: 3321 |
|
|
| 08 Feb 2015 04:54 PM |
but at least i got changed from yellow to pink
|
|
|
| Report Abuse |
|
|
|
| 08 Feb 2015 04:54 PM |
na m7
i was blue since 2010 m8888888888 |
|
|
| Report Abuse |
|
|
|
| 08 Feb 2015 04:55 PM |
Pink is for He-Man.
Go troll in OT. |
|
|
| Report Abuse |
|
|
Galvaxo
|
  |
| Joined: 22 Apr 2011 |
| Total Posts: 3321 |
|
|
| 08 Feb 2015 04:55 PM |
i shouldve clarified chat color
|
|
|
| Report Abuse |
|
|
Kamov
|
  |
| Joined: 07 Aug 2008 |
| Total Posts: 29015 |
|
|
| 08 Feb 2015 04:57 PM |
You can check what color will you get by using special algorithm
Probably this one
function LoadChatColorModule() local COLOR_TABLE, Get, GetId COLOR_TABLE = { BrickColor.new("Bright red"), BrickColor.new("Bright blue"), BrickColor.new("Earth green"), BrickColor.new("Bright violet"), BrickColor.new("Bright orange"), BrickColor.new("Bright yellow"), BrickColor.new("Light reddish violet"), BrickColor.new("Brick yellow") } function Get(name) return COLOR_TABLE[GetId(name) + 1] end function GetId(name) local length = #name local modifier = (length % 2 == 0) and 1 or 0 local value = 0 for index = 1, length do if (length - index + modifier) % 4 < 2 then value = value + string.byte(name, index) else value = value - string.byte(name, index) end end return value % 8 end return { COLOR_TABLE = COLOR_TABLE, Get = Get, GetId = GetId } end local ChatColor = LoadChatColorModule() |
|
|
| Report Abuse |
|
|
Zheryt
|
  |
| Joined: 13 Dec 2011 |
| Total Posts: 955 |
|
| |
|
| |
|
Nickxis
|
  |
| Joined: 18 Jan 2014 |
| Total Posts: 1029 |
|
| |
|