Thread: how to enable clan chat on pi

Results 1 to 2 of 2
  1. #1 how to enable clan chat on pi 
    Registered Member
    Join Date
    Jun 2013
    Posts
    284
    Thanks given
    4
    Thanks received
    1
    Rep Power
    14
    public void joinArdiCC() {
    if (clan == null) {
    Clan localClan = Server.clanManager.getClan("cookie");
    if (localClan != null)
    localClan.addMember(this);
    else if ("help".equalsIgnoreCase(this.playerName))
    Server.clanManager.create(this);
    else {
    sendMessage(Misc.formatPlayerName("jay")
    + " has disabled this clan for now.");
    }
    inArdiCC = true;
    }

    says its disabled chat disabled when i try to create a clan chat thanks
    Reply With Quote  
     

  2. #2  
    Registered Member Rs Owner 126's Avatar
    Join Date
    Jul 2015
    Posts
    70
    Thanks given
    41
    Thanks received
    13
    Rep Power
    25
    If you Need Auto-Joining Clan Then First Open client.java And find:
    Code:
    if (addStarter)
    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
    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. Replies: 6
    Last Post: 01-16-2013, 07:02 PM
  2. How To Eco Reset Items On [PI] ?
    By Learth in forum Help
    Replies: 1
    Last Post: 09-29-2011, 09:30 PM
  3. i how to change drop rates on [pi]
    By beaten1 in forum Help
    Replies: 3
    Last Post: 08-28-2011, 11:51 PM
  4. How to add gmaul spec on PI?
    By *MartiX in forum Help
    Replies: 3
    Last Post: 01-28-2011, 04:56 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •