If you Need Auto-Joining Clan Then First Open client.java And find:
Above This Add:
Code:
Server.clanChat.handleClanChat(this, "Help");
This is adding the player to the clan chat. You can change 'Help' to whatever you like.
Then Open ClanChatHandler.java find:
Code:
public void addToClan(int playerId, int clanId) {
Above This Add:
Code:
messageToClan(Server.playerHandler.players[playerId].playerName + " has joined the channel.", clanId);
And Add this Abit Of Code:
Code:
if (clans[clanId].name.equalsIgnoreCase("Help")) {
clans[clanId].owner = "@gre@Server";
//clans[clanId].lootshare = true;
}
This is setting the clans owner when the player joins the clan chat "help", once again you can change it from help.
If you want lootshare on permanently in this clan only remove the ''//''
If your server handles lootshare differently and has coinshare + lootshare which uses the "c.CSLS"
This works for most DSPK Servers.
We added this In Client.java, so, make this:
Code:
Code:
Server.clanChat.handleClanChat(this, "Help");
Just Make it to look Like This:
Code:
Server.clanChat.handleClanChat(this, "Help");
c.CSLS =1;
I wish It Work