• 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!

Message Type

Helliot1

Owner of Empire Online
Joined
Jul 26, 2017
Messages
315
Solutions
1
Reaction score
58
If I want to create another type of message, how would I define the color of the message and if it will appear on the console or on the game window?

OTX3
C++:
enum MessageClasses : uint8_t {
    MESSAGE_STATUS_CONSOLE_RED = 18, /*Red message in the console*/
    MESSAGE_EVENT_ORANGE = 19, /*Orange message in the console*/
    MESSAGE_STATUS_CONSOLE_ORANGE = 20,  /*Orange message in the console*/
    MESSAGE_STATUS_WARNING = 21, /*Red message in game window and in the console*/
    MESSAGE_EVENT_ADVANCE = 22, /*White message in game window and in the console*/
    MESSAGE_EVENT_DEFAULT = 23, /*White message at the bottom of the game window and in the console*/
    MESSAGE_STATUS_DEFAULT = 24, /*White message at the bottom of the game window and in the console*/
    MESSAGE_INFO_DESCR = 25, /*Green message in game window and in the console*/
    MESSAGE_STATUS_SMALL = 26, /*White message at the bottom of the game window"*/
    MESSAGE_STATUS_CONSOLE_BLUE = 27, /*FIXME Blue message in the console*/
};
 
Hey! Where i can find all message classes?
in const.h
C++:
enum SpeakClasses : uint8_t {
    TALKTYPE_SAY = 1,
    TALKTYPE_WHISPER = 2,
    TALKTYPE_YELL = 3,
    TALKTYPE_PRIVATE_PN = 4,
    TALKTYPE_PRIVATE_NP = 5,
    TALKTYPE_PRIVATE = 6,
    TALKTYPE_CHANNEL_Y = 7,
    TALKTYPE_CHANNEL_W = 8,
    TALKTYPE_RVR_CHANNEL = 9,
    TALKTYPE_RVR_ANSWER = 10,
    TALKTYPE_RVR_CONTINUE = 11,
    TALKTYPE_BROADCAST = 12,
    TALKTYPE_CHANNEL_R1 = 13, //red - #c text
    TALKTYPE_PRIVATE_RED = 14, //@name@text
    TALKTYPE_CHANNEL_O = 15, //@name@text
    TALKTYPE_CHANNEL_R2 = 17, //#d
    TALKTYPE_MONSTER_SAY = 19,
    TALKTYPE_MONSTER_YELL = 20,
};
 
Back
Top