Thread: How to change Public chat off, on, hide etc

Results 1 to 4 of 4
  1. #1 How to change Public chat off, on, hide etc 
    Banned

    Join Date
    Oct 2008
    Posts
    842
    Thanks given
    81
    Thanks received
    53
    Rep Power
    0
    Well this is a very simple tutorial created by me. I was just looking through my code and I was like wth is this lol so I changed everything from 0, 0, 0 to 1, 2, 3 and it made the Public chat go Friends, It turned the private chat off & it made the Trade/Request button disapear(because it was not reconized).

    So to do this its very simple. Most source will probably allready have it added but you probably havn't noticed lol.

    So do change the Public Chat, Private Chat, Trading.

    Search for:
    Code:
    setChatOptions(0, 0, 0);
    If you don't have it add it into your where your sendMessage("Welcome to xxx"); is.

    Right time to show you how to change these.

    Code:
    setChatOptions(0, 0, 0);
    
    	public void setChatOptions(int publicChat, int privateChat, int tradeBlock) 
    {
    		outStream.createFrame(206);
    		outStream.writeByte(publicChat);			               
                                    outStream.writeByte(privateChat);
                                    outStream.writeByte(tradeBlock);
    }

    The zeros are the id of the setting which is very simple. So this is how its done.

    Code:
    0: is Public
    1: is Friends
    2: is Off
    3: is Hide (only for Public Chat)

    Yeh its very simple I just though I would share. You could probably edit this and make it so it saves etc.

    Hope you enjoyed.
    Reply With Quote  
     

  2. #2  
    Member

    Join Date
    Sep 2007
    Posts
    614
    Thanks given
    0
    Thanks received
    1
    Rep Power
    0
    Nice. Useful for people who have OCD about saving user settings, or found an ultra efficient way to do it.
    Reply With Quote  
     

  3. #3  
    Codex
    Rowan's Avatar
    Join Date
    Sep 2008
    Age
    28
    Posts
    1,593
    Thanks given
    0
    Thanks received
    20
    Rep Power
    1092
    kewl I guess
    Reply With Quote  
     

  4. #4  
    Banned

    Join Date
    Oct 2008
    Posts
    842
    Thanks given
    81
    Thanks received
    53
    Rep Power
    0
    Yeh its kwl. . It is very interesting all I did was testing codes in my source
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •