Thread: How to add a Leave chat button(Clan Chat)

Page 1 of 3 123 LastLast
Results 1 to 10 of 25
  1. #1 How to add a Leave chat button(Clan Chat) 
    Registered Member

    Join Date
    Mar 2008
    Posts
    217
    Thanks given
    0
    Thanks received
    1
    Rep Power
    140
    (Client Side)
    First off i will be telling you how to add this button and how to make the leave chat work with your clan chat.

    Ok first off you must have completed these 2 tuts

    The clan chat interface tut [Only registered and activated users can see links. ] - wowfreakjoking
    Working clan chat in clan chat interface [Only registered and activated users can see links. ] - I T He I

    Now Download This file this is the leave chat button(designed by me)

    [Only registered and activated users can see links. ]

    If you want a leave clan button(designed by me)

    [Only registered and activated users can see links. ]

    Ok now heres something you guys wanted months ago its the capital l version of the Leave Clan(Made by me)

    [Only registered and activated users can see links. ]

    And finally the Leave Chat one(made by me)

    [Only registered and activated users can see links. ]

    Working on the Leave chat one right now will have it in a few minutes

    Now save that into your clan chat folder in the cache. It should say click yes to replace button 2 click yes..
    --------------------------------------------------------------------------------------------------------------------------
    (Server Side)

    Now due to some miscoding methods in the clan chat tutorial i will show you how to fix it which is very simple.

    Open up your client.java and Search for
    public void removeFromCC() {
    You should see this
    public void removeFromCC() {
    client c2 = (client) server.playerHandler.players[server.playerHandler.getPlayerID(clanLeader)];
    for(int i=16502; i<=16532; i++) {
    if(c2.clanMembers[i-16502] == playerName) {
    c2.clanMembers[i-16502] = null;
    updateCCMenu();
    break;
    }
    }
    clanName = "None";
    clanLeader = "Nobody";
    clanChatMenu();
    }
    Replace it with this
    public void removeFromCC() {
    client c2 = (client) server.playerHandler.players[server.playerHandler.getPlayerID(clanLeader)];
    for(int i=16502; i<=16532; i++) {
    if(c2.clanMembers[i-16502] == playerName) {
    c2.clanMembers[i-16502] = null;
    updateCCMenu();
    break;
    }
    }
    clanName = "none";
    clanLeader = "nobody";
    clanChatMenu();
    }
    Ok now save that and exit.

    Open up clickingmost.java Search for
    case 62137(if you cant find that find any other case)
    Below that add
    case 62136:
    if(c.clanName != "none" && c.clanLeader != "nobody" && c.clanLeader != c.playerName);
    c.sM("You have left your clan.");
    c.updateCCMenu();
    c.removeFromCC();
    break;
    This will successfully remove you from the clan chat you are currently in without having to type a command...

    If theres any bugs or if i forgot to post something please post below

    Credits:
    The image 100% to me took me maybe 5 minutes to complete.
    The code to leave chat i guess like 10% to me and 90% to runite since it was his leave chat command i just made it work on a button

    Also if you use this please give me creds
    Reply With Quote  
     

  2. #2  
    Registered Member
    Grim Raper's Avatar
    Join Date
    Nov 2008
    Posts
    566
    Thanks given
    0
    Thanks received
    3
    Rep Power
    120
    wow, gj bro repped. i might come to 317's 508's are boring..
    [Only registered and activated users can see links. ]

    ProDungeoneering Is IN DEVELOPMENT!


    @ScriptManifest(authors = { "Grim Raper" },
    Reply With Quote  
     

  3. #3  
    Registered Member

    Join Date
    Mar 2008
    Posts
    217
    Thanks given
    0
    Thanks received
    1
    Rep Power
    140
    Quote Originally Posted by killer102 View Post
    wow, gj bro repped. i might come to 317's 508's are boring..
    Ive went from 317 to 508 back to 317 i perfer 317 the most
    Reply With Quote  
     

  4. #4  
    Donator

    I Pk Noobs I's Avatar
    Join Date
    Sep 2007
    Posts
    522
    Thanks given
    3
    Thanks received
    23
    Rep Power
    554
    Make it say "Leave Chat" please..
    Reply With Quote  
     

  5. #5  
    Registered Member

    Join Date
    Mar 2009
    Posts
    1,012
    Thanks given
    70
    Thanks received
    178
    Rep Power
    436
    nice testing it now
    Reply With Quote  
     

  6. #6  
    Ash
    Guest
    Nice Tut there dude
    Reply With Quote  
     

  7. #7  
    Registered Member

    Join Date
    Mar 2008
    Posts
    217
    Thanks given
    0
    Thanks received
    1
    Rep Power
    140
    Quote Originally Posted by I Pk Noobs I View Post
    Make it say "Leave Chat" please..
    Wait dont you mean leave clan?

    ---------- Post added at 10:57 PM ---------- Previous post was at 10:37 PM ----------

    added a leave clan button incase some others like that better...
    Reply With Quote  
     

  8. #8  
    harmy
    Guest
    this is awesome but when some1 is in no clan and click they get dced fix dat plz?
    Reply With Quote  
     

  9. #9  
    Registered Member

    Join Date
    Mar 2008
    Posts
    217
    Thanks given
    0
    Thanks received
    1
    Rep Power
    140
    Quote Originally Posted by harmy View Post
    this is awesome but when some1 is in no clan and click they get dced fix dat plz?
    ya i no im trying to..
    Reply With Quote  
     

  10. #10  
    Registered Member
    Nando's Avatar
    Join Date
    Feb 2009
    Age
    26
    Posts
    3,518
    Thanks given
    2,437
    Thanks received
    1,107
    Rep Power
    5000
    nice tut will be usin it
    Reply With Quote  
     

Page 1 of 3 123 LastLast

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
  •