This is in const.h in the forgottenserver 1.2.
How do I make TEXTCOLOR_WHITE_EXP into a random number between 1 and 216? I want that when player kills monsters that the experience number that pops up should always be in a random color instead of just static white all the time.
I did try some different things but I always ended up with errors.
Code:
enum TextColor_t : uint8_t {
TEXTCOLOR_BLUE = 5,
TEXTCOLOR_LIGHTGREEN = 30,
TEXTCOLOR_LIGHTBLUE = 35,
TEXTCOLOR_MAYABLUE = 95,
TEXTCOLOR_DARKRED = 108,
TEXTCOLOR_LIGHTGREY = 129,
TEXTCOLOR_SKYBLUE = 143,
TEXTCOLOR_PURPLE = 155,
TEXTCOLOR_RED = 180,
TEXTCOLOR_ORANGE = 198,
TEXTCOLOR_YELLOW = 210,
TEXTCOLOR_DMG = 209,
TEXTCOLOR_WHITE_EXP = 215,
TEXTCOLOR_NONE = 255,
};
How do I make TEXTCOLOR_WHITE_EXP into a random number between 1 and 216? I want that when player kills monsters that the experience number that pops up should always be in a random color instead of just static white all the time.
I did try some different things but I always ended up with errors.