Thread: [667] Full Custom Titles

Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 40
  1. #11  
    Registered Member 13lack drag's Avatar
    Join Date
    Feb 2011
    Posts
    235
    Thanks given
    1
    Thanks received
    11
    Rep Power
    3
    NOOBS B LEECHING 4 DAYZZZZZZZ.

    GJ Though. I will be using. For the default title, you could just use writeTitle(stream, "", true); if you want the default to be blank
    Owner, Coder, Hoster of the one and only...

    Reply With Quote  
     

  2. #12  
    What?

    Luminous's Avatar
    Join Date
    Apr 2015
    Posts
    489
    Thanks given
    231
    Thanks received
    341
    Rep Power
    179
    nice contribution, although wont be using it myself. Good job
    Reply With Quote  
     

  3. #13  
    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
    Code:
    package com.foxtrot.game.player.content.custom;
    
    import com.foxtrot.cache.loaders.ClientScriptMap;
    import com.foxtrot.game.player.Player;
    import com.foxtrot.game.player.Ranks;
    
    public class TitleHandler {
    
    	public enum Titles {
    		
    		JUNIOR_CADET(1, "Junior Cadet ", "AA44AA", null, false),
    		SERJEANT(2, "Serjeant ", "AA44AA", null, false),
    		COMMANDER(3, "Commander ", "AA44AA", null, false),
    		WAR_CHIEF(4, "War-chief ", "AA44AA", null, false),
    		SIR(5, "Sir ", "C86400", null, false),
    		LORD(6, "Lord ", "C86400", null, false),
    		DUDERINO(7, "Duderino ", "C86400", null, false),
    		LIONHEART(8, "Lionheart ", "C86400", null, false),
    		HELLRAISER(9, "Hellraiser ", "C86400", null, false),
    		CRUSADER(10, "Crusader ", "C86400", null, false),
    		DESPERADO(11, "Desperado ", "C86400", null, false),
    		BARON(12, "Baron ", "C86400", null, false),
    		COUNT(13, "Count ", "C86400", null, false),
    		OVERLORD(14, "Overlord ", "C86400", null, false),
    		BANDITO(15, "Bandito ", "C86400", null, false),
    		DUKE(16, "Duke ", "C86400", null, false),
    		KING(17, "King ", "C86400", null, false),
    		BIG_CHEESE_(18, "Big Cheese ", "C86400", null, false),
    		BIGWIG_(19, "Bigwig ", "C86400", null, false),
    		WUNDERKIND(20, "Wunderkind ", "C86400", null, false),
    		VYRELING(21, "Vyreling ", "466AFA", null, false),
    		VYRE_GRUNT(22, "Vyre Grunt ", "7D3FEC", null, false),
    		VYREWATCH(23, "Vyrewatch ", "6C0B2B", null, false),
    		VYRELORD(24, "Vyrelord ", "C12006", null, false),
    		YT_HAAR(25, "Yt?Haar ", "C12006", null, false),
    		EMPEROR(26, "Emperor ", "C86400", null, false),
    		PRINCE(27, "Prince ", "C86400", null, false),
    		WITCH_KING(28, "Witch king ", "C86400", null, false),
    		ARCHON(29, "Archon ", "C86400", null, false),
    		JUSTICIAR(30, "Justiciar ", "C86400", null, false),
    		THE_AWESOME(31, "The Awesome ", "C86400", null, false),
    		THE_MAGNIFICENT(32, " the magnificent", "C86400", null, true),
    		THE_UNDEFEATED(33, " the undefeated", "C86400", null, true),
    		THE_STRANGE(34, " the strange", "C86400", null, true),
    		THE_DIVINE(35, " the divine", "C86400", null, true),
    		THE_FALLEN(36, " the fallen", "C86400", null, true),
    		THE_WARRIOR(37, " the warrior", "C86400", null, true),
    		THE_REAL_(38, "The Real ", "C86400", null, false),
    		COWARDLY_(39, "Cowardly ", "AA44AA", null, false),
    		THE_REDUNDANT(40, " the Redundant", "AA44AA", null, true),
    		EVERYONE_ATTACK(41, "Everyone attack ", "AA44AA", null, false),
    		SMELLY(42, "Smelly ", "AA44AA", null, false),
    		THE_IDIOT(43, " the Idiot", "AA44AA", null, true),
    		SIR_LAME(44, "Sir Lame ", "AA44AA", null, false),
    		THE_FLAMBOYANT(45, " the Flamboyant", "AA44AA", null, true),
    		WEAKLING(46, "Weakling ", "AA44AA", null, false),
    		WAS_PUNISHED(47, " was punished", "AA44AA", null, true),
    		LOST(48, " lost", "AA44AA", null, true),
    		YOU_FAIL(49, " ...you fail", "AA44AA", null, true),
    		NO_MATES_(50, "No-mates ", "AA44AA", null, false),
    		ATE_DIRT(51, " ate dirt", "AA44AA", null, true),
    		DELUSIONAL_(52, "Delusional ", "AA44AA", null, false),
    		THE_RESPAWNER(53, " the Respawner", "AA44AA", null, true),
    		CUTIE_PIE_(54, "Cutie-pie ", "AA44AA", null, false),
    		THE_FAIL_MAGNET(55, " the Fail Magnet", "AA44AA", null, true),
    		WAS_TERMINATED(56, " was terminated", "AA44AA", null, true),
    		LAZY(57, "Lazy ", "AA44AA", null, false),
    		WHO(58, "? Who?", "AA44AA", null, true),
    		
    		DEVELOPER(60, "Developer ", "008080", null, false);
    		
    		private int id;
    		private String title, color, shade;
    		private boolean after;
    		
    		Titles(int id, String title, String color, String shade, boolean after) {
    			this.id = id;
    			this.title = title;
    			this.color = color;
    			this.shade = shade;
    			this.after = after;
    		}
    		
    		public int getId() {
    			return id;
    		}
    		
    		public String getTitle() {
    			return title;
    		}
    		
    		public String getColor() {
    			return color;
    		}
    		
    		public String getShade() {
    			return shade;
    		}
    		
    		public boolean goesAfter() {
    			return after;
    		}
    		
    	}
    	
    	public static boolean goesAfterName(int titleId) {
    		for (Titles t : Titles.values()) {
    			if (t.getId() == titleId) {
    				return t.goesAfter();
    			}
    		}
    		return false;
    	}
    	
    	public static void set(Player player, int titleId) {
    		if (titleId == 59 && player.getRank() != Ranks.ALPHA) {
    			player.sendMessage("This title is reserved for Alpha Donors Only.");
    			return;
    		}
    		if (titleId == 60 && !player.getUsername().equals("king_fox")) {
    			player.sendMessage("You must be a developer to use this title!");
    			return;
    		}
    		player.getAppearence().setTitle(titleId);
    		player.getAppearence().loadAppearanceBlock();
    		player.sendMessage("Your new title is now: "+getTitle(titleId)+"");
    	}
    	
    	public static String getTitle(int titleId) {
    		for (Titles t : Titles.values()) {
    			if (titleId > 58 && t.getId() == titleId) {
    				String color = t.getColor() == null ? "" : "<col="+t.getColor()+">";
    				String shade = t.getShade() == null ? "" : "<shad="+t.getShade()+">";
    				String pref1 = t.getColor() == null ? "" : "</col>";
    				String pref2 = t.getShade() == null ? "" : "</shad>";
    				String title = color + shade + t.getTitle() + pref1 + pref2;
    				return title;
    			}
    		}
    		return ClientScriptMap.getMap(1093).getStringValue(titleId);
    	}
    }
    this was my attempt at titles

    Attached image
    Reply With Quote  
     

  4. #14  
    Banned

    Join Date
    Oct 2011
    Posts
    2,689
    Thanks given
    1,235
    Thanks received
    673
    Rep Power
    0
    Quote Originally Posted by Joris View Post

    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));
    			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:


    Nice work Joris. Thanks for the share .
    Reply With Quote  
     

  5. Thankful user:


  6. #15  
    Donator


    Join Date
    Jan 2014
    Posts
    1,652
    Thanks given
    428
    Thanks received
    501
    Rep Power
    221
    Quote Originally Posted by King Fox View Post
    Code:
    package com.foxtrot.game.player.content.custom;
    
    import com.foxtrot.cache.loaders.ClientScriptMap;
    import com.foxtrot.game.player.Player;
    import com.foxtrot.game.player.Ranks;
    
    public class TitleHandler {
    
    	public enum Titles {
    		
    		JUNIOR_CADET(1, "Junior Cadet ", "AA44AA", null, false),
    		SERJEANT(2, "Serjeant ", "AA44AA", null, false),
    		COMMANDER(3, "Commander ", "AA44AA", null, false),
    		WAR_CHIEF(4, "War-chief ", "AA44AA", null, false),
    		SIR(5, "Sir ", "C86400", null, false),
    		LORD(6, "Lord ", "C86400", null, false),
    		DUDERINO(7, "Duderino ", "C86400", null, false),
    		LIONHEART(8, "Lionheart ", "C86400", null, false),
    		HELLRAISER(9, "Hellraiser ", "C86400", null, false),
    		CRUSADER(10, "Crusader ", "C86400", null, false),
    		DESPERADO(11, "Desperado ", "C86400", null, false),
    		BARON(12, "Baron ", "C86400", null, false),
    		COUNT(13, "Count ", "C86400", null, false),
    		OVERLORD(14, "Overlord ", "C86400", null, false),
    		BANDITO(15, "Bandito ", "C86400", null, false),
    		DUKE(16, "Duke ", "C86400", null, false),
    		KING(17, "King ", "C86400", null, false),
    		BIG_CHEESE_(18, "Big Cheese ", "C86400", null, false),
    		BIGWIG_(19, "Bigwig ", "C86400", null, false),
    		WUNDERKIND(20, "Wunderkind ", "C86400", null, false),
    		VYRELING(21, "Vyreling ", "466AFA", null, false),
    		VYRE_GRUNT(22, "Vyre Grunt ", "7D3FEC", null, false),
    		VYREWATCH(23, "Vyrewatch ", "6C0B2B", null, false),
    		VYRELORD(24, "Vyrelord ", "C12006", null, false),
    		YT_HAAR(25, "Yt?Haar ", "C12006", null, false),
    		EMPEROR(26, "Emperor ", "C86400", null, false),
    		PRINCE(27, "Prince ", "C86400", null, false),
    		WITCH_KING(28, "Witch king ", "C86400", null, false),
    		ARCHON(29, "Archon ", "C86400", null, false),
    		JUSTICIAR(30, "Justiciar ", "C86400", null, false),
    		THE_AWESOME(31, "The Awesome ", "C86400", null, false),
    		THE_MAGNIFICENT(32, " the magnificent", "C86400", null, true),
    		THE_UNDEFEATED(33, " the undefeated", "C86400", null, true),
    		THE_STRANGE(34, " the strange", "C86400", null, true),
    		THE_DIVINE(35, " the divine", "C86400", null, true),
    		THE_FALLEN(36, " the fallen", "C86400", null, true),
    		THE_WARRIOR(37, " the warrior", "C86400", null, true),
    		THE_REAL_(38, "The Real ", "C86400", null, false),
    		COWARDLY_(39, "Cowardly ", "AA44AA", null, false),
    		THE_REDUNDANT(40, " the Redundant", "AA44AA", null, true),
    		EVERYONE_ATTACK(41, "Everyone attack ", "AA44AA", null, false),
    		SMELLY(42, "Smelly ", "AA44AA", null, false),
    		THE_IDIOT(43, " the Idiot", "AA44AA", null, true),
    		SIR_LAME(44, "Sir Lame ", "AA44AA", null, false),
    		THE_FLAMBOYANT(45, " the Flamboyant", "AA44AA", null, true),
    		WEAKLING(46, "Weakling ", "AA44AA", null, false),
    		WAS_PUNISHED(47, " was punished", "AA44AA", null, true),
    		LOST(48, " lost", "AA44AA", null, true),
    		YOU_FAIL(49, " ...you fail", "AA44AA", null, true),
    		NO_MATES_(50, "No-mates ", "AA44AA", null, false),
    		ATE_DIRT(51, " ate dirt", "AA44AA", null, true),
    		DELUSIONAL_(52, "Delusional ", "AA44AA", null, false),
    		THE_RESPAWNER(53, " the Respawner", "AA44AA", null, true),
    		CUTIE_PIE_(54, "Cutie-pie ", "AA44AA", null, false),
    		THE_FAIL_MAGNET(55, " the Fail Magnet", "AA44AA", null, true),
    		WAS_TERMINATED(56, " was terminated", "AA44AA", null, true),
    		LAZY(57, "Lazy ", "AA44AA", null, false),
    		WHO(58, "? Who?", "AA44AA", null, true),
    		
    		DEVELOPER(60, "Developer ", "008080", null, false);
    		
    		private int id;
    		private String title, color, shade;
    		private boolean after;
    		
    		Titles(int id, String title, String color, String shade, boolean after) {
    			this.id = id;
    			this.title = title;
    			this.color = color;
    			this.shade = shade;
    			this.after = after;
    		}
    		
    		public int getId() {
    			return id;
    		}
    		
    		public String getTitle() {
    			return title;
    		}
    		
    		public String getColor() {
    			return color;
    		}
    		
    		public String getShade() {
    			return shade;
    		}
    		
    		public boolean goesAfter() {
    			return after;
    		}
    		
    	}
    	
    	public static boolean goesAfterName(int titleId) {
    		for (Titles t : Titles.values()) {
    			if (t.getId() == titleId) {
    				return t.goesAfter();
    			}
    		}
    		return false;
    	}
    	
    	public static void set(Player player, int titleId) {
    		if (titleId == 59 && player.getRank() != Ranks.ALPHA) {
    			player.sendMessage("This title is reserved for Alpha Donors Only.");
    			return;
    		}
    		if (titleId == 60 && !player.getUsername().equals("king_fox")) {
    			player.sendMessage("You must be a developer to use this title!");
    			return;
    		}
    		player.getAppearence().setTitle(titleId);
    		player.getAppearence().loadAppearanceBlock();
    		player.sendMessage("Your new title is now: "+getTitle(titleId)+"");
    	}
    	
    	public static String getTitle(int titleId) {
    		for (Titles t : Titles.values()) {
    			if (titleId > 58 && t.getId() == titleId) {
    				String color = t.getColor() == null ? "" : "<col="+t.getColor()+">";
    				String shade = t.getShade() == null ? "" : "<shad="+t.getShade()+">";
    				String pref1 = t.getColor() == null ? "" : "</col>";
    				String pref2 = t.getShade() == null ? "" : "</shad>";
    				String title = color + shade + t.getTitle() + pref1 + pref2;
    				return title;
    			}
    		}
    		return ClientScriptMap.getMap(1093).getStringValue(titleId);
    	}
    }
    this was my attempt at titles
    How could I ever forget about enums. Haha nice job
    Reply With Quote  
     

  7. #16  
    arr.each { |x| x }


    Join Date
    Jul 2013
    Posts
    1,388
    Thanks given
    190
    Thanks received
    345
    Rep Power
    2791
    Quote Originally Posted by King Fox View Post
    Code:
    package com.foxtrot.game.player.content.custom;
    
    import com.foxtrot.cache.loaders.ClientScriptMap;
    import com.foxtrot.game.player.Player;
    import com.foxtrot.game.player.Ranks;
    
    public class TitleHandler {
    
    	public enum Titles {
    		
    		JUNIOR_CADET(1, "Junior Cadet ", "AA44AA", null, false),
    		SERJEANT(2, "Serjeant ", "AA44AA", null, false),
    		COMMANDER(3, "Commander ", "AA44AA", null, false),
    		WAR_CHIEF(4, "War-chief ", "AA44AA", null, false),
    		SIR(5, "Sir ", "C86400", null, false),
    		LORD(6, "Lord ", "C86400", null, false),
    		DUDERINO(7, "Duderino ", "C86400", null, false),
    		LIONHEART(8, "Lionheart ", "C86400", null, false),
    		HELLRAISER(9, "Hellraiser ", "C86400", null, false),
    		CRUSADER(10, "Crusader ", "C86400", null, false),
    		DESPERADO(11, "Desperado ", "C86400", null, false),
    		BARON(12, "Baron ", "C86400", null, false),
    		COUNT(13, "Count ", "C86400", null, false),
    		OVERLORD(14, "Overlord ", "C86400", null, false),
    		BANDITO(15, "Bandito ", "C86400", null, false),
    		DUKE(16, "Duke ", "C86400", null, false),
    		KING(17, "King ", "C86400", null, false),
    		BIG_CHEESE_(18, "Big Cheese ", "C86400", null, false),
    		BIGWIG_(19, "Bigwig ", "C86400", null, false),
    		WUNDERKIND(20, "Wunderkind ", "C86400", null, false),
    		VYRELING(21, "Vyreling ", "466AFA", null, false),
    		VYRE_GRUNT(22, "Vyre Grunt ", "7D3FEC", null, false),
    		VYREWATCH(23, "Vyrewatch ", "6C0B2B", null, false),
    		VYRELORD(24, "Vyrelord ", "C12006", null, false),
    		YT_HAAR(25, "Yt?Haar ", "C12006", null, false),
    		EMPEROR(26, "Emperor ", "C86400", null, false),
    		PRINCE(27, "Prince ", "C86400", null, false),
    		WITCH_KING(28, "Witch king ", "C86400", null, false),
    		ARCHON(29, "Archon ", "C86400", null, false),
    		JUSTICIAR(30, "Justiciar ", "C86400", null, false),
    		THE_AWESOME(31, "The Awesome ", "C86400", null, false),
    		THE_MAGNIFICENT(32, " the magnificent", "C86400", null, true),
    		THE_UNDEFEATED(33, " the undefeated", "C86400", null, true),
    		THE_STRANGE(34, " the strange", "C86400", null, true),
    		THE_DIVINE(35, " the divine", "C86400", null, true),
    		THE_FALLEN(36, " the fallen", "C86400", null, true),
    		THE_WARRIOR(37, " the warrior", "C86400", null, true),
    		THE_REAL_(38, "The Real ", "C86400", null, false),
    		COWARDLY_(39, "Cowardly ", "AA44AA", null, false),
    		THE_REDUNDANT(40, " the Redundant", "AA44AA", null, true),
    		EVERYONE_ATTACK(41, "Everyone attack ", "AA44AA", null, false),
    		SMELLY(42, "Smelly ", "AA44AA", null, false),
    		THE_IDIOT(43, " the Idiot", "AA44AA", null, true),
    		SIR_LAME(44, "Sir Lame ", "AA44AA", null, false),
    		THE_FLAMBOYANT(45, " the Flamboyant", "AA44AA", null, true),
    		WEAKLING(46, "Weakling ", "AA44AA", null, false),
    		WAS_PUNISHED(47, " was punished", "AA44AA", null, true),
    		LOST(48, " lost", "AA44AA", null, true),
    		YOU_FAIL(49, " ...you fail", "AA44AA", null, true),
    		NO_MATES_(50, "No-mates ", "AA44AA", null, false),
    		ATE_DIRT(51, " ate dirt", "AA44AA", null, true),
    		DELUSIONAL_(52, "Delusional ", "AA44AA", null, false),
    		THE_RESPAWNER(53, " the Respawner", "AA44AA", null, true),
    		CUTIE_PIE_(54, "Cutie-pie ", "AA44AA", null, false),
    		THE_FAIL_MAGNET(55, " the Fail Magnet", "AA44AA", null, true),
    		WAS_TERMINATED(56, " was terminated", "AA44AA", null, true),
    		LAZY(57, "Lazy ", "AA44AA", null, false),
    		WHO(58, "? Who?", "AA44AA", null, true),
    		
    		DEVELOPER(60, "Developer ", "008080", null, false);
    		
    		private int id;
    		private String title, color, shade;
    		private boolean after;
    		
    		Titles(int id, String title, String color, String shade, boolean after) {
    			this.id = id;
    			this.title = title;
    			this.color = color;
    			this.shade = shade;
    			this.after = after;
    		}
    		
    		public int getId() {
    			return id;
    		}
    		
    		public String getTitle() {
    			return title;
    		}
    		
    		public String getColor() {
    			return color;
    		}
    		
    		public String getShade() {
    			return shade;
    		}
    		
    		public boolean goesAfter() {
    			return after;
    		}
    		
    	}
    	
    	public static boolean goesAfterName(int titleId) {
    		for (Titles t : Titles.values()) {
    			if (t.getId() == titleId) {
    				return t.goesAfter();
    			}
    		}
    		return false;
    	}
    	
    	public static void set(Player player, int titleId) {
    		if (titleId == 59 && player.getRank() != Ranks.ALPHA) {
    			player.sendMessage("This title is reserved for Alpha Donors Only.");
    			return;
    		}
    		if (titleId == 60 && !player.getUsername().equals("king_fox")) {
    			player.sendMessage("You must be a developer to use this title!");
    			return;
    		}
    		player.getAppearence().setTitle(titleId);
    		player.getAppearence().loadAppearanceBlock();
    		player.sendMessage("Your new title is now: "+getTitle(titleId)+"");
    	}
    	
    	public static String getTitle(int titleId) {
    		for (Titles t : Titles.values()) {
    			if (titleId > 58 && t.getId() == titleId) {
    				String color = t.getColor() == null ? "" : "<col="+t.getColor()+">";
    				String shade = t.getShade() == null ? "" : "<shad="+t.getShade()+">";
    				String pref1 = t.getColor() == null ? "" : "</col>";
    				String pref2 = t.getShade() == null ? "" : "</shad>";
    				String title = color + shade + t.getTitle() + pref1 + pref2;
    				return title;
    			}
    		}
    		return ClientScriptMap.getMap(1093).getStringValue(titleId);
    	}
    }
    this was my attempt at titles
    Just wondering why you store all the non-custom titles in an enumeration aswell, they're already in the ClientScripts.
    Reply With Quote  
     

  8. #17  
    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
    Quote Originally Posted by Ridiculous View Post
    Just wondering why you store all the non-custom titles in an enumeration aswell, they're already in the ClientScripts.
    maybe i wanna change some lel >.>

    Attached image
    Reply With Quote  
     

  9. #18  
    arr.each { |x| x }


    Join Date
    Jul 2013
    Posts
    1,388
    Thanks given
    190
    Thanks received
    345
    Rep Power
    2791
    Quote Originally Posted by King Fox View Post
    maybe i wanna change some lel >.>
    Oh well I was just wondering.
    Reply With Quote  
     

  10. #19  
    Donator

    Josh''s Avatar
    Join Date
    Jul 2012
    Age
    26
    Posts
    2,036
    Thanks given
    1,119
    Thanks received
    520
    Rep Power
    192
    Joris strikes again, whale dun jeris m9
    Reply With Quote  
     

  11. Thankful user:


  12. #20  
    Donator


    Join Date
    Jan 2014
    Posts
    1,652
    Thanks given
    428
    Thanks received
    501
    Rep Power
    221
    Quote Originally Posted by Josh' View Post
    Joris strikes again, whale dun jeris m9
    thanks jush
    Reply With Quote  
     

Page 2 of 4 FirstFirst 1234 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
  •