Jump to content

Search the Community

Showing results for tags 'sided'.



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 37 results

  1. PI 317 whoeven can make me motivote server sided with rewards sided pm me - will pay
  2. In this quick little tutorial I will be showing you how you can change any text that currently says 'Runescape' or a server name that you don't want, into whatever you want it actually to be - typically your servers name. Also please bare in mind any custom added interfaces in RsInterface may also contain different text to what you want, so take a look around in there too. [CENTER][B][U][SIZE=3][COLOR="#FF0000"]Changing your client name:[/COLOR][/SIZE][/U][/B][/CENTER] [I]So to do what we stated above, simple follow the below steps:[/I] 1. Open up Rsinterface.java and search for "[I][B]if(rsInterface.type == 3)[/B][/I]" and you should see a bunch of if statements similar to that, but simple just add the below code underneath what we searched for. [CODE] if (rsInterface.type == 4) { rsInterface.message = stream.readString().replaceAll( "RuneScape", "Server Name"); rsInterface.aString228 = stream.readString(); } [/CODE] 2. Change the "Server Name" to whatever you want! 3. Go to RSFrame.java and look for something that looks like this: "setTitle("Notoriou's Client");" 4. Change the title string to whatever you want the frame of your client to be named, the chances are that this code is already there so simply just change it and your done! [img]http://puu.sh/96IP4/a3c9478c82.jpg[/img] [img]http://puu.sh/96IYO/c5fa5d6acc.png[/img] [CENTER][B][U][SIZE=3][COLOR="#FF0000"]Changing your Cache name:[/COLOR][/SIZE][/U][/B][/CENTER] Now that we have changed all of the names of your client we should most likely also do it for the cache itself, [I]complete the following steps to do so:[/I] 1. Open up Signlink.java 2. Find "public static String findcachedir()" 3. This method finds whether you have a cache of the name you set already created, if not it will create the cache. What we want to do is replace any strings of text from "/NotoriousCache/" or whatever it might be to what you want your cache to be named.. 4. Once you have changed the name of the cache in this method and possible in "public static String sencondDir()" you are done! [img]http://puu.sh/96K09/f2fd91eb9b.png[/img] I hope this helped you out, thanks for reading! - Raw Envy
  3. Now I know this was created before so before we begin credits to [URL="http://www.************.org/members/eclipse/"]Eclipse[/URL] [URL="http://www.************.org/runescape-development/rs2-server/snippets/498316-server-sided-money-vault-like-ss.html"]His Version[/URL] for the base I used. What You're Adding: [CENTER][video=youtube;Od6DAUCcuEw]http://www.youtube.com/watch?v=Od6DAUCcuEw&feature=youtube_gdata_player[/video][/CENTER] Okay so begin by creating a class called "MoneyVault" and replace everything in there with this: [CODE] package Kefalonia.content; import core.util.Misc; import Kefalonia.game.players.Client; public class MoneyVault { /** * [MENTION=75098]Para[/MENTION]m c - Client that's withdrawing the money * [MENTION=75098]Para[/MENTION]m amount - amount being withdrawn */ public static void withdraw(Client c, int amount) { String amt = Integer.toString(amount); if (amt.toLowerCase().contains("k")) { amt.replace("k", ""); amount = (Integer.parseInt(amt) * 1000); } if (amt.toLowerCase().contains("m")) { amt.replace("m", ""); amount = (Integer.parseInt(amt) * 1000000); } if (amt.toLowerCase().contains("b")) { amt.replace("b", ""); amount = (Integer.parseInt(amt) * 1000000000); } if (c.moneyVault >= amount) { if ((c.getItems().getItemAmount(995) + amount) > 2147000000) { c.sendMessage("Please bank your money, withdrawing over max cash would make the difference disappear.", "C00000", "000000"); return; } if (amount >= 0) { c.sendMessage("Transaction Successful, You withdrew " + Misc.insertCommasToNumber(amt) + " coins out of your Money Vault!", "01C86F", "000000"); c.moneyVault -= amount; c.getItems().addItem(995, amount); sendBalance(c); c.getPA().sendFrame126("@[email protected] -"+Misc.insertCommasToNumber(Integer.toString(amount)), 8002); } else { c.sendMessage("You can't take out a negative amount!", "C00000", "000000"); } } else { c.sendMessage("You don't have that much!", "C00000", "000000"); } } /** * [MENTION=75098]Para[/MENTION]m c - client that's storing the coins * [MENTION=75098]Para[/MENTION]m amount - amount that's being stored in vault */ public static void deposit(Client c, int amount) { boolean addMoney = false; String amt = Integer.toString(amount); if (amt.toLowerCase().contains("k")) { amt.replace("k", ""); amount = (Integer.parseInt(amt) * 1000); } if (amt.toLowerCase().contains("m")) { amt.replace("m", ""); amount = (Integer.parseInt(amt) * 1000000); } if (amt.toLowerCase().contains("b")) { amt.replace("b", ""); amount = (Integer.parseInt(amt) * 1000000000); } if (c.getItems().playerHasItem(995, amount)) { if (c.moneyVault >= 2147000000 || (c.moneyVault + amount >= 2147000001)) { c.sendMessage("You bank cannot hold that much. The max it holds is 2,147,000 GP.", "C00000", "000000"); return; } if (amount >= 0) { c.sendMessage("Transaction Successful, You have deposited " + Misc.insertCommasToNumber(amt) + " coins to your Money Vault!", "01C86F", "000000"); c.getItems().deleteItem(995, amount); addMoney = true; } else { c.sendMessage("You can't store negative amounts!", "C00000", "000000"); } if (addMoney) { c.moneyVault += amount; sendBalance(c); c.getPA().sendFrame126("@[email protected] +"+Misc.insertCommasToNumber(Integer.toString(amount)), 8002); } } else { c.sendMessage("You don't have that much!", "C00000", "000000"); } } public static void sendBalance(Client c) { String balance = Long.toString(c.moneyVault); String extention = ""; int thousands = c.moneyVault / 1000; int millions = c.moneyVault / 1000000; int billions = c.moneyVault / 1000000000; if (c != null) { if (c.moneyVault > 0 && c.moneyVault <= 998) { extention = "GP"; /* * Displaying in the thousands */ } else if (c.moneyVault > 999 && c.moneyVault <= 999999) { extention = Integer.toString(thousands) + "K"; /* * Displaying in the millions */ } else if (c.moneyVault > 999999 && c.moneyVault <= 999999999) { extention = Integer.toString(millions) + "M"; /* * Displaying in the billions */ } else if (c.moneyVault > 999999999) { extention = Integer.toString(billions) + "B"; } c.getPA().sendFrame126("Last Transaction", 8002); c.getPA().sendFrame126(Misc.insertCommasToNumber(balance) + " (" + extention + ")", 8009); } } } [/CODE] [COLOR="#FF0000"]PLEASE REMEMBER, YOU MUST CHANGE THE IMPORTS AND PACKAGE![/COLOR] Next open Client.java and search for [CODE]public void initialize()[/CODE] somewhere in there place; Once again [COLOR="#FF0000"]REMEMBER YOUR IMPORT![/COLOR] [CODE]MoneyVault.sendBalance(this);[/CODE] Still in Client.java add (Credits to [URL="http://www.************.org/members/jason/"]Jason[/URL] for the sendMessage(String s, String color) method) [CODE] public void sendMessage(String s, String color) { if (getOutStream() != null) { s = "<col="+color+">" + s + "</col>"; outStream.createFrameVarSize(253); outStream.writeString(s); outStream.endFrameVarSize(); } } public void sendMessage(String s, String color, String shadow) { if (getOutStream() != null) { s = "<col="+color+"><shad="+shadow+"> " + s + "</shad></col>"; outStream.createFrameVarSize(253); outStream.writeString(s); outStream.endFrameVarSize(); } } [/CODE] Now your done with Client.java, Open PlayerSave.java Add this: [CODE]} else if (token.equals("storedMoney")) { p.moneyVault = Integer.parseInt(token2);[/CODE] and this: [CODE]characterfile.write("storedMoney = ", 0, 14); characterfile.write(Integer.toString(p.moneyVault), 0, Integer .toString(p.moneyVault).length()); characterfile.newLine();[/CODE] Your all done, if I missed something or you have an error post it, I'll help ASAP! [COLOR="#00FF00"]Client Sided:[/COLOR] [URL="http://www.runelocus.com/forums/showthread.php?101632-Money-Vault-(First-Interface-I-ve-Ever-Made)l"]http://www.runelocus.com/forums/showthread.php?101632-Money-Vault-(First-Interface-I-ve-Ever-Made)[/URL]
  4. Okay... I'm just gonna get right to it. Client class and search for "Welcome to" and beneath that add [CODE]if (voteTimer > 0) { sendMessage("You have already voted, you will have to wait "+voteTimer+" seconds."); } else { sendMessage("Please type ::vote to recieve 5M every 24 hours!"); }[/CODE] same class find process method and add [CODE]if (voteTimer > 0) { voteTimer--; }[/CODE] open player.java and add [CODE]public int voteTimer = 0;[/CODE] now open commands class and add [CODE]f (playerCommand.startsWith("vote")) { if (c.voteTimer == 0) { c.getPA().sendFrame126("www.runelocus.com/toplist", 12000); c.getItems().addItem(995, 5000000); c.sendMessage("Thank you for voting for Rune-Regrets."); c.sendMessage("5M has been added to your inventory."); c.voteTimer = 86400; } else { c.sendMessage("You have already voted today, try again in "+c.voteTimer+" seconds."); } }[/CODE] now open playersave and add [CODE]} else if (token.equals("vote-timer")) { p.voteTimer = Integer.parseInt(token2);[/CODE] and [CODE]characterfile.write("vote-timer = ", 0, 13); characterfile.write(Integer.toString(p.voteTimer), 0, Integer.toString(p.voteTimer).length()); characterfile.newLine();[/CODE] Thanks ;)
  5. So now i have my votes ,highscores , donate Votes = GTL Highscores = mjaka Donate = Shaq I linked the vote i did the call backs etc..And server sided it tells me The last packet successfully received from the server was 1,392,931,563,664 milliseconds ago. The last packet sent successfully to the server was 0 milliseconds ago. It tells me the same thing with my HS and donate but different seconds
  6. I want to change items names. I have already done so server sided and there is no class8.java so i dont know how to change the name. I want to change the name of fist of guthix tokens thank you :/
  7. Alright so I'm not 100% but I believe this is coming from the server side and not the client. I'm adding a new monster teleport interface and somewhere it must be off slightly because when I go to the second teleport page it has Thessalia's Makeovers [Legs] interface lol. and since the code for that is 0 it must just be off a little somewhere. I can't seem to find the spot maybe one of you guys have a better eye. Cheers [IMG]http://i43.tinypic.com/20u5nit.png[/img] [code]//Monster Teleports Start case 132211: c.getPA().spellTeleport(2676, 3715, 0); if(c.playerMagicBook == 0) { c.setSidebarInterface(6, 1151); //modern } else if(c.playerMagicBook == 1){ c.setSidebarInterface(6, 12855); // ancient } else { c.setSidebarInterface(6, 16640); } break; case 132214: c.getPA().spellTeleport(2884, 9798, 0); if(c.playerMagicBook == 0) { c.setSidebarInterface(6, 1151); //modern } else if(c.playerMagicBook == 1){ c.setSidebarInterface(6, 12855); // ancient } else { c.setSidebarInterface(6, 16640); } break; case 132217: c.getPA().spellTeleport(3428, 3537, 0); if(c.playerMagicBook == 0) { c.setSidebarInterface(6, 1151); //modern } else if(c.playerMagicBook == 1){ c.setSidebarInterface(6, 12855); // ancient } else { c.setSidebarInterface(6, 16640); } break; case 132220: c.getPA().spellTeleport(2710, 9466, 0); c.sendMessage("You have teleported to Brimhaven Dungeon, be sure to bring an antifire-shield!"); if(c.playerMagicBook == 0) { c.setSidebarInterface(6, 1151); //modern } else if(c.playerMagicBook == 1){ c.setSidebarInterface(6, 12855); //ancient } else { c.setSidebarInterface(6, 16640); //Lunar } break; case 132227: if(c.playerMagicBook == 0) { c.setSidebarInterface(6, 1151); //modern } else if(c.playerMagicBook == 1){ c.setSidebarInterface(6, 12855); //ancient } else { c.setSidebarInterface(6, 16640); //Lunar } break; case 132230: c.setSidebarInterface(6, 39000); break; case 152099: if(c.playerMagicBook == 0) { c.setSidebarInterface(6, 1151); //modern } else if(c.playerMagicBook == 1){ c.setSidebarInterface(6, 12855); //ancient } else { c.setSidebarInterface(6, 16640); //Lunar } break; case 152102: c.setSidebarInterface(6, 34000); break; case 152091: c.getPA().spellTeleport(3109, 9832, 0); if(c.playerMagicBook == 0) { c.setSidebarInterface(6, 1151); //modern } else if(c.playerMagicBook == 1){ c.setSidebarInterface(6, 12855); // ancient } else { c.setSidebarInterface(6, 16640); } break; case 152094: c.getPA().spellTeleport(2327, 9899, 0); if(c.playerMagicBook == 0) { c.setSidebarInterface(6, 1151); //modern } else if(c.playerMagicBook == 1){ c.setSidebarInterface(6, 12855); // ancient } else { c.setSidebarInterface(6, 16640); } break; //Monster Teleports end[/code]
  8. jmk169

    client sided problem

    ok so i port forwarded and all that good stuff, i got the no-ip set up and according to the server status tool its online, but when i change the ip in loader.java to my no-ip it wont let me or other people connect, i can connect using my 127.0.0.1 ip but thats not important im wondering if i need to add a cache downloader into the jar file or if something else is wrong, if anyone can help please post and if u need anymore info just lmk thanks
  9. I'm willing to pay 10$ for someone to set up an automatic voting system for my server! with MYSQL and server,client sided coding done... Please add my skype, I will be the first skype account to apear: Hamza-ftw TY.
  10. recently added fading bgs but the sprite that is being changed it drawn at the wrong coords and i cant seem to figure out where to edit the coords [IMG]http://i45.tinypic.com/2u8uxdi.png[/IMG] yes i have tried messing around with the numbers in both the method and drawing part here my drawing part [CODE]if (count == 0) { Sprite sprite = new Sprite("Background/BG " + backgroundCount); sprite.drawSpriteWithOpacity(0, 0, opacityCount); if(backgroundCount == 6) backgroundCount = 0; else backgroundCount++; } if (count >= 100) { opacityCount++; Sprite sprite = new Sprite("Background/BG " + backgroundCount); sprite.drawSpriteWithOpacity(0, 0, opacityCount); } if (count == 250) { count = 0; opacityCount = 0; } else { count++; }[/CODE] any ideas?
  11. title says it all guys, if you can do it lemme know and we will work something out, I do not know php/html hence why I'm posting for help on this copied from my old thread: "so ive looked everywhere through my source, using rs2hd, anyways im trying to edit the inventory size of the familiar once its summoned, at the moment they all have 20... i have edited everything i can find for the summoning familiar inventory size so yea im stumped and need help its the old TKOScape if i remember correctly"
  12. I'm using the RuneLocus starter kit Source and Client. I followed all the steps, and have portfowarded. Now on the Tutorial on how to portfoward didn't specify what to put in the last part of the Ip box, Directly left of the enable, so I just put "192.168.1.100" 100 being the un-specified number. If you think you have a solution, Please Skype me at Jwells701, And if we resolve this issue, I can offer your RSGP if anyone still plays that.[ATTACH=CONFIG]7376[/ATTACH] Also, I don't know how to really explain this, but, How do I set up a Ip to connect into my server? Download No-Ip?
  13. I am in need of server sided work. I will pay for: Variety of skills Lag/Dc reduction, z508 Anti leech Small bug fixes and more is needed, but those are the main ones. I will pay a very reasonable price. If you can do any of those, or any other z508 work please post or pm me skype or msn name and we can discuss things. Revision: z508 Base: CodeUsa
  14. For the most part I can connect to the server but in exchange of that theres no map data for downloadable clients, seeing how the players of the server connect through a webclient instead i'm wondering if theres a fix for this issue, other than make my own webclient.[ATTACH=CONFIG]6700[/ATTACH]
  15. I can't figure out how to delete the mysql database from my old server so I can play on it. When I try to play on it, it gives me tons of mysql errors. Hopefully the video will explain more about what I'm talking about. [url]http://www.youtube.com/watch?v=tYd9uf-Bq5A[/url]
  16. [b]*Client Sided*[/b] Replace your Skills Class with the following code: [code]final class Skills { public static int skillsCount = 25; public static String skillNames[] = { "attack", "defence", "strength", "hitpoints", "ranged", "prayer", "magic", "cooking", "woodcutting", "fletching", "fishing", "firemaking", "crafting", "smithing", "mining", "herblore", "agility", "thieving", "slayer", "farming", "runecraft", "construction", "hunter", "summoning", "dungeoneering" }; public static boolean skillEnabled[] = { true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true }; }[/code] Add this following code in your Client class: [code]public int getXPForLevel(int level) { int points = 0; int output = 0; for (int lvl = 1; lvl <= level; lvl++) { points += Math.floor(lvl + 300.0 * Math.pow(2.0, lvl / 7.0)); if (lvl >= level) { return output; } output = (int)Math.floor(points / 4); } return 0; } public String[] skillNames = { "Attack", "Hitpoints", "Mining", "Strength", "Agility", "Smithing", "Defence", "Herblore", "Fishing", "Range", "Thieving", "Cooking", "Prayer", "Crafting", "Firemaking", "Magic", "Fletching", "Woodcutting", "Runecrafting", "Slayer", "Farming", "Construction", "Hunter", "Summoning", "Dungeoneering" }; public String setMessage(int level){ String[] messages = new String[4]; String message = ""; int maxLevel = 99; if(maxStats[level] > maxLevel){ if(level != 24){ maxStats[level] = 99; } else if(maxStats[level] > 120){ maxStats[level] = 120; } } int[] stuff = {0,3,14,2,16,13,1,15,10,4,17,7,5,12,11,6,9,8,20,18,19,21,22,23,24}; messages[0] = skillNames[level]+": "+currentStats[stuff[level]]+"/"+maxStats[stuff[level]]+"\\n"; messages[1] = "Current XP: " + getXPForLevel(maxStats[stuff[level]])+"\\n"; messages[2]= "Remainder: "+ (getXPForLevel(maxStats[stuff[level]]+1)-getXPForLevel(maxStats[stuff[level]]))+"\\n"; messages[3]= "Next level: "+ getXPForLevel(maxStats[stuff[level]]+1); message = messages[0] + messages[1] + messages[2] + messages[3]; return message; }[/code] Still in the Client class, find the following void: [quote]void drawFriendsListOrWelcomeScreen[/quote] Add the following code in that method: [code]if(j >= 206 && j <= 206+25){ j -= 206; class9.message = setMessage(j); return; }[/code] Now in your RSInterface class find the following: [quote]aClass44 = streamLoader_1;[/quote] Now right below it add this code: [code]skillTab602(textDrawingAreas);[/code] Now add the following methods for your SkillTab: [code]public static void skillTab602(TextDrawingArea[] TDA) { RSInterface skill = addInterface(3917); addText(27203, "99", 0xFFFF00, false, true, -1, TDA, 0); addText(27204, "99", 0xFFFF00, false, true, -1, TDA, 0); addText(27205, "99", 0xFFFF00, false, true, -1, TDA, 0); addText(27206, "99", 0xFFFF00, false, true, -1, TDA, 0); skill.totalChildren(4); skill.child(0, 27203, 158, 175); skill.child(1, 27204, 171, 186); skill.child(2, 27205, 158, 203); skill.child(3, 27206, 171, 214); String[] spriteNames = { "Attack", "HP", "Mine", "Strength", "Agility", "Smith", "Defence", "Herblore", "Fish", "Range", "Thief", "Cook", "Prayer", "Craft", "Fire", "Mage", "Fletch", "Wood", "Rune", "Slay", "Farm", "Construction", "Hunter", "Summon", "Dungeon" }; int[] buttons = { 27207, 27208, 27209, 27210, 27211, 27212, 27213, 27214, 27215, 27216, 27217, 27218, 27219, 27220, 27221, 27222, 27223, 27224, 27225, 27226, 27231, 27232, 27233, 27234, 27235 }; int[] hovers = { 4040, 4076, 4112, 4046, 4082, 4118, 4052, 4088, 4124, 4058, 4094, 4130, 4064, 4100, 4136, 4070, 4106, 4142, 4160, 2832, 13917, 19005, 19006, 19007, 19008 }; int[][] text = { { 4004, 4005 }, { 4016, 4017 }, { 4028, 4029 }, { 4006, 4007 }, { 4018, 4019 }, { 4030, 4031 }, { 4008, 4009 }, { 4020, 4021 }, { 4032, 4033 }, { 4010, 4011 }, { 4022, 4023 }, { 4034, 4035 }, { 4012, 4013 }, { 4024, 4025 }, { 4036, 4037 }, { 4014, 4015 }, { 4026, 4027 }, { 4038, 4039 }, { 4152, 4153 }, { 12166, 12167 }, { 13926, 13927 }, { 18165, 18169 }, { 18166, 18170 }, { 18167, 18171 }, { 18168, 18172 } }; int[] icons = { 3965, 3966, 3967, 3968, 3969, 3970, 3971, 3972, 3973, 3974, 3975, 3976, 3977, 3978, 3979, 3980, 3981, 3982, 4151, 12165, 13925, 27227, 27228, 27229, 27230 }; int[][] buttonCoords = { { 4, 4 }, { 66, 4 }, { 128, 4 }, { 4, 32 }, { 66, 32 }, { 128, 32 }, { 4, 60 }, { 66, 60 }, { 128, 60 }, { 4, 88 }, { 66, 88 }, { 128, 88 }, { 4, 116 }, { 66, 116 }, { 128, 116 }, { 4, 144 }, { 66, 144 }, { 128, 144 }, { 4, 172 }, { 66, 172 }, { 128, 172 }, { 4, 200 }, { 66, 200 }, { 128, 200 }, { 4, 229 } }; int[][] iconCoords = { { 6, 6 }, { 69, 7 }, { 131, 6 }, { 9, 34 }, { 68, 33 }, { 131, 36 }, { 9, 64 }, { 67, 63 }, { 131, 61 }, { 7, 91 }, { 68, 94 }, { 133, 90 }, { 6, 118 }, { 70, 120 }, { 130, 118 }, { 6, 147 }, { 69, 146 }, { 132, 146 }, { 6, 173 }, { 69, 173 }, { 130, 174 }, { 6, 202 }, { 69, 201 }, { 131, 202 }, { 6, 230 } }; int[][] textCoords = { { 31, 7, 44, 18 }, { 93, 7, 106, 18 }, { 155, 7, 168, 18 }, { 31, 35, 44, 46 }, { 93, 35, 106, 46 }, { 155, 35, 168, 46 }, { 31, 63, 44, 74 }, { 93, 63, 106, 74 }, { 155, 63, 168, 74 }, { 31, 91, 44, 102 }, { 93, 91, 106, 102 }, { 155, 91, 168, 102 }, { 31, 119, 44, 130 }, { 93, 119, 106, 130 }, { 155, 119, 168, 130 }, { 31, 147, 44, 158 }, { 93, 147, 106, 158 }, { 155, 147, 168, 158 }, { 31, 175, 44, 186 }, { 93, 175, 106, 186 }, { 155, 175, 168, 186 }, { 32, 203, 45, 214 }, { 94, 203, 107, 214 }, { 156, 203, 169, 214 }, { 32, 231, 45, 242 } }; int[][] newText = { { 18165, 18166, 18167, 18168 }, { 18169, 18170, 18171, 18172 }, { 27223, 27224, 27225, 27226 } }; for (int i = 0; i < hovers.length; i++) { createSkillHover(hovers[i], 206 + i); //addTooltipBox(hovers[i], 205 + i); addSkillButton(buttons[i]); addImage(icons[i], spriteNames[i]); } for (int i = 0; i < 4; i++) { addSkillText(newText[0][i], false, i + 21); addSkillText(newText[1][i], true, i + 21); } skill.children(icons.length + (text.length * 2) + hovers.length + buttons.length + 1); int frame = 0; RSInterface totalLevel = interfaceCache[3984]; totalLevel.message = "@[email protected] level: %1"; totalLevel.textDrawingAreas = fonts[2]; skill.child(frame, 3984, 94, 237); frame++; for (int i = 0; i < buttons.length; i++) { skill.child(frame, buttons[i], buttonCoords[i][0], buttonCoords[i][1]); frame++; } for (int i = 0; i < icons.length; i++) { skill.child(frame, icons[i], iconCoords[i][0], iconCoords[i][1]); frame++; } for (int i = 0; i < text.length; i++) { skill.child(frame, text[i][0], textCoords[i][0], textCoords[i][1]); frame++; } for (int i = 0; i < text.length; i++) { skill.child(frame, text[i][1], textCoords[i][2], textCoords[i][3]); frame++; } for (int i = 0; i < hovers.length; i++) { skill.child(frame, hovers[i], buttonCoords[i][0], buttonCoords[i][1]); frame++; } } public void children(int total) { children = new int[total]; childX = new int[total]; childY = new int[total]; } public static void createSkillHover(int id, int x) { RSInterface hover = addInterface(id); hover.type = 8; hover.message = "TESTING!"; hover.contentType = x; hover.width = 60; hover.height = 28; hover.inventoryHover = true; } public static void addImage(int id, String s) { RSInterface image = addInterface(id); image.type = 5; image.atActionType = 0; image.contentType = 0; image.width = 100; image.height = 100; image.sprite1 = getSprite(s); } public static void addSkillText(int id, boolean max, int skill) { RSInterface text = addInterface(id); text.id = id; text.parentID = id; text.type = 4; text.atActionType = 0; text.width = 15; text.height = 12; text.centerText = true; text.textShadow = true; text.textColor = 16776960; text.textDrawingAreas = fonts[0]; if (!max) { text.valueIndexArray = new int[1][]; text.valueIndexArray[0] = new int[3]; text.valueIndexArray[0][0] = 1; text.valueIndexArray[0][1] = skill; text.valueIndexArray[0][2] = 0; } else { text.valueIndexArray = new int[2][]; text.valueIndexArray[0] = new int[3]; text.valueIndexArray[0][0] = 1; text.valueIndexArray[0][1] = skill; text.valueIndexArray[0][2] = 0; text.valueIndexArray[1] = new int[1]; text.valueIndexArray[1][0] = 0; } text.message = "%1"; } public static Sprite getSprite(String s) { Sprite image; try { image = new Sprite("/Skill/" + s); if (image != null) { return image; } } catch (Exception e) { e.printStackTrace(); return null; } return image; } public boolean inventoryHover;[/code] Download and extract the following sprites in your Sprites folder which should be found in the cache: [url]http://www.mediafire.com/?n9jpla6je4hk4bd[/url] [b]*Server Sided*[/b] In your PlayerAssisstant class, find the following void: [quote]void refreshSkill[/quote] Now at the far end of this method you should see "case 20:" after the break; in that case add this following code: [code]case 21://Hunter sendFrame126("@[email protected]" + c.playerLevel[21] + "", 18166); sendFrame126("@[email protected]" + c.playerLevel[21] + "", 18170); break; case 22: //construction sendFrame126("@[email protected]" + c.playerLevel[22] + "", 18165); sendFrame126("@[email protected]" + c.playerLevel[22] + "", 18169); break; case 23: //summoning sendFrame126("@[email protected]" + c.playerLevel[23] + "", 18167); sendFrame126("@[email protected]" + c.playerLevel[23] + "", 18171); sendFrame126("" + c.playerXP[23] + "", 29803); break; case 24: //Dungeoneering sendFrame126("@[email protected]" + c.playerLevel[24] + "", 18168); sendFrame126("@[email protected]" + c.playerLevel[24] + "", 18172); break;[/code] Now in your Client class, introduce the following method: [code]public void RefreshAllSkills() { for (int i = 0; i < 25; i++) { getPA().setSkillLevel(i, playerLevel[i], playerXP[i]); getPA().refreshSkill(i); } }[/code] Still in Client class find the following void: [quote]void destruct[/quote] Right below [quote]Misc.println("[DEREGISTERED]: "+playerName+"");[/quote] Add this: [code]RefreshAllSkills();[/code] Find the following method: [quote]void initialize[/quote] At the far bottom of this method right after: [quote]getPA().clearClanChat(); getPA().resetFollow(); getPA().sendFrame36(172, autoRet); getPA().sendFrame36(173, isRunning2 ? 1 : 0);[/quote] Add the following: [code]RefreshAllSkills();[/code] A picture of the skill-tab with all skills appearing perfectly: [img]http://screensnapr.com/e/w8Euy6.jpg[/img]
  17. Hello So Iv Been Wondering How We Could Change The OpCodes For The Caches that we are using , please dont flame Thanks :=)
  18. Theres any way i can replace the "XP" button with those: [img]http://gyazo.com/1d07c4deef21a7a1c32b558090020006.png?1344049576[/img] By typing a command or even sending it at login?
  19. hello guys, as some of you know "matrix" is released. so i downloaded the source , the cache and the client. but then..... the client fully loads till 100% but when it is on 100% it sais this [CODE]Error: eg.x() oc.k() ps.i() fb.d() lk.a() client.er() client.ae() mc.m() mc.e() | IComponentDefinition.method1110:364 Class338.method4115:83 Class378.method4671 :40 Class125.method1401:641 Class275.method2573:59 client.method2806:3711 client .method2773:653 Class291.method2764:641 Class291.method2759:457 Class291.run:384 java.lang.Thread.run | java.lang.ArrayIndexOutOfBoundsException: -1 | 0,0,0,0 0,0,0, 0 0 2 765,503 1 2 2 1 0 0 854 7 3834 hAJWGrsaETglRjuwxMwnlA/d5W6EgYWx java.io.FileNotFoundException: http://127.0.0.1/clienterror.ws?c=718&cs=1&u=0&v1 =Oracle+Corporation&v2=1.7.0_04&e=eg.x%28%29+oc.k%28%29+ps.i%28%29+fb.d%28%29+lk .a%28%29+client.er%28%29+client.ae%28%29+mc.m%28%29+mc.e%28%29+%7C+IComponentDef inition.method1110%3A364+Class338.method4115%3A83+Class378.method4671%3A40+Class 125.method1401%3A641+Class275.method2573%3A59+client.method2806%3A3711+client.me thod2773%3A653+Class291.method2764%3A641+Class291.method2759%3A457+Class291.run% 3A384+java.lang.Thread.run+%7C+java.lang.ArrayIndexOutOfBoundsException%3A+-1+%7 C++0%2C0%2C0%2C0+0%2C0%2C0%2C+0+0+2+765%2C503+1+2+2+1+0+0+854+7+3834+hAJWGrsaETg lRjuwxMwnlA%2Fd5W6EgYWx at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown So urce) at java.net.URL.openStream(Unknown Source) at IPAddress.method6062(IPAddress.java:171) at Class291.run(Class291.java:388) at java.lang.Thread.run(Unknown Source) error_game_crash[/CODE] i have no idea what the problem is, please tell me. have a nice day.
  20. Most people know how to spawn objects server sided, but there is that split second to remove/load objects when entering a new region. I'd rather the client load and remove the objects. Heres what I have so far: [CODE] public static int mapRegionsX; public static int mapRegionsY; public void addObject(int x, int y, int objectId, int face, int type, int height) { int mX = mapRegionsX - 6; int mY = mapRegionsY - 6; int x2 = x - (mX * 8); int y2 = y - (mY * 8); int i15 = 40 >> 2; int l17 = anIntArray1177[i15]; if(y2 > 0 && y2 < 103 && x2 > 0 && x2 < 103) { method130(-1, objectId, face, l17, y2, type, height, x2, 0); } } public void loadNewObjects() { addObject(3224, 3218, 13667, 1, 10, 0); } [/CODE] I put the method loadNewObjects() in method22() My packet 73: [CODE] if (packetOpcode == 73) { l2 = mapRegionsX; i11 = mapRegionsY; aBoolean1159 = false; }[/CODE] Right now the object doesnt spawn, but it is passing through the loadobjectspawn on loading regions. Can someone explain how to spawn them correctly using Map regions and local coords? SOLVED CLOSE THREAD :)
  21. I need someone to help me with the client sided stuff in my server! add me on skype! embodied.pkz
  22. I have vote4auth on website, not in the server, can someone help? I can possible reward you with $$. skype is x25xquinton.
  23. [img]http://www.runelocus.com/forums/attachment.php?attachmentid=5259&d=1335488520[/img] How do I get rid of the "<col>" code recognition so it does not appear? BTW - this is not from a tutorial it just came with the client, I hate it, but any help would be appreciated.
  24. This is the error I get when I compile the server: [CODE]starting... src\com\rs\game\player\Player.java:295: error: cannot find symbol String urlString = "http://www.excision704.com/check_vote/call_back.php?ip="+IP+ "&id="+serverid+""; ^ symbol: variable serverid location: class Player src\com\rs\game\player\Player.java:307: error: cannot find symbol sm("Our system couldn't find your vote, you might not have voted yet."); ^ symbol: method sm(String) location: class Player src\com\rs\game\player\Player.java:321: error: cannot find symbol BufferedReader reader = new BufferedReader(new InputStreamReader(url.openStream( ))); ^ symbol: variable url location: class Player src\com\rs\game\player\content\Commands.java:1883: error: cannot find symbol player.checkVote(player.getUsername(), player.ge tSession().getRemoteAddress().toString().substring(1).split(":")[0]); ^ symbol: method getRemoteAddress() location: class Session Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 4 errors Press any key to continue . . .[/CODE] Do you guys have any idea on how to fix this? [B][U][FONT=Arial Black][SIZE=6][COLOR="#FF0000"]NOW WILLING TO PAY TO HELP ME GET THIS TO 100% WORKING CONTACT ME ON SKYPE: Dylan.ryan94[/COLOR][/SIZE][/FONT][/U][/B]
  25. We've tried everything to get the client's in the client sided side of the part, to work. We've edited it and tried to get it to work. It's not working, if someone can help me please reply below, i'll be more then happy to give you my team viewer id and pass so you can help me . PLEASE HELP!
×