Thread: Changing command usage (titles with hex) REP+

Results 1 to 5 of 5
  1. #1 Changing command usage (titles with hex) REP+ 
    Registered Member
    Join Date
    Dec 2014
    Posts
    348
    Thanks given
    20
    Thanks received
    5
    Rep Power
    8
    Ok so, i added this:
    http://www.rune-server.org/runescape...es-colors.html

    and what its currently doing is opening a dialogue box to inter a title and another one to enter a hex



    I want to change the usage to something like :ettitle ff0000 mycustomtitle ( :ettitle ff0000(hex) mycustomtitle(title) ) and if
    something like :ettitle mycustomtite is used, it would completely remove the titles color


    thanks will rep+
    Reply With Quote  
     

  2. #2  
    Donator


    Join Date
    Jul 2013
    Posts
    1,233
    Thanks given
    1
    Thanks received
    493
    Rep Power
    0
    ill post once i finish
    Reply With Quote  
     

  3. #3  
    Donator


    Join Date
    Jul 2013
    Posts
    1,233
    Thanks given
    1
    Thanks received
    493
    Rep Power
    0
    Code:
    case "settitle":
    				if (cmd.length != 3)
    				return false;
    				String hexColor = cmd[1]
    				String customTitle = cmd[2]
    				if (hexColor.length != 6) {
    				player.getDialogueManager().startDialogue("SimpleMessage", "The HEX yell color you wanted to pick cannot be longer and shorter then 6.");
    								return false;
    								}
    				if ((Utils.containsInvalidCharacter(hexColor) || hexColor.contains("_")) {
    				player.getDialogueManager().startDialogue("SimpleMessage", "The requested title color can only contain numeric and regular characters.");
    								return false;
    								} 
    				if(customTitle.length() > 8) {
    									player.getDialogueManager().startDialogue("SimpleMessage", "Titles are limted to eight characters due to spam.");
    									return false;
    									}
    				if(Utils.containsInvalidCharacter(customTitle) || customTitle.contains("_") || 
    										customTitle.contains("0") ||
    										customTitle.contains("1") ||
    										customTitle.contains("2") ||
    										customTitle.contains("3") ||
    										customTitle.contains("4") ||
    										customTitle.contains("5") ||
    										customTitle.contains("6") ||
    										customTitle.contains("7") ||
    										customTitle.contains("8") ||
    										customTitle.contains("9") ||
    										customTitle.contains("9") ||
    										customTitle.toLowerCase().contains("owner") ||
    										customTitle.toLowerCase().contains("admin") ||
    										customTitle.toLowerCase().contains("mod") ||
    										customTitle.contains("10")) {
    									player.getDialogueManager().startDialogue("SimpleMessage", "You have entered invaild characters or word.");
    									return false;
    									}
    				else 
    				player.setTitle(customTitle);
    				player.settitlecolor(hexColor);
    				player.getAppearence().setTitle(900);
    				return true;
    Post any errors below
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Dec 2014
    Posts
    348
    Thanks given
    20
    Thanks received
    5
    Rep Power
    8
    Quote Originally Posted by 423 Million View Post
    Code:
    case "settitle":
    				if (cmd.length != 3)
    				return false;
    				String hexColor = cmd[1]
    				String customTitle = cmd[2]
    				if (hexColor.length != 6) {
    				player.getDialogueManager().startDialogue("SimpleMessage", "The HEX yell color you wanted to pick cannot be longer and shorter then 6.");
    								return false;
    								}
    				if ((Utils.containsInvalidCharacter(hexColor) || hexColor.contains("_")) {
    				player.getDialogueManager().startDialogue("SimpleMessage", "The requested title color can only contain numeric and regular characters.");
    								return false;
    								} 
    				if(customTitle.length() > 8) {
    									player.getDialogueManager().startDialogue("SimpleMessage", "Titles are limted to eight characters due to spam.");
    									return false;
    									}
    				if(Utils.containsInvalidCharacter(customTitle) || customTitle.contains("_") || 
    										customTitle.contains("0") ||
    										customTitle.contains("1") ||
    										customTitle.contains("2") ||
    										customTitle.contains("3") ||
    										customTitle.contains("4") ||
    										customTitle.contains("5") ||
    										customTitle.contains("6") ||
    										customTitle.contains("7") ||
    										customTitle.contains("8") ||
    										customTitle.contains("9") ||
    										customTitle.contains("9") ||
    										customTitle.toLowerCase().contains("owner") ||
    										customTitle.toLowerCase().contains("admin") ||
    										customTitle.toLowerCase().contains("mod") ||
    										customTitle.contains("10")) {
    									player.getDialogueManager().startDialogue("SimpleMessage", "You have entered invaild characters or word.");
    									return false;
    									}
    				else 
    				player.setTitle(customTitle);
    				player.settitlecolor(hexColor);
    				player.getAppearence().setTitle(900);
    				return true;
    Post any errors below
    fixed some errors, using the command like exiled, doesnt do anything, cn u add me on skype or something
    Reply With Quote  
     

  5. #5  
    Donator


    Join Date
    Jul 2013
    Posts
    1,233
    Thanks given
    1
    Thanks received
    493
    Rep Power
    0
    Quote Originally Posted by _Blank View Post
    fixed some errors, using the command like exiled, doesnt do anything, cn u add me on skype or something
    whats ur skype
    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. help with changing my clients title
    By olishingerz in forum Help
    Replies: 4
    Last Post: 05-29-2013, 04:53 AM
  2. Replies: 4
    Last Post: 12-28-2011, 10:27 AM
  3. Replies: 3
    Last Post: 06-07-2009, 08:54 PM
  4. Title box help, rep+ to anyone that helps.
    By Greyfield in forum Help
    Replies: 14
    Last Post: 02-15-2009, 07:45 PM
  5. Replies: 2
    Last Post: 10-27-2008, 07:58 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
  •