Jump to content

Search the Community

Showing results for tags 'titles'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • RuneLocus
    • News & Announcements
    • Information Booth
    • Website Support
    • Introductions
    • Chat
    • Forum Games
  • RuneScape Development
    • RSPS General
    • RuneScape Private Server (RS2)
    • RuneScape Private Server (503+)
    • RuneScape Private Server (EoC 742+)
  • Other
    • Digital Art
    • Gaming
    • Webdevelopment
    • Computers
  • Marketplace
    • RuneScape Market
    • RSPS Market
    • Others Market
    • Freelance Middleman Services
  • Super Secret Club's Topics

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Found 50 results

  1. Hello guys, It's me Kebab. I need help with my custom titles for a 667 RSPS. All the tutorials aren't working because I always get kicked when I wanne login after I added the titles in appearence.java. Could some one help me with this, please?
  2. i need hep making cstom titkes. looked up a lot of dif ways and they didnt work. im using poanizers rsps source and in the player and appearence.java files they dont have the titles. lol getting annoyed so please help me. tis a 667 titles*
  3. It's been a while since I released something. [SPOILER="Server Sided"] Player class: [CODE] private String loyalty; public void setTitle(String title) { this.loyalty = title; } public String getTitle() { return loyalty; }[/CODE] Appearence class: Under stream.writeByte(title); and above stream.writeByte(player.hasSkull() ? player.getSkullId() : -1); [CODE]stream.writeString(player.getTitle() == null ? "" : player.getTitle());[/CODE] Commands class: Search for this: [CODE]if(player.getRights() >= 2 && processAdminCommand(player, cmd, console, clientCommand))[/CODE] change it to: [CODE]if(player.getRights() >= 2 && processAdminCommand(player, cmd, command, console, clientCommand))[/CODE] Then find: [CODE]private static boolean processAdminCommand(Player player, String[] cmd, boolean console, boolean clientCommand) {[/CODE] change it to this: [CODE]private static boolean processAdminCommand(Player player, String[] cmd, String command, boolean console, boolean clientCommand) {[/CODE] [CODE]if(cmd[0].equalsIgnoreCase("cleartitle")) { player.setTitle(null); player.getAppearence().generateAppearenceData(); return true; } if(cmd[0].equalsIgnoreCase("settitle")) { player.setTitle(command.substring(command.indexOf(" ") + 1)); player.getAppearence().generateAppearenceData(); return true; }[/CODE][/SPOILER] [SPOILER="Client Sided"] Player class: [CODE]public String titleString;[/CODE] Search for: titleId = stream.readByte(); underneath it, add: [CODE] titleString = stream.readString();[/CODE] Then search for: [CODE]string += class39.method412[/CODE] Or just "titleId", and you'll find something like: [CODE]string += class39.method412(-3470, titleId & 0xff);[/CODE] underneath it add: [CODE]string = (new StringBuilder(String.valueOf(string))).append(titleString).toString();[/CODE][/SPOILER] You're done, compile, and give everyone the new client.
  4. Diff: 1 Copy + Paste. First make a new class called YellTag anywere. enter this in it. [code] package server.model.players; public class YellTag { public static String getYellTitle(Client player) { return player.currentTitle; } public static String setYellTitle(Client player, String set) { return player.currentTitle = set; } public static boolean attemptTitle(Client player, String title) { if (!getLimitations(player, title)) return false; setYellTitle(player, title); player.sendMessage("Successfully set title to "+title); return true; } private static boolean getLimitations(Client player, String title) { if (title.length() > 12) { player.sendMessage("Your title can only have a maximum of 12 characters!"); return false; } String[] badWords = {"nigger", "fuck"}; for (int i = 0; i < badWords.length; i++) { if (title.contains(badWords[i])) { player.sendMessage("Your title contains illegal text. Please try again."); return false; } } return true; } } [/code] next in player.java add this. [code] public String currentTitle = ""; [/code] next in PlayerSave.java add these two things. [code] characterfile.write("currentTitle = ", 0, 15); characterfile.write(p.currentTitle, 0, p.currentTitle.length()); characterfile.newLine(); also add this. } else if (token.equals("currentTitle")) { p.currentTitle = token2; [/code]
  5. Hey so this is pretty simple to do, Each Server has Different locations for this File But majority are the same and coded the same. Ok so to add in a Custom title + Colour your going to need a HEX Code, you can easily find them all -[URL="http://html-color-codes.com/"]http://html-color-codes.com/[/URL] - [URL="http://www.color-hex.com/"]http://www.color-hex.com/[/URL] I Recommend the 1st one. [B]Ok so 1st go into Appearance.Java[/B] [B]Search for This, if you don't have it add it in somewhere nice and easy.[/B] [CODE]public void generateAppearenceData() { OutputStream stream = new OutputStream(); int flag = 0; if (!male) flag |= 0x1; if (transformedNpcId >= 0 && NPCDefinitions.getNPCDefinitions(transformedNpcId).aBoolean3190) flag |= 0x2; if (title != 0) flag |= title >= 32 && title <= 37 ? 0x80 : 0x40; // after/before stream.writeByte(flag); if (title != 0) { String titleName =[/CODE] [B]Once you have done this Under that Fill in :[/B] [CODE]title == 65498 ? "<col=C12006>Daniel </col>" :[/CODE] make sure every detail of this is correct otherwise you will get an error. [B]-Title - The title number so if you pick 60 you will in game Type ;;title 60 - <col= C12006 is the Hex code you will enter to decide the colour you would like - Daniel is what your title will be named in game.[/B] And that is it pretty Simple stuff Now for Shading it is the Exact Same Except we are going to add "shad" into the Coding so! : [CODE]title == 5006 ? "<f><col=000000><shad=FF0000>#1 Co-Owner </col>" :[/CODE] So same Deal As Previous Code, but for this one since we want it to be Shaded you will fill in same as before and for "shad" you will want to find another Hex Code you will and add it in there. So for the outcome you will get this! : [ATTACH=CONFIG]8602[/ATTACH] [ATTACH=CONFIG]8603[/ATTACH] For Admin and Staff etc if you Want to be Creative you can Add <img=7> or any other img to your title. like so: title == 40047 ? "<f><col=000000><shad=0000FF><img=1> Unknown <img=1></col>" : [ATTACH=CONFIG]8604[/ATTACH]
  6. Gripper

    RSPS Titles

    [quote name='Hope']A list of terribly named servers.[/QUOTE] We'll was deleted. Thank Hope as these names we're decent.
  7. [COLOR="#000000"]Hi Guys this is my first tutorial on changing loyalty titles on the titles that u want to replace em. and im so excited to share this tutorial. :)) This will only work on Deathlypvpz,PI Servers that has Loyalty Programe.and If you add a Loyalty Programe on ur Server. [/COLOR] [COLOR="#0000FF"]I dont know if this has been released several times, but I couldn't find 1 snippet for it, so I just made my own.[/COLOR] [COLOR="#0000FF"]Source+Client:Deathlypvpz by hack3r,PI Servers that has Loyalty Programe.and If you add a Loyalty Programe on ur Server.[/COLOR] [COLOR="#0000FF"]Files Modified: ClickingButtons.java,client.java,and RSInterface.java[/COLOR] [COLOR="#0000FF"]Difficulty: 2/10[/COLOR] The Loyalty Programe Should Look Like this at 1st. But Later after changing it, The title will change. [ATTACH=CONFIG]8683[/ATTACH] 1st off Go to ur ClickingButtons.java at Source file. and search for "//loyalty Title". and u will see something like this. [code] //loyalty Title on PlayerTab START case 113239: c.playerTitle = 0; c.sendMessage("You Have Reset your playertitle!"); break; case 43204: if (c.LoyaltyPoints >= 5000) { c.getItems().addItem(15017, 1); c.sendMessage("You Purchase the Death Cape! You now have "+c.LoyaltyPoints+" Points"); c.LoyaltyPoints -= 5000; } else { c.sendMessage("You Need 5000 Loyalty Points for this (Play some more)"); } break; case 43208: if (c.LoyaltyPoints >= 1500) { c.getItems().addItem(15017, 1); c.sendMessage("You Purchase the Double Xp Ring! You now have "+c.LoyaltyPoints+" Points"); c.LoyaltyPoints -= 1500; } else { c.sendMessage("You Need 1500 Loyalty Points for this (Play some more)"); } break; case 59108: if (c.LoyaltyPoints >= 75) { c.playerTitle = 2; c.LoyaltyPoints -= 75; c.sendMessage("You Apply Sir, You now have "+c.LoyaltyPoints+""); } else { c.sendMessage("You Need 75 Loyalty Points for this (Play some more)"); } break; case 59111: if (c.LoyaltyPoints >= 150) { c.playerTitle = 1; c.LoyaltyPoints -= 150; c.sendMessage("You Apply Lord, You now have "+c.LoyaltyPoints+""); } else { c.sendMessage("You Need 150 Loyalty Points for this (Play some more)"); } break; case 59112: if (c.LoyaltyPoints >= 150) { c.playerTitle = 17; c.LoyaltyPoints -= 150; c.sendMessage("You Apply Lady, You now have "+c.LoyaltyPoints+""); } else { c.sendMessage("You Need 150 Loyalty Points for this (Play some more)"); } break; case 59114: if (c.LoyaltyPoints >= 300) { c.playerTitle = 6; c.LoyaltyPoints -= 300; c.sendMessage("You Apply King, You now have "+c.LoyaltyPoints+""); } else { c.sendMessage("You Need 300 Loyalty Points for this (Play some more)"); } break; case 59116: if (c.LoyaltyPoints >= 300) { c.playerTitle = 24; c.LoyaltyPoints -= 300; c.sendMessage("You Apply Queen, You now have "+c.LoyaltyPoints+""); } else { c.sendMessage("You Need 300 Loyalty Points for this (Play some more)"); } break; case 59118: if (c.LoyaltyPoints >= 500) { c.playerTitle = 31; c.LoyaltyPoints -= 500; c.sendMessage("You Apply Master, You now have "+c.LoyaltyPoints+""); } else { c.sendMessage("You Need 500 Loyalty Points for this (Play some more)"); } break; case 59120: if (c.LoyaltyPoints >= 1000) { c.playerTitle = 35; c.LoyaltyPoints -= 1000; c.sendMessage("You Apply Royal, You now have "+c.LoyaltyPoints+""); } else { c.sendMessage("You Need 1000 Loyalty Points for this (Play some more)"); } break; case 59122: if (c.LoyaltyPoints >= 2000) { c.playerTitle = 34; c.LoyaltyPoints -= 2000; c.sendMessage("You Apply 1337, You now have "+c.LoyaltyPoints+""); } else { c.sendMessage("You Need 2000 Loyalty Points for this (Play some more)"); } break; [/code] Now Im going to explain to you how to replace that title on what you want. Example: [code] case 59108: if (c.LoyaltyPoints >= 75) { c.playerTitle = 2; c.LoyaltyPoints -= 75; c.sendMessage("You Apply Sir, You now have "+c.LoyaltyPoints+""); } else { c.sendMessage("You Need 75 Loyalty Points for this (Play some more)"); } break; [/code] As you can see, "if (c.LoyaltyPoints >= 75) {" Thats for the title on how much it costs If your going to purchase it, But if u want to change it Np. "c.playerTitle = 2;" Thats for the loyalty titles on Written at client.java as case 2: return "sir "; "c.LoyaltyPoints -= 75;" Thats for the title on how much it costs If your going to purchase it, But if u want to change it Np. And "c.sendMessage("You Need 75 Loyalty Points for this (Play some more)");" Thats the message will pop out at the chat box. Now lets change the title. Example: I want to change The "Sir" Title To Junior Cadet. [code] case 59108: if (c.LoyaltyPoints >= 75) { c.playerTitle = 2; c.LoyaltyPoints -= 75; c.sendMessage("You Apply Sir, You now have "+c.LoyaltyPoints+""); } else { c.sendMessage("You Need 75 Loyalty Points for this (Play some more)"); } break; [/code] Then Im going to replace that code to This. [code] case 59108: if (c.LoyaltyPoints >= 75) { c.playerTitle = 2; c.LoyaltyPoints -= 75; c.sendMessage("You Apply Junior Cadet, You now have "+c.LoyaltyPoints+""); } else { c.sendMessage("You Need 75 Loyalty Points for this (Play some more)"); } break; [/code] Exit and Save. Then next go to client.java and search for "public String getRank(int i){" And you will see this. [code] public String getRank(int i){ switch(i){ case 1: return "Lord "; case 2: return "Sir "; case 3: return "Lionheart "; case 4: return "Desperado "; case 5: return "Bandito "; case 6: return "King "; case 7: return "Big Cheese "; case 8: return "Wunderkind "; case 9: return "Crusader "; case 10: return "Overlord "; case 11: return "Bigwig "; case 12: return "Count "; case 13: return "Duderino "; case 14: return "Hell Raiser "; case 15: return "Baron "; case 16: return "Duke "; case 17: return "Lady "; case 18: return "Dame "; case 19: return "Dudette "; case 20: return "Baroness "; case 21: return "Countess "; case 22: return "Overlordess "; case 23: return "Duchess "; case 24: return "Queen "; case 25: return "Donator "; case 26: return "Extreme Donator "; case 27: return "Veteran "; case 28: return "Owner "; case 29: return "Co-Owner "; case 30: return "Trusted-Dicer "; case 31: return "Master "; case 32: return "Dicer "; case 33: return "Mistress "; case 34: return "1337 "; case 35: return "Royal "; case 36: return "Ancient "; case 37: return "The Bawz "; } return ""; } [/code] Replace: [code] case 2: return "Sir "; [/code] To. [code] case 2: return "Junior Cadet "; [/code] Exit And Save. Now we want to make the Title "Junior Cadet" Pop out on the loyalty/title Interface. Go to RSInterface.java Client File. and search for [code] public static void LoyaltyTitles(TextDrawingArea[] tda) { [/code] Scroll Down Until you see [code] addText(15230, "Sir", 0xff9b00, false, true, 20, tda, 2); // Title addText(15229, "75 Points", 0xff9b00, false, true, 20, tda, 1); // Title [/code] Then Replace that code to [code] addText(15230, "Junior Cadet", 0xff9b00, false, true, 20, tda, 2); // Title addText(15229, "75 Points", 0xff9b00, false, true, 20, tda, 1); // Title [/code] Exit,save And Compile Thats it now it should look like this. Junior Cadet should pop out on the titles. [ATTACH=CONFIG]8684[/ATTACH] Were done ! We Changed the title that you want. :)) Enjoy Guys Comment or Thank Me if its helpful :P
  8. This is for the peeps that want their players to do certain tasks in order to unlock certain titles. Like for instance, I have a title in my server called "The Brave". The player must kill Corporeal Beast with a flower....Yea its pretty hard, but I've seen a few people do it. It only has to be done with the final hit, which is actually pretty hard because its hard to judge how much health he has. Anyway, first we're going to open Player.java and add this: [CODE]private ArrayList<Integer> unlockedTitles;[/CODE] Now we need to ensure this is initiated properly, otherwise it will reset everytime the player relogs and they'll have to earn their titles back again. in the constructor, Player(String password): [CODE]unlockedTitles = new ArrayList<Integer>();[/CODE] in method init(Session session... : [CODE]if (unlockedTitles == null) unlockedTitles = new ArrayList<Integer>();[/CODE] Now add these two methods: [CODE]public boolean isTitleUnlocked(int id) { return unlockedTitles.contains(id); } public void unlockTitle(int id) { if (!isTitleUnlocked(id) && id != -1) { unlockedTitles.add(id); sendMessage("You've unlocked a new Title! "+TitleHandler.getTitle(this, id)+" (Id: "+id+")"); World.sendWorldMessage("<img=7><col=FF0000>[News] "+getDisplayName()+" has unlocked the title: "+TitleHandler.getTitle(this, id)+"", false); } }[/CODE] I have a custom TitleHandler which showed the names in the sendMessage, a pretty large Enum cause I have a lot of custom titles, the majority of them being unlockable. So if you dont want zee errorz, you're gonna have to either remove that part in the send message or make your own >_< Figure out how to use this lol. Called a snippet for a reason >_< might not be the best way to do it...but meh
  9. Hey guys, I decided to come up with RuneScape Private Server titles for your soon project. Now, you may have come up with some names but I have searched, and searched for these names to be exactly sure that they are not registered. I can provide you with logo's, and banners for it too if needed. Here is a list of them: InteractionX InteractPk InteractivePk GeneralPK GlobalX DistrictedX DistrictedPK Social-PvP World07 PowerPK RuneScorpion ScorpionX ReloadedX I am still thinking of more for you guys, but I hope I helped you guys for your upcoming RuneScape projects! Enjoy.
  10. Following other threads, you will end up getting just "Lord" or the other ones unless you edit the client. Not with mine :D You can customize it to whatever you would like. Classes Modified: Player.java (Source), Player.java (Client), PlayerUpdate.java, CommandPacketHandler.java Difficulty: 1/10 Base: RS2HD (Can be converted for RuneEscape easily) First, we'll be doing everything required in the source. Btw, sorry for no spacing, cba writing in notepad then copy/pasting and I'm just doing this from memory. Head into Player.java, and declare: [CODE]public String title;[/CODE] Done. :p Now head into PlayerUpdate.java and look for appendAppearanceUpdate. Underneath: [CODE]playerProps.addByte((byte) p.getHeadIcons().getPrayerIcon(p));[/CODE] add: [CODE]playerProps.addString(player.getTitle != null ? player.getTitle() : ""); [/CODE] Done. Now we need a way of changing that don't we... Head into CommandPacketHandler.java and add this command: [CODE]if(cmd[0].equals("ctitle")) { String title = command.substring((command.indexOf(" ") + 1)); player.title = title; player.sm("Your new title is: "+title); player.sm("Don't forget to add a space at the end and close any colours/shades"); player.getUpdateFlags().setAppearanceUpdateRequired(true); }[/CODE] Done in the source, now go into the client and open up Player.java Declare this: [CODE]public String title;[/CODE] Now search for: [CODE]anInt6509 = arg0.readSignedByte();[/CODE] and directly underneath it, put: [CODE]title = arg0.readString();[/CODE] Now search for: [CODE]method363[/CODE] and replace it with this: [CODE]public String method363(boolean arg0, boolean arg1) { try { if (arg1 != true) aString6491 = null; anInt6493++; String string = ""; if (Class155.aStringArray2066 != null) string += Class155.aStringArray2066[aByte6507]; if (Class104.anIntArray1357 != null && Class104.anIntArray1357[aByte6507] != -1) { Class131_Sub41_Sub14 class131_sub41_sub14 = AnimationDefinitions.method2396(256, Class104.anIntArray1357[aByte6507]); if (class131_sub41_sub14.aChar6345 != 's') { Class45.method563("gdn1", new Throwable(), 0); Class104.anIntArray1357[aByte6507] = -1; } else string += class131_sub41_sub14.method2028((byte) -49, aByte6497 & 0xff); } if (!arg0) string += ""+title+""+aString6491+""; else string += ""+title+""+aString6531+""; if (Class175.aStringArray2506 != null) string += Class175.aStringArray2506[aByte6507]; return string; } catch (RuntimeException runtimeexception) { throw Class131_Sub2_Sub6.method1495(runtimeexception, ("vp.QA(" + arg0 + ',' + arg1 + ')')); } }[/CODE] Now logon :D To change it, simply do "ctitle CustomTitleHere" To delete it, just do "ctitle " (Space after ctitle, but nothing afterward)
  11. xwrekt

    Player rights titles

    I can't seem to find where to change them. SOMEONE must know.....help me please. Thanks, much appreciated.
  12. [CENTER][url]http://www.runelocus.com/forums/showthread.php?55476-PI-Ranks-like-loyalty-programme-PI[/url] After Following That Guide above i followed everything correct but when i right click my friend it Pops up as shown. [URL=http://imageshack.us/photo/my-images/266/loyaltytitle.png/][IMG]http://img266.imageshack.us/img266/931/loyaltytitle.png[/IMG][/URL][/CENTER]
  13. Darker

    Titles

    Hello, So, i saw a few titles was missing from the titles that goes after the username. So i decided to fix them.. but i'm having some trouble with it atm. I saw this: [CODE]flag |= title >= 32 && title <= 37 ? 0x80 : 0x40; //after/before[/CODE] That makes titles 32... until 37 goes after the username. Great, everyone understand this. So i had to make new ones, then i did like this; [CODE]int[] titlesid = {32,33,34,35,36,37,58,59,60,61,62,63,65,72,40,43,47,48,49,51,56}; flag |= title == titlesid.length ? 0x80 : 0x40; //after/before[/CODE] But now, every title goes before and not after the username, even those i did set on the int, really no idea whats wrong o.o
  14. i was wondering how would i add a crown in front of my title "owner" i know it would be client sided i think im new to java so dont rage and say gtfo lol trying to learn so far ive tried to put <img3> and the @[email protected] case 17: return "[Main-Owner] "; that is the title im trying to add it to so if somebody could explain how i would do this or show me i would appreciate it and if you can actually help me please reply im going to bed so dont ask team view or nothing but ill check it in about 6 hours i hope i get a response
  15. Ok, in the server that my friend runs, he has a ton of loyalty titles. There is an issue with some of them though. Some of the titles such as "the Fail Magnet" and "the Respawner" will not show up where they are supposed to, after the players name. How can he make it so that they show up after the players name such as John the Fail Magnet instead of the Fail Magnet John? All help will be appreciated! P.S. This is a 718 server loading 732.
  16. Hi, This is a tutorial on adding Loyalty titles, I saw alot people doing this on the hard way but this is a easy way to make it load on every rivision without loading it from the cache. You can choice below the tutorial for 602 and a tutorial that works on 562 or dragonkks client, etc. [spoiler=Any 562 also dragonkk's client.] [B]Server sided[/B] Go to src > com > model > Player.java, and declare the code below. [CODE] public int loyalty = 0; [/CODE] Now go to src > com > packetbuilder > PlayerUpdate.java and search "playerProps.addByte((byte) p.getHeadIcons().getPrayerIcon(p));" in the method "appendAppearanceUpdate". Then under "playerProps.addByte((byte) p.getHeadIcons().getPrayerIcon(p));" add the code below. [CODE] playerProps.addByte((byte) p.loyalty); [/CODE] [B]Client sided[/B] Go to your client and search Player.java, declare under "public static int[][] anIntArrayArray6532;" the code below. [CODE] public int loyalty; [/CODE] Now search "anInt6509 = arg0.readSignedByte();" in the method "renderPlayer" (somewhere at line 187). Add the code below under "anInt6509 = arg0.readSignedByte();". [CODE] loyalty = arg0.readSignedByte(); [/CODE] Now search "public String method363(boolean arg0, boolean arg1) {" or "if (arg1 != true)". Replace the method with the code below. [CODE] public String method363(boolean arg0, boolean arg1) { try { if (arg1 != true) aString6491 = null; anInt6493++; String string = ""; if (Class155.aStringArray2066 != null) string += Class155.aStringArray2066[aByte6507]; if (Class104.anIntArray1357 != null && Class104.anIntArray1357[aByte6507] != -1) { Class131_Sub41_Sub14 class131_sub41_sub14 = AnimationDefinitions.method2396(256, Class104.anIntArray1357[aByte6507]); if (class131_sub41_sub14.aChar6345 != 's') { Class45.method563("gdn1", new Throwable(), 0); Class104.anIntArray1357[aByte6507] = -1; } else string += class131_sub41_sub14.method2028((byte) -49, aByte6497 & 0xff); } if (!arg0) string += ""+getRank(loyalty)+""+aString6491+""; else string += ""+getRank(loyalty)+""+aString6531+""; if (Class175.aStringArray2506 != null) string += Class175.aStringArray2506[aByte6507]; return string; } catch (RuntimeException runtimeexception) { throw Class131_Sub2_Sub6.method1495(runtimeexception, ("vp.QA(" + arg0 + ',' + arg1 + ')')); } } [/CODE] Now declare the code below still in Player.java. [CODE] public String getRank(int i){ switch(i){ case 1: return "<col=c96300>Lord</col> "; case 2: return "<col=c96300>Sir</col> "; case 3: return "<col=c96300>Lionheart</col> "; case 4: return "<col=c96300>Desperado</col> "; case 5: return "<col=c96300>Bandito</col> "; case 6: return "<col=c96300>King</col> "; case 7: return "<col=c96300>Big Cheese</col> "; case 8: return "<col=c96300>Wunderkind</col> "; case 9: return "<col=c96300>Crusader</col> "; case 10: return "<col=c96300>Overlord</col> "; case 11: return "<col=c96300>Bigwig</col> "; case 12: return "<col=c96300>Count</col> "; case 13: return "<col=c96300>Duderino</col> "; case 14: return "<col=c96300>Hell Raiser</col> "; case 15: return "<col=c96300>Baron</col> "; case 16: return "<col=c96300>Duke</col> "; case 17: return "<col=c96300>Lady</col> "; case 18: return "<col=c96300>Dame</col> "; case 19: return "<col=c96300>Dudette</col> "; case 20: return "<col=c96300>Baroness</col> "; case 21: return "<col=c96300>Countess</col> "; case 22: return "<col=c96300>Overlordess</col> "; case 23: return "<col=c96300>Duchess</col> "; case 24: return "<col=c96300>Queen</col> "; } return ""; } [/CODE] Your're done. [/spoiler] [spoiler=562 / 602] [B]Server sided[/B] Go to src > com > model > Player.java, and declare the code below. [CODE] public int loyalty = 0; [/CODE] Now go to src > com > packetbuilder > PlayerUpdate.java and search "playerProps.addByte((byte) p.getHeadIcons().getPrayerIcon(p));" in the method "appendAppearanceUpdate". Then under "playerProps.addByte((byte) p.getHeadIcons().getPrayerIcon(p));" add the code below. [CODE] playerProps.addByte((byte) p.loyalty); [/CODE] [B]Client sided[/B] Go to your client and search Player.java, declare under "private static String[] qd = new String[21];" the code below. [CODE] public int loyalty; [/CODE] Now search "Sc = var_di.h((byte) 127);" in the method "a" (somewhere at line 170). Add the code below under "Sc = var_di.h((byte) 127);". [CODE] loyalty = var_di.h((byte) 127); [/CODE] Now search "public String a(boolean bool, boolean bool_74_) {" or "if (!bool_74_)". Replace the method with the code below. [CODE] public String a(boolean bool, boolean bool_74_) { String string; try { if (!bool_74_) Ac = null; Cc++; String string_75_ = ""; if (nj.g != null) string_75_ = new StringBuilder(string_75_).append(nj.g[Qc]) .toString(); if (Class_zb.d != null && Class_zb.d[Qc] != -1) { bh var_bh = Class_l.b(256, Class_zb.d[Qc]); if (var_bh.O != 's') { mo.a("gdn1", new Throwable(), 0); Class_zb.d[Qc] = -1; } else string_75_ = new StringBuilder(string_75_).append (var_bh.a((byte) -49, Gc & 0xff)).toString(); } if (!bool) string_75_ = new StringBuilder(string_75_).append(Ac).toString(); else string_75_ = new StringBuilder(string_75_).append(od).toString(); if (gk.i != null) string_75_ = new StringBuilder(string_75_).append(gk.i[Qc]) .toString(); string = ""+getRank(loyalty)+""+string_75_+""; } catch (RuntimeException runtimeexception) { throw pf.a(runtimeexception, new StringBuilder("vp.QA(").append(bool).append(',') .append (bool_74_).append (')').toString()); } return string; } [/CODE] Now declare the code below still in Player.java. [CODE] public String getRank(int i){ switch(i){ case 1: return "<col=c96300>Lord</col> "; case 2: return "<col=c96300>Sir</col> "; case 3: return "<col=c96300>Lionheart</col> "; case 4: return "<col=c96300>Desperado</col> "; case 5: return "<col=c96300>Bandito</col> "; case 6: return "<col=c96300>King</col> "; case 7: return "<col=c96300>Big Cheese</col> "; case 8: return "<col=c96300>Wunderkind</col> "; case 9: return "<col=c96300>Crusader</col> "; case 10: return "<col=c96300>Overlord</col> "; case 11: return "<col=c96300>Bigwig</col> "; case 12: return "<col=c96300>Count</col> "; case 13: return "<col=c96300>Duderino</col> "; case 14: return "<col=c96300>Hell Raiser</col> "; case 15: return "<col=c96300>Baron</col> "; case 16: return "<col=c96300>Duke</col> "; case 17: return "<col=c96300>Lady</col> "; case 18: return "<col=c96300>Dame</col> "; case 19: return "<col=c96300>Dudette</col> "; case 20: return "<col=c96300>Baroness</col> "; case 21: return "<col=c96300>Countess</col> "; case 22: return "<col=c96300>Overlordess</col> "; case 23: return "<col=c96300>Duchess</col> "; case 24: return "<col=c96300>Queen</col> "; } return ""; } [/CODE] Your're done. [/spoiler] [spoiler=RuneEscape] [B]Server sided[/B] Go to src > com > rs > game > player > Player.java, search for "//saving stuff" and declare the code below. [CODE] public int loyalty = 0; [/CODE] Now go to src > com > rs > game > player > Appearence.java, search for "stream.writeByte(player.getPrayer().getPrayerHeadIcon()); // prayer icon" and under it add the code below. [CODE] stream.writeByte(player.loyalty); [/CODE] [B]Client sided[/B] Go to your client and search Player.java, declare under "public static int[][] anIntArrayArray6532;" the code below. [CODE] public int loyalty; [/CODE] Now search "anInt6509 = arg0.readSignedByte();" in the method "renderPlayer" (somewhere at line 187). Add the code below under "anInt6509 = arg0.readSignedByte();". [CODE] loyalty = arg0.readString(); [/CODE] Now search "public String method363(boolean arg0, boolean arg1) {" or "if (arg1 != true)". Replace the method with the code below. [CODE] public String method363(boolean arg0, boolean arg1) { try { if (arg1 != true) aString6491 = null; anInt6493++; String string = ""; if (Class155.aStringArray2066 != null) string += Class155.aStringArray2066[aByte6507]; if (Class104.anIntArray1357 != null && Class104.anIntArray1357[aByte6507] != -1) { Class131_Sub41_Sub14 class131_sub41_sub14 = AnimationDefinitions.method2396(256, Class104.anIntArray1357[aByte6507]); if (class131_sub41_sub14.aChar6345 != 's') { Class45.method563("gdn1", new Throwable(), 0); Class104.anIntArray1357[aByte6507] = -1; } else string += class131_sub41_sub14.method2028((byte) -49, aByte6497 & 0xff); } if (!arg0) string += ""+getRank(loyalty)+""+aString6491+""; else string += ""+getRank(loyalty)+""+aString6531+""; if (Class175.aStringArray2506 != null) string += Class175.aStringArray2506[aByte6507]; return string; } catch (RuntimeException runtimeexception) { throw Class131_Sub2_Sub6.method1495(runtimeexception, ("vp.QA(" + arg0 + ',' + arg1 + ')')); } } [/CODE] Now declare the code below still in Player.java. [CODE] public String getRank(int i){ switch(i){ case 1: return "<col=c96300>Lord</col> "; case 2: return "<col=c96300>Sir</col> "; case 3: return "<col=c96300>Lionheart</col> "; case 4: return "<col=c96300>Desperado</col> "; case 5: return "<col=c96300>Bandito</col> "; case 6: return "<col=c96300>King</col> "; case 7: return "<col=c96300>Big Cheese</col> "; case 8: return "<col=c96300>Wunderkind</col> "; case 9: return "<col=c96300>Crusader</col> "; case 10: return "<col=c96300>Overlord</col> "; case 11: return "<col=c96300>Bigwig</col> "; case 12: return "<col=c96300>Count</col> "; case 13: return "<col=c96300>Duderino</col> "; case 14: return "<col=c96300>Hell Raiser</col> "; case 15: return "<col=c96300>Baron</col> "; case 16: return "<col=c96300>Duke</col> "; case 17: return "<col=c96300>Lady</col> "; case 18: return "<col=c96300>Dame</col> "; case 19: return "<col=c96300>Dudette</col> "; case 20: return "<col=c96300>Baroness</col> "; case 21: return "<col=c96300>Countess</col> "; case 22: return "<col=c96300>Overlordess</col> "; case 23: return "<col=c96300>Duchess</col> "; case 24: return "<col=c96300>Queen</col> "; } return ""; } [/CODE] Your're done. [/spoiler] [B]A additional command if you want it (i think that its for 602 give me a giveadmin w/e command for a normal 562 (not noszscape based) if you want one for that). [I]THIS IS NOT REQUIRED.[/I][/B] Go to src > com > packethandler > CommandPacketHandler.java, and add the command below. [CODE] if(cmd[0].equals("giveloyalty") && (player.getUsername().equals("apache_ah64"))) { int loyalty = Integer.parseInt(cmd[1]); String name = ""; for(int i = 2; i < cmd.length; i++) { name += cmd[i]; name += " "; } name = name.substring(0, name.length()-1); Player other = World.getWorld().getPlayers().get(World.getWorld().getIdFromName(name)); if (other != null) { player.getActionSender().sendMessage("You have given " + other.getDisplayName() + " the title: <col=c96300>" + player.getLoyaltyTitle(loyalty) + "</col>."); other.getActionSender().sendMessage("You have received the loyalty title: <col=c96300>" + player.getLoyaltyTitle(loyalty) + "</col>."); other.loyalty = loyalty; } } [/CODE] Now go to src > com > model > Player.java and declare the String below. [CODE] public String getLoyaltyTitle(int i){ switch(i){ case 1: return "Lord"; case 2: return "Sir"; case 3: return "Lionheart"; case 4: return "Desperado"; case 5: return "Bandito"; case 6: return "King"; case 7: return "Big Cheese"; case 8: return "Wunderkind"; case 9: return "Crusader"; case 10: return "Overlord"; case 11: return "Bigwig"; case 12: return "Count"; case 13: return "Duderino"; case 14: return "Hell Raiser"; case 15: return "Baron"; case 16: return "Duke"; case 17: return "Lady"; case 18: return "Dame"; case 19: return "Dudette"; case 20: return "Baroness"; case 21: return "Countess"; case 22: return "Overlordess"; case 23: return "Duchess"; case 24: return "Queen"; } return ""; } [/CODE] Now you have the command, enjoy the tutorial. Please report me all errors I made this out of my head without testing. If you want to change the titles search in the character file <loyalty> and change the value or use the command. Ask me if you want me to make it work with gender and rest. Credits - Apache Ah64 - Jagex
  17. Does anyone have the colours for runescapes user titles? for example <shad=ee0000> or is it html colour codes or what so i can get it myself :L
  18. Ok so this is whats happeneing... An item on Useage (AKA Option 1) like Spade in InventoryOptionsHandler you simply make these: [CODE] if (itemId == 19065) {// clue scroll box (medium) player.setTitle("<col=00FFFF>SuperSexy</col> "); player.getAppearence().generateAppearenceData(); player.getPackets().sendGameMessage("You gain the title SuperSexy!"); player.getInventory().deleteItem(19065, 1); return; } if (itemId == 19066) {// clue scroll box (medium) player.setTitle("<col=00FFFF>TheSlayer</col> "); player.getAppearence().generateAppearenceData(); player.getPackets().sendGameMessage("You gain the title TheSlayer!"); player.getInventory().deleteItem(19066, 1); return; } if (itemId == 19067) {// clue scroll box (medium) player.setTitle("<col=00FFFF>Donator</col> "); player.getAppearence().generateAppearenceData(); player.getPackets().sendGameMessage("You gain the title Donator!"); player.getInventory().deleteItem(19067, 1); return; } if (itemId == 19068) {// clue scroll box (medium) player.setTitle("<col=00FFFF>PwnerOfNoobs</col> "); player.getAppearence().generateAppearenceData(); player.getPackets().sendGameMessage("You gain the title PwnerOfNoobs!"); player.getInventory().deleteItem(19068, 1); return; } if (itemId == 19069) {// clue scroll box (medium) player.setTitle("<col=00FFFF>FantasyHero</col> "); player.getAppearence().generateAppearenceData(); player.getPackets().sendGameMessage("You gain the title FantasyHero!"); player.getInventory().deleteItem(19069, 1); return; } if (itemId == 19070) {// clue scroll box (medium) player.setTitle("<col=00FFFF>GrandChamp</col> "); player.getAppearence().generateAppearenceData(); player.getPackets().sendGameMessage("You gain the title GrandChamp!"); player.getInventory().deleteItem(19070, 1); return; } if (itemId == 19071) {// clue scroll box (medium) player.setTitle("<col=00FFFF>DonkeyPuncher</col> "); player.getAppearence().generateAppearenceData(); player.getPackets().sendGameMessage("You gain the title DonkeyPuncher!"); player.getInventory().deleteItem(19071, 1); return; } if (itemId == 19072) {// clue scroll box (medium) player.setTitle("<col=00FFFF>KingOfNoobs</col> "); player.getAppearence().generateAppearenceData(); player.getPackets().sendGameMessage("You gain the title KingOfNoobs!"); player.getInventory().deleteItem(19072, 1); return; } if (itemId == 19073) {// clue scroll box (medium) player.setTitle("<col=00FFFF>TaintedOne</col> "); player.getAppearence().generateAppearenceData(); player.getPackets().sendGameMessage("You gain the title TaintedOne!"); player.getInventory().deleteItem(19073, 1); return; } if (itemId == 19074) {// clue scroll box (medium) player.setTitle("<col=00FFFF>GanjaLord</col> "); player.getAppearence().generateAppearenceData(); player.getPackets().sendGameMessage("You gain the title GanjaLord"); player.getInventory().deleteItem(19074, 1); return; } if (itemId == 19075) {// clue scroll box (medium) player.setTitle("<col=00FFFF>DeathMaster</col> "); player.getAppearence().generateAppearenceData(); player.getPackets().sendGameMessage("You gain the title DeathMaster"); player.getInventory().deleteItem(19075, 1); return; } [/CODE] And ur done!! well that is if youve got the right files in your source giving these titles.... lol its not like the ::title command its a rip and customization from the ::settitle command that was released i just figured to give these out lol instead of seeing a bunch of ppl with a mile long title lol I know this is easy to do but this is for those who cannot figure it out so dont be a dick and say oh wow look its so simple lol so just let ppl use this and dont QQ...
  19. Hey guys I am having alot of difficulty with adding loyalty titles. If any of you guys could help me that would be great and I would ++rep you! Id be so thankful if one of you guys could help me. :) Anyways, here my error. I took a picture of it: [url]http://i1053.photobucket.com/albums/s469/uiotube/Help.jpg[/url] Here are some pictures of my coding (Each one is different): [url]http://i1053.photobucket.com/albums/s469/uiotube/Helpful4.jpg[/url] [url]http://i1053.photobucket.com/albums/s469/uiotube/Helpful3.jpg[/url] [url]http://i1053.photobucket.com/albums/s469/uiotube/Helpful2.jpg[/url] [url]http://i1053.photobucket.com/albums/s469/uiotube/Helpful.jpg[/url] So that is my problem following along with my error. My skype name is: uiotube Also, I have teamviewer for those that might ask. Please help me! Thanks guys!
  20. Hey, i want it so that I can do ::changetitle (titlehere) for my yell, thanks. Colours would be great
  21. hey, little question where can i change the mobi arms titles? like changing junior cadet to for instance the boss. i tried searching for playerupdate.java no success, tried searching for gpi.java no success. im using a 667/704 (disturbed source) so if anyone could give me some directions that would be appreciated.
  22. i added them even with a command, but when i give a title the person has to relog to see the title, how does i make the command that when you give it to the person it refresh the acc you when i did ::giveloyalty 41 x, he will sees it in the chatarea???
  23. Hey guys Iv'e looking for how to add custome titles for 639 you know like Owner with Red and stuff like that can someone please help me with this Thanks.
  24. hey guys, im using InsanityX Base, and im trying to add loyalty titles in chatbox... using this tutorial : [url]http://www.rune-server.org/runescape-development/rs2-client/snippets/368755-loyalty-titles-chatbox-colour.html[/url] basically, i added it but i have a little error .. heress a pic : [IMG]http://i.imgur.com/SrJhK.png[/IMG] i need someone to teamview me and possible fix it ? Thanks in advance ...
×