Thread: [667] Full Custom Titles

Page 1 of 4 123 ... LastLast
Results 1 to 10 of 40
  1. #1 [667] Full Custom Titles 
    Donator


    Join Date
    Jan 2014
    Posts
    1,652
    Thanks given
    428
    Thanks received
    501
    Rep Power
    221

    R-S Mod Response  Custom Titles ( Like 718 )


    R-S Mod Response  Step 1 ( SERVER SIDE )

    Spoiler for Spoiler for Step 1:

    Go to Appearence.java (com.rs.game.player)

    Search for:
    Code:
    stream.writeByte(title);
    Under that paste:
    Code:
    		switch(title) {
    		case 30:
    			writeTitle(stream, "Custom title", true);
    			break;
    		case 31:
    			writeTitle(stream, "<col=FF0000>Custom title</col>", false);
    			break;
    		default:
    			writeTitle(stream, ClientScriptMap.getMap(male ? 1093 : 3872)
    					.getStringValue(title), false);
    			break;
    		}
    You can add titles and modify them by editing the above.

    Above:
    Code:
    generateAppearenceData OR loadAppearenceBlock
    Place this method:
    Code:
    	public void writeTitle(OutputStream stream, String title, boolean behindName) {
    		stream.writeString(behindName ? " " + title : title + " ");
    		stream.writeByte(behindName ? 1 : 0);
    	}




    R-S Mod Response  Step 2 ( CLIENT )


    Spoiler for Step 2:


    Go to Player.java in your client

    Search for:
    Code:
    	private byte titleId;
    Above that paste:

    Code:
           private String titleString;
           private boolean titleIsSuffix;
    Next, search for
    Code:
           titleId = stream.readByte();
    Under that paste:
    Code:
           	titleString = stream.readString();
    	titleIsSuffix = stream.readByte() == 1;
    Then search for this:
    Code:
    			if (class39.aChar587 == 's') {
    				string += class39.method412(-3470, titleId & 0xff);
    			} else {
    				ClanChat.method507(new Throwable(), "gdn1", -125);
    				is[aByte11145] = -1;
    			}
    Replace it with:
    Code:
    			if (class39.aChar587 == 's') {
    				if(titleString != "" && titleId > 25 && !titleIsSuffix) {
    					string += titleString;
    				} else {
    					string += class39.method412(-3470, titleId & 0xff);
    				}
    
    			} else {
    				ClanChat.method507(new Throwable(), "gdn1", -125);
    				is[aByte11145] = -1;
    			}
    Next, search for:
    Code:
                    if (!bool_79_) {
    			string += playerName;
    		} else {
    			string += displayName;
    		}
    Replace with:
    Code:
    		String nameToDisplay = bool_79_ ? displayName : playerName;
    		string += titleIsSuffix ? nameToDisplay + titleString : nameToDisplay;




    Now you should be able to set your title to for example 30,
    you can do this by using :ettitle 30
    If you dont have that add this command in commands.java

    Spoiler for Title command:

    Code:
    			if (cmd[0].equalsIgnoreCase("title")) {
    				if (cmd.length < 2) {
    					player.getPackets().sendGameMessage("Use: ::title id");
    					return true;
    				}
    				try {
    					player.getAppearence().setTitle(Integer.valueOf(cmd[1]));
    				} catch (NumberFormatException e) {
    					player.getPackets().sendGameMessage("Use: ::title id");
    				}
    				return true;
    			}


    R-S Mod Response  How to add titles

    Spoiler for Tut:

    In Appearence.java:

    Under (For example):
    Code:
    		case 31:
    			writeTitle(stream, "<col=FF0000>Custom title</col>", false);
    			break;
    Put something like:
    Code:
    		case 32:
    			writeTitle(stream, "<col=FF0000>of RuneRetro</col>", true);
    			break;
    true means the title is behind your name, false is infront of your name.


    RESULT:


    Reply With Quote  
     

  2. Thankful user:


  3. #2  
    arr.each { |x| x }


    Join Date
    Jul 2013
    Posts
    1,388
    Thanks given
    190
    Thanks received
    345
    Rep Power
    2791
    Goodjob.
    Reply With Quote  
     

  4. #3  
    Aldor Manager


    Join Date
    Mar 2014
    Age
    28
    Posts
    1,234
    Thanks given
    200
    Thanks received
    297
    Rep Power
    2459
    Good Job
    Attached image

    Respect goes to everyone as he deserves.
    Reply With Quote  
     

  5. #4  
    Номер 1


    Leanbow's Avatar
    Join Date
    Feb 2008
    Posts
    5,895
    Thanks given
    1,564
    Thanks received
    2,624
    Rep Power
    5000
    what about suffix titles?
    Reply With Quote  
     

  6. #5  
    arr.each { |x| x }


    Join Date
    Jul 2013
    Posts
    1,388
    Thanks given
    190
    Thanks received
    345
    Rep Power
    2791
    Quote Originally Posted by Leanbow View Post
    what about suffix titles?
    I don't think that this includes suffix titles lmao.
    EDIT: Now it does.
    Reply With Quote  
     

  7. Thankful user:


  8. #6  
    Donator


    Join Date
    Jan 2014
    Posts
    1,652
    Thanks given
    428
    Thanks received
    501
    Rep Power
    221
    Quote Originally Posted by Leanbow View Post
    what about suffix titles?
    Edited it.
    Reply With Quote  
     

  9. #7  
    Banned

    Join Date
    Aug 2012
    Posts
    1,528
    Thanks given
    462
    Thanks received
    307
    Rep Power
    0
    Thanks for improvements!
    Reply With Quote  
     

  10. #8  
    Registered Member
    Zivik's Avatar
    Join Date
    Oct 2007
    Age
    28
    Posts
    4,421
    Thanks given
    891
    Thanks received
    1,527
    Rep Power
    3285
    Thanks for the share.
    Reply With Quote  
     

  11. #9  
    Registered Member _Reece's Avatar
    Join Date
    Oct 2014
    Posts
    829
    Thanks given
    176
    Thanks received
    147
    Rep Power
    31
    Thanks.
    Reply With Quote  
     

  12. #10  
    I heal clients


    Join Date
    Apr 2013
    Posts
    680
    Thanks given
    65
    Thanks received
    239
    Rep Power
    108
    Thanks
    NO ONE IS PERFECT
    "No one in this world is pure and perfect, if you avoid people for their little mistakes you will be always alone in this world, so judge less and love more."
    "Ship in the harbor is safe, but that is not what ships are built for."
    Reply With Quote  
     

Page 1 of 4 123 ... LastLast

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. [667]Custom Titles?
    By TaterMater in forum Help
    Replies: 11
    Last Post: 08-05-2013, 11:18 AM
  2. 667 Custom titles
    By 13lack drag in forum Help
    Replies: 7
    Last Post: 06-01-2013, 07:35 AM
  3. 667 custom title ?
    By Exos in forum Help
    Replies: 4
    Last Post: 06-05-2012, 07:36 PM
  4. 667 custom titles
    By Beta in forum Requests
    Replies: 2
    Last Post: 05-03-2012, 03:56 PM
  5. 667/704 Custom Title's?
    By Derrezed in forum Help
    Replies: 1
    Last Post: 03-31-2012, 07:03 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
  •