• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

C++ Colors

buchaLL

Bez spiny, luźno
Joined
Apr 16, 2017
Messages
95
Solutions
18
Reaction score
80
Location
Poland
Where can I check these colors? I would like to add my own.
const.h
C++:
enum Color_t
{
    COLOR_BLACK        = 0,
    COLOR_BLUE        = 5,
    COLOR_GREEN        = 18,
    COLOR_TEAL        = 35,
    COLOR_LIGHTGREEN    = 66,
    COLOR_DARKBROWN        = 78,
    COLOR_LIGHTBLUE     = 89,
    COLOR_MAYABLUE      = 95,
    COLOR_DARKRED        = 108,
    COLOR_DARKPURPLE    = 112,
    COLOR_BROWN        = 120,
    COLOR_GREY        = 129,
    COLOR_DARKPINK        = 152,
    COLOR_PURPLE        = 154,
    COLOR_DARKORANGE    = 156,
    COLOR_RED        = 180,
    COLOR_PINK        = 190,
    COLOR_ORANGE        = 192,
    COLOR_DARKYELLOW    = 205,
    COLOR_YELLOW        = 210,
    COLOR_WHITE        = 215,
    COLOR_NONE        = 255,
    COLOR_UNKNOWN        = 256
};

The colors I checked with this code but some are bad like COLOR_ORANGE = 192,
eb8hLmF.png

C++:
#include <iostream>
#include <windows.h>
using namespace std;
int main()
{
    HANDLE hConsole = GetStdHandle(STD_OUTPUT_HANDLE);
  for(int k = 0; k < 255; k++)
  {
    SetConsoleTextAttribute(hConsole, k);
    cout << k << " I want to be nice today!" << endl;
  }
  system("pause"); 
}
 
Probably with this lua function:
Code:
player:sendTextMessage(type, text[, position, primaryValue = 0, primaryColor = TEXTCOLOR_NONE[, secondaryValue = 0, secondaryColor = TEXTCOLOR_NONE]])
 
Back
Top