GameMessage colors

Results 1 to 6 of 6
  1. #1
    Proficient Member Borlea is offline
    MemberRank
    Jan 2014 Join Date
    151Posts

    GameMessage colors

    I don't have much uses for this.. but it's more color options

    A non enum class
    Spoiler:

    Code:
        public static final short CHAT = 0;// White
        public static final short WHISPER = 1;// Green
        public static final short GUILD = 2;// Light Purple
        public static final short BUDDY = 3;// Orange
        public static final short PARTY = 4;// Salmon Pink
        public static final short EVENT_MESSAGE = 5;// Light Green
        public static final short STAMINA_MESSAGE = 6;// Bright pink/purple, bigger than most text
        public static final short ITEM_GAIN_MESSAGE = 7;// Gray
        public static final short AUTOMATED_SYSTEM_MESSAGE = 8;// Yellow
        public static final short SYSTEM_MESSAGE = 9;// Light Yellow
        public static final short GM_NOTICE = 10;// Blue text
        public static final short GM_TEXT = 11;// White background, black text
        public static final short NOT_ENOUGH_MP = 12;// Pale Salmon
        public static final short CHANNEL_MEGAPHONE = 13;// Light blue background, dark blue text
        public static final short SKULL_MEGAPHONE = 15;// Red background, black text
        public static final short DARK_BLUE = 17;// Dark blue text
        public static final short GACHAPON_NOTIFICATION = 19;// Transparent red background, white text
        public static final short DARK_BLUE2 = 20;//
        public static final short MEGAPHONE1 = 21;// Light orange background, black text
        public static final short ITEM_MEGAPHONE = 22;// Bright orange background, black text
        public static final short GACHAPON_NOTIFICATION2 = 23;// Light green background, white text - looks shit
        public static final short AUTOMATED_SYSTEM_MESSAGE2 = 26;// Exact same, yellow
        public static final short TURQUOISE = 27;//
        public static final short ITEM_MEGAPHONE2 = 28;//
        public static final short SOME_KINDA_MEGAPHONE_MAYBE = 29;// Blue and yellow text
        public static final short SUPER_LIGHT_YELLOW = 30;//
        public static final short GM_NOTICE2 = 31;// Blue
        public static final short AUTOMATED_SYSTEM_MESSAGE3 = 33;
        public static final short LIGHT_YELLOW = 34;// Tad bit lighter than AUTOMATED_SYSTEM_MESSAGE
        public static final short SMALL_WHITE_TEXT = 37;// Potentially used for MapleSea/KMS for english text
        // Things I've tested and crashed: -2, -1, 14, 16, 18, 24, 25, 32, 35, 36, 38, 39, 40


    Enum
    Spoiler:

    Code:
    public enum GameMessageType{
        //@formatter:off
        CHAT(0),// White
        WHISPER(1),// Green
        GUILD(2),// Light Purple
        BUDDY(3),// Orange
        PARTY(4),// Salmon Pink
        EVENT_MESSAGE(5),// Light Green
        STAMINA_MESSAGE(6),// Bright pink/purple, bigger than most text
        ITEM_GAIN_MESSAGE(7),// Gray
        AUTOMATED_SYSTEM_MESSAGE(8),// Yellow
        SYSTEM_MESSAGE(9),// Light Yellow
        GM_NOTICE(10),// Blue text
        GM_TEXT(11),// White background, black text
        NOT_ENOUGH_MP(12),// Pale Salmon
        CHANNEL_MEGAPHONE(13),// Light blue background, dark blue text
        SKULL_MEGAPHONE(15),// Red background, black text
        DARK_BLUE(17),// Dark blue text
        GACHAPON_NOTIFICATION(19),// Transparent red background, white text
        DARK_BLUE2(20),//
        MEGAPHONE1(21),// Light orange background, black text
        ITEM_MEGAPHONE(22),// Bright orange background, black text
        GACHAPON_NOTIFICATION2(23),// Light green background, white text - looks shit
        AUTOMATED_SYSTEM_MESSAGE2(26),// Exact same, yellow
        TURQUOISE(27),//
        ITEM_MEGAPHONE2(28),//
        SOME_KINDA_MEGAPHONE_MAYBE(29),// Blue and yellow text
        SUPER_LIGHT_YELLOW(30),//
        GM_NOTICE2(31),// Blue
        AUTOMATED_SYSTEM_MESSAGE3(33),
        LIGHT_YELLOW(34),// Tad bit lighter than AUTOMATED_SYSTEM_MESSAGE
        SMALL_WHITE_TEXT(37);// Potentially used for MapleSea/KMS for english text
        // Things I've tested and crashed: -2, -1, 14, 16, 18, 24, 25, 32, 35, 36, 38, 39, 40
        //@formatter:on
    
    
        private final int color;
    
    
        private GameMessageType(int color){
            this.color = color;
        }
    
    
        public int getColor(){
            return color;
        }
        
    }


    Just put this in a class and when you send your game message packet.. put one of these colors in... so you don't just have random numbers everywhere like people have for dropMessage.

    Edit: Here's a hastebin

    Edit2: Here's a hastebin for the class being an enum

    Obviously, credits where credits are do. @even for naming Turquoise.. and misspelling it in the skype chat.
    Last edited by Borlea; 23-09-15 at 02:45 AM.


  2. #2
    Omega sunnyboy is offline
    MemberRank
    Mar 2010 Join Date
    6,109Posts

    Re: GameMessage colors

    You should mention for which versions this goes for since obviously the values aren't in every version

  3. #3
    Account Upgraded | Title Enabled! Five is offline
    MemberRank
    Dec 2011 Join Date
    341Posts

    Re: GameMessage colors

    please use an enum thanks

  4. #4
    Flow even is offline
    MemberRank
    Nov 2012 Join Date
    BaniLocation
    610Posts

    Re: GameMessage colors

    Quote Originally Posted by Five View Post
    please use an enum thanks
    Why? thanks.

  5. #5
    Proficient Member Borlea is offline
    MemberRank
    Jan 2014 Join Date
    151Posts

    Re: GameMessage colors

    Quote Originally Posted by sunnyboy View Post
    You should mention for which versions this goes for since obviously the values aren't in every version
    Should all work on novaks source I think??? so 14x+ I would say for these...

    I would guess all these to work for all versions with this packet...

    Quote Originally Posted by Five View Post
    please use an enum thanks
    Your wish is granted

    I turn off the formatter cause my formatter hates enums.

  6. #6
    Valued Member learningjava is offline
    MemberRank
    Apr 2015 Join Date
    VietnamLocation
    113Posts

    Re: GameMessage colors

    It's very helpful for me, thanks ;)



Advertisement