Thread: [RS2HD] Placing crowns infront of names??

Results 1 to 5 of 5
  1. #1 [RS2HD] Placing crowns infront of names?? 
    Registered Member
    Join Date
    Dec 2011
    Posts
    21
    Thanks given
    0
    Thanks received
    0
    Rep Power
    12
    I've replaced player.getRights with player.getMod, player.getAdmin and so on, to disable the console for admins so everyone will be able to use :: commands (console doesn't support a few characters which the regular chat does).

    Now, I've tried this:

    Code:
    if(player.getMod == 1) {
    			player.setLastChatMessage(new ChatMessage(effects, numChars, "<img=1> "+text));
    			player.getUpdateFlags().setChatTextUpdateRequired(true);
    		}
    In ChatPacketHandler just to discover that this actually makes so it says 'Username: CROWN hello' instead of 'CROWN Username: hello' as I want it to.

    Is there a way of placing a string BEFORE the players username in the chat? I'm thinking of looping a check inwhich you use player.sendMessage, sending the chat line to the nearest players, unforunately I'm not that familiar with Java so I do not know how to check if a player is eg. 10 blocks away from a coordinate.

    No, I don't want loyalty titles.

    Help?
    Reply With Quote  
     

  2. #2  
    The internet's reject
    Andy's Avatar
    Join Date
    Jun 2007
    Age
    33
    Posts
    4,371
    Thanks given
    148
    Thanks received
    1,522
    Rep Power
    3133
    Or you could have just done ";" or "!" in replacement of :: and it would have done the same desired effect.
    What am I watching now?

    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Dec 2011
    Posts
    21
    Thanks given
    0
    Thanks received
    0
    Rep Power
    12
    Nah, I want all commands to be written in the same way. Do you know how to make a check which returns true/false based on if the player is x blocks away from another player?
    Reply With Quote  
     

  4. #4  
    The internet's reject
    Andy's Avatar
    Join Date
    Jun 2007
    Age
    33
    Posts
    4,371
    Thanks given
    148
    Thanks received
    1,522
    Rep Power
    3133
    Quote Originally Posted by Lotto230 View Post
    Nah, I want all commands to be written in the same way. Do you know how to make a check which returns true/false based on if the player is x blocks away from another player?
    What are you talking about, just replace the input for :: with another character combination.
    What am I watching now?

    Reply With Quote  
     

  5. #5  
    Owner of Dawntained

    Mgt Madness's Avatar
    Join Date
    Oct 2011
    Age
    28
    Posts
    3,380
    Thanks given
    1,429
    Thanks received
    958
    Rep Power
    2168
    Where can i download RS2HD, i have searched and all the links i have come across are down :/
    Thank you.
    Attached image
    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. [SMF]How to put crowns in front of name[SMF]
    By Bilkey in forum Website Development
    Replies: 37
    Last Post: 01-21-2014, 11:25 PM
  2. Replies: 3
    Last Post: 02-12-2012, 01:24 AM
  3. Replies: 6
    Last Post: 01-21-2010, 06:18 AM
  4. Replies: 10
    Last Post: 11-14-2009, 11:08 AM
  5. Replies: 21
    Last Post: 11-23-2007, 07:55 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •