Thread: Clan chat

Results 1 to 6 of 6
  1. #1 Clan chat 
    Registered Member Ishana's Avatar
    Join Date
    Oct 2008
    Age
    31
    Posts
    285
    Thanks given
    3
    Thanks received
    0
    Rep Power
    50
    iin publicchat.java

    i have this

    Code:
    }else if (p.cat > 0 && p.chatText.startsWith("/")) {
    String chatMessage = p.chatText.substring(2);
    p.frames.sendMessage(p, Misc.capitalize(p.username) +":" + Misc.capitalize(chatMessage));
    but when i do

    /test

    every word i say after that comes as

    Soul:est

    yes i do have animal clans..
    Reply With Quote  
     

  2. #2  
    Community Veteran


    Join Date
    Dec 2008
    Posts
    4,263
    Thanks given
    405
    Thanks received
    436
    Rep Power
    1674
    no offence thats not even close to what its supose to be...
    Reply With Quote  
     

  3. #3  
    Registered Member Ishana's Avatar
    Join Date
    Oct 2008
    Age
    31
    Posts
    285
    Thanks given
    3
    Thanks received
    0
    Rep Power
    50
    not taken at all
    its not mine i took from a friend

    could you tell me how to do ?
    Reply With Quote  
     

  4. #4  
    Community Veteran


    Join Date
    Dec 2008
    Posts
    4,263
    Thanks given
    405
    Thanks received
    436
    Rep Power
    1674
    Quote Originally Posted by soul_banner View Post
    not taken at all
    its not mine i took from a friend

    could you tell me how to do ?
    i guess i could give u mine
    Reply With Quote  
     

  5. #5  
    Registered Member Ishana's Avatar
    Join Date
    Oct 2008
    Age
    31
    Posts
    285
    Thanks given
    3
    Thanks received
    0
    Rep Power
    50
    would be really great if you do!
    Reply With Quote  
     

  6. #6  
    Community Veteran


    Join Date
    Dec 2008
    Posts
    4,263
    Thanks given
    405
    Thanks received
    436
    Rep Power
    1674
    here you go

    Code:
    if (chatText.startsWith("/")) {
    			if (ClanChat.inClan(p)) {	
    				chatText = chatText.substring(1,chatText.length());
    				ClanChat.sendClanMessage(p, Misc.capitalize(chatText));
    			} else {
    				p.frames.sendMessage(p, "You are not in a clan.");
    			}
    		} else {
    			p.chatText = chatText;
    			p.chatTextUpdateReq = true;
    			p.updateReq = true;
    		}
           }
    }
    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

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •