wow, gj bro repped.i might come to 317's 508's are boring..
|
|

(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
You should see thispublic void removeFromCC() {
Replace it with thispublic 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.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();
}
Open up clickingmost.java Search for
Below that addcase 62137(if you cant find that find any other case)
This will successfully remove you from the clan chat you are currently in without having to type a command...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;
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

Make it say "Leave Chat" please..

nice testing it now![]()

this is awesome but when some1 is in no clan and click they get dced
fix dat plz?

| « Kittens :) | How to fix the Winterlove crash once and for all » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |