[Release] Blue GM Chat

Page 1 of 5 12345 LastLast
Results 1 to 15 of 64
  1. #1
    Account Upgraded | Title Enabled! Lanny is offline
    MemberRank
    Aug 2008 Join Date
    In your screen!Location
    399Posts

    [Release] Blue GM Chat

    For coIbalt users:
    ---------------------------------------------
    Open net.sf.odinms.net.channel.GeneralchatHandler:

    Find:
    PHP Code:
    c.getPlayer().getMap().broadcastMessage(MaplePacketCreator.serverNotice(5c.getPlayer().getName() + ": " text)); 
    Replace with:
    PHP Code:
    net.sf.odinms.net.MaplePacket packet MaplePacketCreator.serverNotice(6, (new StringBuilder()).append(c.getPlayer().getName()).append(" : ").append(text).toString());
                    
    c.getPlayer().getMap().broadcastMessage(packet);
                    
    c.getPlayer().getMap().broadcastMessage(MaplePacketCreator.getChatText(c.getPlayer().getId(), textfalse1)); 

    For Valhalla and other source users:
    ---------------------------------------------
    Note that this is semi-noob proof, Unless you can declare variables, you'll get errors :(.

    Go to net.sf.odinms.client.MapleCharacter:
    Add these two functions anywhere in MapleCharacter:
    PHP Code:
             public boolean isMuted() {
                 return 
    muted;
            }
        
             public 
    void setMuted(boolean yesorno){
                
    muted yesorno;
             } 
    Replace your GeneralchatHandler with:

    PHP Code:
    package net.sf.odinms.net.channel.handler;

    import net.sf.odinms.client.MapleCharacter;
    import net.sf.odinms.client.MapleClient;
    import net.sf.odinms.client.messages.CommandProcessor;
    import net.sf.odinms.net.AbstractMaplePacketHandler;
    import net.sf.odinms.net.channel.ChannelServer;
    import net.sf.odinms.server.maps.MapleMap;
    import net.sf.odinms.tools.MaplePacketCreator;
    import net.sf.odinms.tools.StringUtil;
    import net.sf.odinms.tools.data.input.SeekableLittleEndianAccessor;

    public class 
    GeneralchatHandler extends AbstractMaplePacketHandler {

        public 
    void handlePacket(SeekableLittleEndianAccessor sleaMapleClient c)    {
            
    String text slea.readMapleAsciiString();
            
    int show slea.readByte();
            if(!
    CommandProcessor.getInstance().processCommand(ctext))    {
                if(
    StringUtil.countCharacters(text'@') > || StringUtil.countCharacters(text'%') > || StringUtil.countCharacters(text'+') > || StringUtil.countCharacters(text'$') > || StringUtil.countCharacters(text'&') > || StringUtil.countCharacters(text'~') > || StringUtil.countCharacters(text'!') > 12)
                    
    text "Vote for us!";
                if(
    c.getPlayer().isMuted())    {
                    
    c.getPlayer().dropMessage("You are muted");
                    return;
                }
                if(
    c.getPlayer().getMapId() == 980000010)    {
                    if(!
    c.getPlayer().isGM())
                        
    c.getPlayer().dropMessage("No talking in here!");
                    else
                        
    c.getPlayer().getMap().broadcastMessage(MaplePacketCreator.getChatText(c.getPlayer().getId(), textc.getPlayer().isGM() && c.getChannelServer().allowGmWhiteText(), show));
                } else
                if(!
    c.getPlayer().isGM())    {
                    
    c.getPlayer().getMap().broadcastMessage(MaplePacketCreator.getChatText(c.getPlayer().getId(), textc.getPlayer().isGM() && c.getChannelServer().allowGmWhiteText(), show));
                } else    {
                    
    net.sf.odinms.net.MaplePacket packet MaplePacketCreator.serverNotice(6, (new StringBuilder()).append(c.getPlayer().getName()).append(" : ").append(text).toString());
                    
    c.getPlayer().getMap().broadcastMessage(packet);
                    
    c.getPlayer().getMap().broadcastMessage(MaplePacketCreator.getChatText(c.getPlayer().getId(), textfalse1));
                }
            }
        }

    Screen Shot:

    Last edited by Lanny; 22-03-09 at 04:23 PM.


  2. #2
    Account Upgraded | Title Enabled! Shoot is offline
    MemberRank
    Jan 2009 Join Date
    417Posts

    Re: [Release] Blue GM Chat

    nice!
    I wants to have the pinkish redish chat like Bas :(

  3. #3
    Account Upgraded | Title Enabled! Lanny is offline
    MemberRank
    Aug 2008 Join Date
    In your screen!Location
    399Posts

    Re: [Release] Blue GM Chat

    Quote Originally Posted by Shoot View Post
    nice!
    I wants to have the pinkish redish chat like Bas :(
    Hm, I'll try my best and release it :)

  4. #4
    Account Upgraded | Title Enabled! Shoot is offline
    MemberRank
    Jan 2009 Join Date
    417Posts

    Re: [Release] Blue GM Chat

    :) Okay, Also thanks for this release :D.

  5. #5
    Account Upgraded | Title Enabled! Lanny is offline
    MemberRank
    Aug 2008 Join Date
    In your screen!Location
    399Posts

    Re: [Release] Blue GM Chat

    Quote Originally Posted by Shoot View Post
    :) Okay, Also thanks for this release :D.
    No problem :D

  6. #6
    Account Upgraded | Title Enabled! lmaoXitsXqtard is offline
    MemberRank
    Sep 2008 Join Date
    In the SkyLocation
    562Posts

    Re: [Release] Blue GM Chat

    cobalt is way different then this :O

  7. #7
    Account Upgraded | Title Enabled! Shoot is offline
    MemberRank
    Jan 2009 Join Date
    417Posts

    Re: [Release] Blue GM Chat

    Just incase you do not know which im talking about, its this one

  8. #8
    Account Upgraded | Title Enabled! Lanny is offline
    MemberRank
    Aug 2008 Join Date
    In your screen!Location
    399Posts

    Re: [Release] Blue GM Chat

    Quote Originally Posted by Shoot View Post
    Just incase you do not know which im talking about, its this one
    Edit:
    Nvm..

    Quote Originally Posted by lmaoXitsXqtard View Post
    cobalt is way different then this :O
    Oh I know, Which is why the first part of the release is for Cobalt and what not.

  9. #9
    Account Upgraded | Title Enabled! rogue1234567 is offline
    MemberRank
    Apr 2008 Join Date
    437Posts

    Re: [Release] Blue GM Chat

    Currently Active Users Viewing This Thread: 11 (11 members and 0 guests)
    rogue1234567, Lanny, lmaoXitsXqtard, Elkin, viydude, FloppyDisk, ATrueNig, Shinykirby, CherryPop, SuperFat, Intensetay

    Woah, hot thread.
    Thanks im adding this.

  10. #10
    Account Upgraded | Title Enabled! lmaoXitsXqtard is offline
    MemberRank
    Sep 2008 Join Date
    In the SkyLocation
    562Posts

    Re: [Release] Blue GM Chat

    hey do you think you can do the yellow chat as well, since you know how? i been at it for like 2 weeks i just can't get it to work

  11. #11
    Account Upgraded | Title Enabled! FloppyDisk is offline
    MemberRank
    Jan 2009 Join Date
    634Posts

    Re: [Release] Blue GM Chat

    Cobalt lets you set whichever one you want to use. =)

  12. #12
    Account Upgraded | Title Enabled! Lanny is offline
    MemberRank
    Aug 2008 Join Date
    In your screen!Location
    399Posts

    Re: [Release] Blue GM Chat

    Quote Originally Posted by rogue1234567 View Post
    Currently Active Users Viewing This Thread: 11 (11 members and 0 guests)
    rogue1234567, Lanny, lmaoXitsXqtard, Elkin, viydude, FloppyDisk, ATrueNig, Shinykirby, CherryPop, SuperFat, Intensetay

    Woah, hot thread.
    Thanks im adding this.
    Ooh, Thanks, Trying to figure out what color Bassoe's is so I could base it off Yellow GM msg.

  13. #13
    Alpha Member josho192837 is offline
    MemberRank
    Apr 2008 Join Date
    PennsylvaniaLocation
    1,950Posts

    Re: [Release] Blue GM Chat

    I has red gm chat!

  14. #14
    Account Upgraded | Title Enabled! ProGamerForLife is offline
    MemberRank
    Sep 2008 Join Date
    iTouchMsLocation
    1,195Posts

    Re: [Release] Blue GM Chat

    Quote Originally Posted by Lanny View Post
    Ooh, Thanks, Trying to figure out what color Bassoe's is so I could base it off Yellow GM msg.
    his is spouse chat

  15. #15
    Account Upgraded | Title Enabled! Lanny is offline
    MemberRank
    Aug 2008 Join Date
    In your screen!Location
    399Posts

    Re: [Release] Blue GM Chat

    Quote Originally Posted by ProGamerForLife View Post
    his is spouse chat
    ... I'm not married in GMS so I wouldn't know x_x



Page 1 of 5 12345 LastLast

Advertisement