Chat Color

Results 1 to 4 of 4
  1. #1
    Account Upgraded | Title Enabled! Vietster is offline
    MemberRank
    Dec 2012 Join Date
    305Posts

    Chat Color

    As the title states, is it possible to change the colour of a chat based off of a GM level? As SuperGM is White, is it possible to change it to another colour, say Light blue, Red, Pink or etc?


  2. #2
    Account Upgraded | Title Enabled! snow202 is offline
    MemberRank
    Dec 2011 Join Date
    213Posts

    Re: Chat Color

    at V62 i remember that there was like 6-10 colors,
    like when you do "drop.message(5, fdsfsd)"
    so 5 = color\type
    so if you know where the settings of GM, just search there some like it.

  3. #3
    $_SESSION['DEV']; hecari is offline
    MemberRank
    Dec 2008 Join Date
    336Posts

    Re: Chat Color

    ChatHandler in handling > channel > handler .

    PHP Code:
    public static final void GeneralChat(final String text, final byte unk, final MapleClient c, final MapleCharacter chr) {
            if (
    text.length() > && chr != null && chr.getMap() != null && !CommandProcessor.processCommand(ctextchr.getBattle() == null CommandType.NORMAL CommandType.POKEMON)) {
                if (!
    chr.isIntern() && text.length() >= 80) {
                    return;
                }
                if (
    chr.getCanTalk() || chr.isStaff()) {
                    
    //Note: This patch is needed to prevent chat packet from being broadcast to people who might be packet sniffing.
                    
    if (chr.isHidden()) {
                        if (
    chr.isIntern() && !chr.isSuperGM() && unk == 0) {
                            
    chr.getMap().broadcastGMMessage(chrCField.getChatText(chr.getId(), textfalse, (byte1), true);
                            if (
    unk == 0) {
                                
    chr.getMap().broadcastGMMessage(chrCWvsContext.serverNotice(2chr.getName() + " : " text), true);
                            }
                        } else {
                            
    chr.getMap().broadcastGMMessage(chrCField.getChatText(chr.getId(), textc.getPlayer().isSuperGM(), unk), true);
                        }
                    } else {
                        
    chr.getCheatTracker().checkMsg();
                        if (
    chr.isIntern() && !chr.isSuperGM() && unk == 0) {
                            
    chr.getMap().broadcastMessage(CField.getChatText(chr.getId(), textfalse, (byte1), c.getPlayer().getTruePosition());
                            if (
    unk == 0) {
                                
    chr.getMap().broadcastMessage(CWvsContext.serverNotice(2chr.getName() + " : " text), c.getPlayer().getTruePosition());
                            }
                        } else {
                            
    chr.getMap().broadcastMessage(CField.getChatText(chr.getId(), textc.getPlayer().isSuperGM(), unk), c.getPlayer().getTruePosition());
                        }
                    }
                    if (
    text.equalsIgnoreCase(c.getChannelServer().getServerName() + " rocks")) {
                        
    chr.finishAchievement(11);
                    }
                } else {
                    
    c.getSession().write(CWvsContext.serverNotice(6"You have been muted and are therefore unable to talk."));
                }
            }
        } 

  4. #4
    Novice Kasino Chen is offline
    MemberRank
    Aug 2012 Join Date
    2Posts

    Re: Chat Color

    Quote Originally Posted by hecari View Post
    ChatHandler in handling > channel > handler .

    PHP Code:
    public static final void GeneralChat(final String text, final byte unk, final MapleClient c, final MapleCharacter chr) {
            if (
    text.length() > && chr != null && chr.getMap() != null && !CommandProcessor.processCommand(ctextchr.getBattle() == null CommandType.NORMAL CommandType.POKEMON)) {
                if (!
    chr.isIntern() && text.length() >= 80) {
                    return;
                }
                if (
    chr.getCanTalk() || chr.isStaff()) {
                    
    //Note: This patch is needed to prevent chat packet from being broadcast to people who might be packet sniffing.
                    
    if (chr.isHidden()) {
                        if (
    chr.isIntern() && !chr.isSuperGM() && unk == 0) {
                            
    chr.getMap().broadcastGMMessage(chrCField.getChatText(chr.getId(), textfalse, (byte1), true);
                            if (
    unk == 0) {
                                
    chr.getMap().broadcastGMMessage(chrCWvsContext.serverNotice(2chr.getName() + " : " text), true);
                            }
                        } else {
                            
    chr.getMap().broadcastGMMessage(chrCField.getChatText(chr.getId(), textc.getPlayer().isSuperGM(), unk), true);
                        }
                    } else {
                        
    chr.getCheatTracker().checkMsg();
                        if (
    chr.isIntern() && !chr.isSuperGM() && unk == 0) {
                            
    chr.getMap().broadcastMessage(CField.getChatText(chr.getId(), textfalse, (byte1), c.getPlayer().getTruePosition());
                            if (
    unk == 0) {
                                
    chr.getMap().broadcastMessage(CWvsContext.serverNotice(2chr.getName() + " : " text), c.getPlayer().getTruePosition());
                            }
                        } else {
                            
    chr.getMap().broadcastMessage(CField.getChatText(chr.getId(), textc.getPlayer().isSuperGM(), unk), c.getPlayer().getTruePosition());
                        }
                    }
                    if (
    text.equalsIgnoreCase(c.getChannelServer().getServerName() + " rocks")) {
                        
    chr.finishAchievement(11);
                    }
                } else {
                    
    c.getSession().write(CWvsContext.serverNotice(6"You have been muted and are therefore unable to talk."));
                }
            }
        } 
    Can i know how to add !Chattype into v117.2 server? Between, i added !chattype into my v117.2 and it working except for the chat color, it still in WhiteBG lol. Do you know how to fix it? I think that is about ChatHandler.java but i dont know what to do with my ChatHandler.



Advertisement