Thread: Disable Chat

Results 1 to 7 of 7
  1. #1 Disable Chat 
    Registered Member
    Join Date
    Feb 2016
    Posts
    6
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Dear Runeserver,

    I am making a tutorial for my private server but i want to disable the chat, so you cant do ;;home or something.

    I've seen a Dialogue in the chat, you cant click away. i tried SendDialogue, but you can click it away.
    Does somebody know how to do this?

    Greetz,
    Reply With Quote  
     

  2. #2  
    Donator

    Join Date
    Jul 2015
    Posts
    173
    Thanks given
    15
    Thanks received
    15
    Rep Power
    31
    You could do something like this, for example;

    Code:
    public boolean tutStart = false;
    At the beginning of your tutorial dialogue, make the boolean true.

    At the end of the dialogue, make the boolean false.

    In your commands, do

    Code:
    if(cmd[0].equals("home")) {
    if(player.tutStart == true) {
    player.sm("xxxx");
    } else { 
    player.sendHome();
    }
    }
    Also, freeze them to make it more effective.

    Code:
    player.setFreezeDelay(9999999);
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Feb 2016
    Posts
    6
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Quote Originally Posted by iJustStake View Post
    You could do something like this, for example;

    Code:
    public boolean tutStart = false;
    At the beginning of your tutorial dialogue, make the boolean true.

    At the end of the dialogue, make the boolean false.

    In your commands, do

    Code:
    if(cmd[0].equals("home")) {
    if(player.tutStart == true) {
    player.sm("xxxx");
    } else { 
    player.sendHome();
    }
    }
    Also, freeze them to make it more effective.

    Code:
    player.setFreezeDelay(9999999);
    Im really new to coding, can i add you on skype for some help?
    Reply With Quote  
     

  4. #4  
    ♢♢♢♢♢♢

    Con Artist's Avatar
    Join Date
    Jan 2012
    Posts
    1,350
    Thanks given
    665
    Thanks received
    308
    Rep Power
    386
    Use NoContinueDialogue or have a controller for tutorial


    widdy widdy


    /|\
    / \

    Attached image
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Jan 2015
    Posts
    195
    Thanks given
    137
    Thanks received
    28
    Rep Power
    27
    Matrix has player.lock(), maybe try playing with that
    Spoiler for Careful seizure:
    penis
    Reply With Quote  
     

  6. #6  
    WVWVWVWVWVWVWVW

    _jordan's Avatar
    Join Date
    Nov 2012
    Posts
    3,046
    Thanks given
    111
    Thanks received
    1,848
    Rep Power
    5000
    Quote Originally Posted by iJustStake View Post
    You could do something like this, for example;

    Code:
    public boolean tutStart = false;
    At the beginning of your tutorial dialogue, make the boolean true.

    At the end of the dialogue, make the boolean false.

    In your commands, do

    Code:
    if(cmd[0].equals("home")) {
    if(player.tutStart == true) {
    player.sm("xxxx");
    } else { 
    player.sendHome();
    }
    }
    Also, freeze them to make it more effective.

    Code:
    player.setFreezeDelay(9999999);
    Please for the love of all that is holy.... don't set your fields public.
    Attached image
    Attached image
    Reply With Quote  
     

  7. #7  
    Donator


    Join Date
    May 2012
    Posts
    252
    Thanks given
    95
    Thanks received
    97
    Rep Power
    78
    Quote Originally Posted by BlackVodka View Post
    Dear Runeserver,

    I am making a tutorial for my private server but i want to disable the chat, so you cant do ;;home or something.

    I've seen a Dialogue in the chat, you cant click away. i tried SendDialogue, but you can click it away.
    Does somebody know how to do this?

    Greetz,
    If your looking to make interface not click through as in for example if you missed the option and clicked on the space in the interface and you don't want it to close the interface and walk there

    go to InterfaceManager.java

    search for
    Code:
    sendChatBoxInterface
    replace
    Code:
    player.getPackets().sendInterface(true, 752, CHAT_BOX_TAB, interfaceId);
    with

    Code:
    player.getPackets().sendInterface(false, 752, CHAT_BOX_TAB, interfaceId);
    Now if you miss the option by clicking on the space in the dialogue interface it won't close and walk there where you clicked
    If that helped leave a thanks pl0x
    .
    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

Similar Threads

  1. clan chat lootshare disabling
    By Circus in forum Help
    Replies: 1
    Last Post: 12-07-2013, 11:55 AM
  2. Chatting Possibly Disabled?
    By Hidden Gamer in forum Help
    Replies: 4
    Last Post: 09-01-2011, 05:35 PM
  3. Replies: 5
    Last Post: 03-12-2011, 01:57 AM
  4. Chat Logs
    By °•Bunny•° in forum Tutorials
    Replies: 9
    Last Post: 08-13-2007, 07:40 PM
  5. make split private chat save [anti leech]
    By pkin3 in forum Tutorials
    Replies: 13
    Last Post: 05-20-2007, 12:36 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •