Thread: [718] Custom Titles

Page 1 of 2 12 LastLast
Results 1 to 10 of 20
  1. #1 [718] Custom Titles 
    Donator


    Join Date
    Jul 2011
    Posts
    570
    Thanks given
    135
    Thanks received
    142
    Rep Power
    291
    Before all of you start off by saying "Oh this has been released 100000 times", I'd just like to say that guides like this:

    Quote Originally Posted by Carlisle View Post
    This is very simple.
    Open up Appearance.java

    Search for
    Code:
    public void generateAppearenceData()
    Under that you should see Phantom somewhere - I will show you my code and explain it.

    Title Id's are in GREEN
    Titles which come up before or after the players name are in RED

    Code:
    flag |= title >= 32 && title <= 37 || title >= 1200 && title <= 1300 || title == 999 || title == 520 || title == 647 ? 0x80 : 0x40; //after/before
    		stream.writeByte(flag);
    		if(title != 0) {
    			String titleName = title == 666 ? "<col=C12006>Phantom </col>" :
    				title == 1337 ? "1337" :
    				title == 520 ? "1337" :
    				title == 647  ? "1337" :
    				title == 999 ? "1337" :
    				title == 1201 ? "1337" :
    				title == 1299 ? "1337" :
    			ClientScriptMap.getMap(male ? 1093 : 3872).getStringValue(title);
    			stream.writeGJString(titleName);
    As you can see where the flag | section is - all the title id's in that line are shown after the players name - So that should cover it.
    You can add as many as you like!
    Don't work for some people, you would get automatically logged out whenever you tried logging in. This happened to me. I tried searching for why it wouldn't work and couldn't find it (trust me I checked dozens of help threads). So I finally figured it out and decided to release it for the people who need it and keep getting logged out.

    The reason people kept getting auto logged is because they were adding these titles in the wrong location (I know for feather the location is different then the guide above says). Search for this method in your appearence.java:

    Code:
    private void writeTitle(OutputStream stream)
    Then replace the whole method, like this:

    Code:
    private void writeTitle(OutputStream stream) {
    		String titleName = 
    				 title == (title number you want here) ? "(title you want here)" :
    				 title == 200 ? "a" :
    				 title == 201 ? "b" :
    				 title == 202 ? "c" :
    				 title == 203 ? "d" :
    				ClientScriptMap.getMap(male ? 1093 : 3872)
    				.getStringValue(title);
    		stream.writeGJString(titleName);
    	}
    This should work. If not post below and I'll help you. Also don't leave hate comments, I followed guides like the one above and always got auto logged, so I finally found the solution and decided to share it because it was annoying not being able to figure this out.
    Reply With Quote  
     

  2. Thankful user:


  3. #2  
    Scrub Lord
    _Will's Avatar
    Join Date
    Aug 2012
    Posts
    537
    Thanks given
    60
    Thanks received
    61
    Rep Power
    34
    Not a tutorial...
    Reply With Quote  
     

  4. #3  
    Donator


    Join Date
    Jul 2011
    Posts
    570
    Thanks given
    135
    Thanks received
    142
    Rep Power
    291
    Quote Originally Posted by SkI||ex View Post
    Not a tutorial...
    Tutorials are where you explain how to do something. I am explaining how to add custom titles to the people that get errors. Please tell me why it is not a tutorial.
    Reply With Quote  
     

  5. Thankful user:


  6. #4  
    Owner Of EradicationX

    Join Date
    Sep 2013
    Posts
    88
    Thanks given
    46
    Thanks received
    11
    Rep Power
    11
    Also you can do something like that
    Code:
    String titleName = title == 1337 ? "<col=C12006><shad=000000>Title here</col>" :
    and it will be with shade. But thanks maybe it helped couple people who did not knew that.
    Reply With Quote  
     

  7. #5  
    KNOWLEDGE IS POWER

    OG KingFox's Avatar
    Join Date
    Dec 2006
    Age
    33
    Posts
    1,683
    Thanks given
    628
    Thanks received
    1,062
    Rep Power
    750
    Released plenty of times before, and most server's already have this. To make it a tutorial i suggest explaining what that's called exactly, but im pretty sure there's a tutorial on here somewhere for Ternary Operators.
    And yes i did read the thread. Just pointless to repost when you can use the search button >_>

    EDIT: Also, both codes look almost exactly the same >_>

    Attached image
    Reply With Quote  
     

  8. #6  
    Banned

    Join Date
    Nov 2013
    Posts
    1,015
    Thanks given
    240
    Thanks received
    265
    Rep Power
    0
    Will use this, Thanks included.
    Reply With Quote  
     

  9. #7  
    New Project
    Ben_U's Avatar
    Join Date
    Dec 2011
    Age
    31
    Posts
    1,711
    Thanks given
    109
    Thanks received
    360
    Rep Power
    66
    I didn't bother reading past the first sentence, it already confused the crap out of me. This seems just the same as any other.
    Reply With Quote  
     

  10. #8  
    Donator


    Join Date
    Jul 2011
    Posts
    570
    Thanks given
    135
    Thanks received
    142
    Rep Power
    291
    Quote Originally Posted by bandoswhips View Post
    I didn't bother reading past the first sentence, it already confused the crap out of me. This seems just the same as any other.
    Quote Originally Posted by King Fox View Post
    Released plenty of times before, and most server's already have this. To make it a tutorial i suggest explaining what that's called exactly, but im pretty sure there's a tutorial on here somewhere for Ternary Operators.
    And yes i did read the thread. Just pointless to repost when you can use the search button >_>

    EDIT: Also, both codes look almost exactly the same >_>

    The thing is, I used the search button and it didn't work. I kept getting auto logged using the guide that I quoted in my thread, and when I searched for the solution I noticed alot of people posting help threads saying they get dced too.

    The funny thing is no one posted a solution, so I found out the solution and posted it. Trust me I searched for this already and couldnt find it. Please find a thread where it explains what I explain. Yes you'll find one that explains how to add titles, but it doesn't work for everyone...

    Gosh why do you all complain...
    Reply With Quote  
     

  11. #9  
    ^-^

    Join Date
    May 2013
    Posts
    147
    Thanks given
    43
    Thanks received
    11
    Rep Power
    11
    No point in this thread, Custom Titles are easy as they are.
    Reply With Quote  
     

  12. #10  
    Scrub Lord
    _Will's Avatar
    Join Date
    Aug 2012
    Posts
    537
    Thanks given
    60
    Thanks received
    61
    Rep Power
    34
    Quote Originally Posted by EmpathyIPK View Post
    Tutorials are where you explain how to do something. I am explaining how to add custom titles to the people that get errors. Please tell me why it is not a tutorial.
    Telling people to replace an whole method isn't explaining anything.
    Reply With Quote  
     

Page 1 of 2 12 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. [718]Custom titles and colors
    By Monum3ntal in forum Snippets
    Replies: 34
    Last Post: 07-09-2015, 06:28 AM
  2. 718 Custom Titles & Colors
    By Taylor Moon in forum Snippets
    Replies: 24
    Last Post: 10-02-2013, 12:31 PM
  3. Matrix [718] - Custom Titles
    By Xe q in forum Help
    Replies: 12
    Last Post: 06-24-2013, 08:42 AM
  4. 718 - Custom Titles?
    By Jawvuh in forum Requests
    Replies: 2
    Last Post: 04-10-2013, 04:22 PM
  5. 718 custom titles
    By Icantcode911 in forum Help
    Replies: 0
    Last Post: 12-11-2012, 07:12 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
  •