Jump to content

Search the Community

Showing results for tags 'error'.



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 1,229 results

  1. Here is my itemdef with the int switch (itemdef.id) { case 11722: itemDef.femaleEquip1 = itemDef.maleEquip1; itemDef.femaleEquip2 = itemDef.maleEquip2; break; case 11740: { itemdef.modelID = 20087; itemdef.name = "Owner Wings"; itemdef.modelZoom = 850; itemdef.modelRotation1 = 252; itemdef.modelRotation2 = 1020; itemdef.modelOffset1 = -1; itemdef.modelOffset2 = 24; itemdef.anInt165 = 20086; itemdef.anInt165 = 20086; itemdef.groundActions = new String[5]; itemdef.groundActions[2] = "Take"; itemdef.itemActions = new String[5]; itemdef.itemActions[1] = "Wear"; itemdef.itemActions[4] = "Drop"; } When i try and compile it i get this error ItemDef.java:235: error: cannot find s switch (itemde ^ symbol: variable itemdef location: class ItemDef ItemDef.java:235: error: illegal start switch (itemde ^ ItemDef.java:243: error: cannot find s itemdef.modelID = 20087; ^ symbol: variable itemdef location: class ItemDef ItemDef.java:244: error: cannot find s itemdef.name = "Owner Wings"; ^ symbol: variable itemdef location: class ItemDef ItemDef.java:245: error: cannot find s itemdef.modelZoom = 850; ^ symbol: variable itemdef location: class ItemDef ItemDef.java:246: error: cannot find s itemdef.modelRotation1 = 252; ^ symbol: variable itemdef location: class ItemDef ItemDef.java:247: error: cannot find s itemdef.modelRotation2 = 1020; ^ symbol: variable itemdef location: class ItemDef ItemDef.java:248: error: cannot find s itemdef.modelOffset1 = -1; ^ symbol: variable itemdef location: class ItemDef ItemDef.java:249: error: cannot find s itemdef.modelOffset2 = 24; ^ symbol: variable itemdef location: class ItemDef ItemDef.java:250: error: cannot find s itemdef.anInt165 = 20086; ^ symbol: variable itemdef location: class ItemDef ItemDef.java:251: error: cannot find s itemdef.anInt165 = 20086; ^ symbol: variable itemdef location: class ItemDef ItemDef.java:252: error: cannot find s itemdef.groundActions = new String[5]; ^ symbol: variable itemdef location: class ItemDef ItemDef.java:253: error: cannot find s itemdef.groundActions[2] = "Take"; ^ symbol: variable itemdef location: class ItemDef ItemDef.java:254: error: cannot find s itemdef.itemActions = new String[5]; ^ symbol: variable itemdef location: class ItemDef ItemDef.java:255: error: cannot find s itemdef.itemActions[1] = "Wear"; ^ symbol: variable itemdef location: class ItemDef ItemDef.java:256: error: cannot find s itemdef.itemActions[4] = "Drop"; ^ symbol: variable itemdef location: class ItemDef Note: client.java uses unchecked or un Note: Recompile with -Xlint:unchecked 16 errors Press any key to continue . . . Any help would be awesome thanks guys.
  2. Mightyfail

    compiling error

    [CODE] Class30_Sub2_Sub4_Sub4.java:1: error: package sign does not exist import sign.signlink; ^ Class30_Sub2_Sub4_Sub5.java:1: error: package sign does not exist import sign.signlink; ^ Class46.java:1: error: package sign does not exist import sign.signlink; ^ Class34.java:1: error: package sign does not exist import sign.signlink; ^ Class35.java:1: error: package sign does not exist import sign.signlink; ^ Class36.java:1: error: package sign does not exist import sign.signlink; ^ Class37.java:2: error: package sign does not exist import sign.signlink; ^ Class38.java:2: error: package sign does not exist import sign.signlink; ^ Class4.java:1: error: package sign does not exist import sign.signlink; ^ Class41.java:2: error: package sign does not exist import sign.signlink; ^ Class50.java:1: error: package sign does not exist import sign.signlink; ^ Class8.java:1: error: package sign does not exist import sign.signlink; ^ Class1.java:55: error: cannot find symbol signlink.reporterror("91499, " + class30 + ", " + l + ", " + byte0 + ", " + runtimeexception.toString()); ^ symbol: variable signlink location: class Class1 Class12.java:60: error: cannot find symbol signlink.reporterror("47547, " + class30_sub2 + ", " + l + ", " + by te0 + ", " + runtimeexception.toString()); ^ symbol: variable signlink location: class Class12 Class30_Sub2_Sub2.java:176: error: cannot find symbol signlink.reporterror("14395, " + i + ", " + l + ", " + runtimeexcept ion.toString()); ^ symbol: variable signlink location: class Class30_Sub2_Sub2 client.java:40: error: cannot find symbol signlink.midifade = 0; ^ symbol: variable signlink location: class client client.java:41: error: cannot find symbol signlink.midi = "stop"; ^ symbol: variable signlink location: class client client.java:218: error: cannot find symbol signlink.storeid = 32; ^ symbol: variable signlink location: class client client.java:219: error: cannot find symbol signlink.startpriv(InetAddress.getLocalHost()); ^ symbol: variable signlink location: class client client.java:231: error: cannot find symbol if(signlink.mainapp != null) { ^ symbol: variable signlink location: class client client.java:232: error: cannot find symbol signlink.startthread(runnable, i); ^ symbol: variable signlink location: class client client.java:242: error: cannot find symbol if(signlink.mainapp != null) ^ symbol: variable signlink location: class client client.java:243: error: cannot find symbol return signlink.opensocket(i); ^ symbol: variable signlink location: class client client.java:348: error: cannot find symbol signlink.midifade = flag ? 1 : 0; ^ symbol: variable signlink location: class client client.java:349: error: cannot find symbol signlink.midisave(abyte0, abyte0.length); ^ symbol: variable signlink location: class client client.java:524: error: cannot find symbol if(aBoolean960 && signlink.cache_dat != null) ^ symbol: variable signlink location: class client client.java:732: error: cannot find symbol return signlink.wavereplay(); ^ symbol: variable signlink location: class client client.java:1081: error: cannot find symbol signlink.reporterror(aString1173 + " size mismatch in getnpcpos - po s:" + class30_sub2_sub2.anInt1406 + " psize:" + i); ^ symbol: variable signlink location: class client client.java:1087: error: cannot find symbol signlink.reporterror(aString1173 + " null entry in npc list - po s:" + i1 + " size:" + anInt836); ^ symbol: variable signlink location: class client client.java:1524: error: cannot find symbol signlink.reporterror("18622, " + flag + ", " + l + ", " + runtimeexc eption.toString()); ^ symbol: variable signlink location: class client client.java:1853: error: cannot find symbol signlink.reporterror("15283, " + byte0 + ", " + l + ", " + runtimeex ception.toString()); ^ symbol: variable signlink location: class client client.java:2435: error: cannot find symbol signlink.storeid = 32; ^ symbol: variable signlink location: class client client.java:2436: error: cannot find symbol signlink.startpriv(InetAddress.getLocalHost()); ^ symbol: variable signlink location: class client client.java:2470: error: cannot find symbol signlink.reporterror(aString1173 + " glcfb " + aLong1215 + "," + j + "," + aBoolean960 + "," + aClass14Array970[0] + "," + aClass42_Sub1_1068.me thod552() + "," + anInt918 + "," + anInt1069 + "," + anInt1070); ^ symbol: variable signlink location: class client client.java:2559: error: cannot find symbol if(signlink.mainapp != null) ^ symbol: variable signlink location: class client client.java:2560: error: package signlink does not exist return signlink.mainapp.getAppletContext(); ^ client.java:2734: error: cannot find symbol return signlink.wavesave(abyte0, i); ^ symbol: variable signlink location: class client client.java:3390: error: cannot find symbol if(!signlink.reporterror) ^ symbol: variable signlink location: class client client.java:3397: error: cannot find symbol if(!signlink.reporterror) ^ symbol: variable signlink location: class client client.java:3404: error: cannot find symbol if(!signlink.reporterror) ^ symbol: variable signlink location: class client client.java:4566: error: cannot find symbol signlink.reporterror = false; ^ symbol: variable signlink location: class client client.java:4720: error: cannot find symbol if(signlink.mainapp != null) ^ symbol: variable signlink location: class client client.java:4721: error: cannot find symbol return signlink.mainapp; ^ symbol: variable signlink location: class client client.java:5398: error: cannot find symbol class9.aString248 = "You last logged in " + s + " from: " + sign link.dns; ^ symbol: variable signlink location: class client client.java:5695: error: cannot find symbol if(signlink.mainapp != null) ^ symbol: variable signlink location: class client client.java:5696: error: package signlink does not exist return signlink.mainapp.getDocumentBase().getHost().toLowerCase(); ^ client.java:5807: error: cannot find symbol signlink.errorname = s; ^ symbol: variable signlink location: class client client.java:5845: error: cannot find symbol aClass30_Sub2_Sub2_1192.method402(signlink.uid); ^ symbol: variable signlink location: class client client.java:6715: error: cannot find symbol if(signlink.sunjava) ^ symbol: variable signlink location: class client client.java:6715: error: illegal start of type if(signlink.sunjava) ^ client.java:6725: error: cannot find symbol if(signlink.cache_dat != null) ^ symbol: variable signlink location: class client client.java:6729: error: cannot find symbol aClass14Array970[i] = new Class14(0xffffff, signlink.cache_dat, signlink.cache_idx[i], i + 1, true); ^ symbol: variable signlink location: class client client.java:6729: error: cannot find symbol aClass14Array970[i] = new Class14(0xffffff, signlink.cache_dat, signlink.cache_idx[i], i + 1, true); ^ symbol: variable signlink location: class client client.java:7119: error: cannot find symbol signlink.reporterror("loaderror " + aString1049 + " " + anInt1079); ^ symbol: variable signlink location: class client client.java:8549: error: cannot find symbol signlink.reporterror("glfc_ex " + ((Class30_Sub2_Sub4_Sub1) (aClass3 0_Sub2_Sub4_Sub1_Sub2_1126)).anInt1550 + "," + ((Class30_Sub2_Sub4_Sub1) (aClass 30_Sub2_Sub4_Sub1_Sub2_1126)).anInt1551 + "," + anInt1014 + "," + anInt1015 + ", " + anInt1069 + "," + anInt1070 + "," + anInt1034 + "," + anInt1035); ^ symbol: variable signlink location: class client client.java:8615: error: cannot find symbol signlink.wavevol = i; ^ symbol: variable signlink location: class client client.java:8726: error: cannot find symbol signlink.reporterror("45688, " + l + ", " + i + ", " + runtimeexcept ion.toString()); ^ symbol: variable signlink location: class client client.java:9104: error: cannot find symbol signlink.reporterror("47229, " + i + ", " + l + ", " + runtimeexcept ion.toString()); ^ symbol: variable signlink location: class client client.java:9111: error: cannot find symbol if(signlink.mainapp != null) ^ symbol: variable signlink location: class client client.java:9112: error: package signlink does not exist return signlink.mainapp.getParameter(s); ^ client.java:9123: error: cannot find symbol signlink.midivol = i; ^ symbol: variable signlink location: class client client.java:9125: error: cannot find symbol signlink.midi = "voladjust"; ^ symbol: variable signlink location: class client Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. 100 errors Press any key to continue . . . [/CODE] please help me fix this
  3. Hello I've looked all over for a firemaking coding but they don't really work. My problem is: my character will do the lighting animation but he will just keep bending and acting as if he is lighting. NO FIRE will come out! or log starting to get fire.... please take a look at mine and tell me what is missing and what I've done wrong. Thank you! [CODE]package server.model.players.skills; import server.Config; import server.model.players.Client; import server.model.objects.Objects; import server.Server; /** * Firemaking.java * * @author Sanity * **/ public class Firemaking { private Client c; private int[] logs = {1511,1521,1519,1517,1515,1513}; private int[] exp = {1,3,4,5,7,8}; private int[] level = {1,15,30,45,60,75}; public long lastLight; private int DELAY = 1250; public boolean resetAnim = true; public Firemaking(Client c) { this.c = c; } public void checkLogType(int logType, int otherItem) { for (int j = 0; j < logs.length;j++) { if (logs[j] == logType || logs[j] == otherItem) { lightFire(j); return; } } } public void lightFire(int slot) { if (c.duelStatus >= 5) { c.sendMessage("Why am I trying to light a fire in the duel arena?"); return; } if (c.playerLevel[c.playerFiremaking] >= level[slot]) { if (c.getItems().playerHasItem(590) && c.getItems().playerHasItem(logs[slot])) { if (System.currentTimeMillis() - lastLight > DELAY) { c.startAnimation(733,0); c.getItems().deleteItem(logs[slot], c.getItems().getItemSlot(logs[slot]), 1); c.getPA().addSkillXP(logs[slot] * Config.FIREMAKING_EXPERIENCE, c.playerFiremaking); Objects fire = new Objects(2732,c.getX(),c.getY(), 0, -1, 10, 3); Objects fire2 = new Objects(-1,c.getX(),c.getY(), 0, -1, 10, 60); c.sendMessage("You light the fire."); this.lastLight = System.currentTimeMillis(); //c.getPA().frame1(); resetAnim = true; } } } } }[/CODE]
  4. Hey everyone im getting this error! starting... src\com\rs\game\player\content\MaxedUser.java:12: error: unreachable statement return player.completedFightKiln = true; ^ 1 error Press any key to continue . . . And this is the code for it! Can anyone tell me how to fix it? or show? public static boolean isCompletionist(Player player) { return player.getSkills().getTotalLevel(player) == 2496; return player.completedFightKiln = true; }
  5. Hi, I'm having a problem with my PI based client. I can login on the server with no problems but when someone else tries to login it won't let them, now I will tell you what I did to try and make it work and if I missed something please help me:) I made a no-ip domain. I jarred the client (even tho it probably doesn't make any difference). I port-forwarded. and in the client.java I changed: if(myPrivilege == 2 || server.equals("******.no-ip.info") || 1 == 1/*to remove*/) Server = "********.no-ip.info"; public static String server = "*******.no-ip.info"; Is there anything else I need to change in the client or anywhere else? Thanks for your time!
  6. Hey i am having a mysql error in my source when i run it i don't know how to fix this problem. If someone could tell me how to fix it or teamview me itd be much appreciated!
  7. [FONT=Comic Sans MS][SIZE=5][COLOR="#FFD700"]Hi Runelocus, Wanted to test out a server, but when I run the client (which loads fine) it crash right after loading "Fetching Updates". Im getting an error message on the client panel, here is what it's saying: [IMG]https://dl.dropboxusercontent.com/u/59261058/error.png[/IMG] Anyone has an idea on how to fix this? I have checked the revision in both source & client already. [/COLOR][/SIZE][/FONT]
  8. i have jared the client, but now i get an error saying this "src\cc.java:54: error: class CharEncoding is public, should be declared in a fil e named CharEncoding.java public class CharEncoding { ^" The thing is that there is no CharEncoding,java file only CharEncoding.class Thanks
  9. Sometimes while browsing the forums and I click a link I [I]randomly[/I] encounter a DB error. I do not know what causes this error, but here is what it looks like [img]http://i.imgur.com/FQK1nRO.png[/img]
  10. [IMG]http://i59.tinypic.com/256tmqv.png[/IMG] Not sure?
  11. If i try to add mystery box to my project insanity server, and i use this code: if(itemId == 6199) { c.getItems().deleteItem(6199, 1); int[] arrayOfItems = {1050,1048,1046,1044,1042,1040,1038}; c.getItems().addItem(arrayOfItems[Misc.random(arrayOfItems.length)], 1); } Then i get this error: Clickitem.java20 error: cannot find symbol c.getItems().addItem(arrayOfItems[Misc.random(arrayOfItems.length)], 1); Do i need to declare something? or am i using wrong code?
  12. Hi there, I kinda hit rock-bottom. I don't know where to look anymore, nor do I have a feeling I will find anything. I've seen several threads that seemed to go towards what I had.. but then ended up with nothing. My issue is; When I start the server, which starts fine and I start the client, which starts fine as well, I try to create an account and I end up getting kicked off as soon as I click "Create Account". Which is getting rather frustrating to this point and I really don't know what to look for. [CODE]C:\Users\Biggs\CitellumCache\citellum\Core File ID: 1, details: 45 / [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44] --Where it Crashes. Error: vn.n() client.er() client.ae() mc.m() mc.e() | Class288_Sub1.method2730:8 6 client.method2806:2805 client.method2773:607 Class291.method2764:534 Class291. method2759:375 Class291.run:323 java.lang.Thread.run | java.lang.NullPointerExce ption | 0,0,104,104 0,8,8 1 0 2 800,600 1 2 2 1 0 0 248 2 4071 hAJWGrsaETglRjuw xMwnlA/d5W6EgYWx java.net.ConnectException: Connection refused: connect at java.net.DualStackPlainSocketImpl.connect0(Native Method) at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source) at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source) at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source) at java.net.AbstractPlainSocketImpl.connect(Unknown Source) at java.net.PlainSocketImpl.connect(Unknown Source) at java.net.SocksSocketImpl.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at sun.net.NetworkClient.doConnect(Unknown Source) --Bunch of Links at java.net.URL.openStream(Unknown Source) at IPAddress.method6062(IPAddress.java:127) at Class291.run(Class291.java:327) at java.lang.Thread.run(Unknown Source) error_game_crash [/CODE] Trying to run "[I][U]Citellum RSPS 718 | Lobby | Squeal | Pouch | and whatever[/U][/I]" by the way. In case that'd matter or anybody had to know. And honestly, this is my first time doing such a thing and I probably missed something quite silly.. but I just hit 7am and I think my first actual download after reading what it all involves, has been at least since before midnight.. So if there truly is a Thread already that explains this issue to the Detail, please hit me hard at the back of the head. Just don't know what to do with it. :/ Any help appreciated! -Biggs.
  13. I get this error when I run my client: [code]The system cannot find the path specified. Error: Could not find or load main class Launcher Press any key to continue . . .[/code] But my friend's client works perfectly for him. My run.bat code is: [code]@echo off color 0a cd ./Files/ "C:\Program Files (x86)\Java\jre8\bin\java.exe" -Xmx550m Launcher 30 0 lowmem members 32 pause [/code] My Java versions are as follow: jre8 jre7 jdk1.8.0_05 Please help
  14. please im honestly new im trying to get the server and client running before i try to do anything els pleae help? ------------------------------------------------ InsanityX (x64), Starting up... ------------------------------------------------ Auto-Detected 32-bit (x86) System ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ . C l i e n t o u t p u t b e l o w . ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Exception in thread "main" java.lang.UnsupportedClassVersionError: Jframe : Unsu pported major.minor version 52.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.access$100(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source) Press any key to continue . . .
  15. [IMG]http://i.imgur.com/1LtAvHm.png[/IMG] After posting, going back in to edit it gives you this warning
  16. Hello, so i got a 667 client, everytime when some 1 else run the .jar client on their computer they get this error: [IMG]http://i.imgur.com/x0nSvaP.png[/IMG] I do not know how to fix this :( or maybie iam doing something wrong when making the .jar thing Another thing when I want to start the Webclient with this .jar file ( uploaded to dropbox ) i get this error [IMG]http://i.imgur.com/qwRTkjG.png[/IMG] [IMG]http://i.imgur.com/YcqdGjZ.png[/IMG] The Client (.jar) is working perfect on my computer but the webclient dont work on my computer MORE INFO: I compile the client before making it .jar with jdk1.6.0_45 (i did it with the newest but also no change) I use this HTML code for the webclient [url]https://dl.dropboxusercontent.com/u/106603353/webclient.rar[/url]
  17. davk45

    Client Error Help

    I am new at RSPS and have recently downloaded my first one, Goudont 562. After I ran the Client Compiler, the client would not run anymore (I had opened previously and it worked fine). Instead, it said "Exception in thread main". What does that mean? HELP! [ATTACH]10574[/ATTACH] [ATTACH]10575[/ATTACH] The prefix is supposed to be 562 sorry
  18. The Rare

    Compiler error

    Hello all, I was fixing the compiler from the Poanizer Project Source(changing jdk version), but i can't get it working? Or i'm just stupid or it's a strange bug. Help would be appreciated Source compiler: [url]http://puu.sh/aciax/f2713abdcb.png[/url] Client compiler: [url]http://puu.sh/acieY/2937aab6a1.png[/url] NOTE: I'm new to coding Greetz, The Rare
  19. So I was able to upload a new cache to my site just fine with FTP. But now, it says for about 2 seconds: "Requesting Title Screen" And then: "Error Connecting - Retrying in..." (And of course there's a countdown...) Can someone help me please?
  20. everytime I try to run my client in Eclipse, I get this: [code]Uncaught error fetching image: java.lang.NullPointerException at sun.awt.image.URLImageSource.getConnection(Unknown Source) at sun.awt.image.URLImageSource.getDecoder(Unknown Source) at sun.awt.image.InputStreamImageSource.doFetch(Unknown Source) at sun.awt.image.ImageFetcher.fetchloop(Unknown Source) at sun.awt.image.ImageFetcher.run(Unknown Source)[/code] What I have tried: - Switching compiler version to Java 6, 7, and 8. (Currently running on 7 as it should be) - Restarting Eclipse - Restarting server
  21. Thorin

    [PI]Strange error

    When i run my client, this shows up in the cmd... ……………………„„-~^^~„-„„_ ………………„-^*'' : : „'' : : : : *-„ …………..„-* : : :„„--/ : : : : : : : '\ …………./ : : „-* . .| : : : : : : : : '| ……….../ : „-* . . . | : : : : : : : : | ………...\„-* . . . . .| : : : : : : : :'| ……….../ . . . . . . '| : : : : : : : :| ……..../ . . . . . . . .'\ : : : : : : : | ……../ . . . . . . . . . .\ : : : : : : :| ……./ . . . . . . . . . . . '\ : : : : : / ….../ . . . . . . . . . . . . . *-„„„„-*' ….'/ . . . . . . . . . . . . . . '| …/ . . . . . . . ./ . . . . . . .| ../ . . . . . . . .'/ . . . . . . .'| ./ . . . . . . . . / . . . . . . .'| '/ . . . . . . . . . . . . . . . .'| '| . . . . . \ . . . . . . . . . .| '| . . . . . . \„_^- „ . . . . .'| '| . . . . . . . . .'\ .\ ./ '/ . | | .\ . . . . . . . . . \ .'' / . '| | . . . . . . . . . . / .'/ . . .| | . . . . . . .| . . / ./ ./ . .| Any suggestions?
  22. Hi, i din't had the challange option in my duelcontroler.java so i removed the // and i also added this part: [QUOTE] @Override public void start() { sendInterfaces(); player.getAppearence().generateAppearenceData(); //player.getPackets().sendPlayerOption("Challenge", 1, false); moved(); } [/QUOTE] However im getting this wird error: [QUOTE] Building please wait... src\com\rs\game\minigames\duel\DuelControler.java:18: error: method does not ove rride or implement a method from a supertype @Override ^ 1 error Compiled. [/QUOTE] Anybody knows how to fix this error and how to let the challange button to appear? Thanks for youre response.
  23. Hello there, after following many jarring process I've ran into the solution that I'm jarring/signing correctly. However each time I start my client.jar i get this [IMG]http://i62.tinypic.com/2zi6000.png[/IMG] [SIZE=5][B][U][FONT=Arial Black]1) I know that it can't find the file "main_file_cache.dat" [/FONT][/U][/B][/SIZE] However, I do know that the Main_file_cache.dat is located in my "CACHE" folder within the client. [IMG]http://i61.tinypic.com/11ihkch.png[/IMG] I've zipped the FILE in the CACHE folder not the CACHE FOLDER itself the "files in the cache folder" .zip... Upload it to dropbox, added [dl.] infront of my url. but still it doesnt work.... Here is my signlink.java [url]http://pastebin.com/JKEbRJKP[/url] Here is my CacheDownloader.java [url]http://pastebin.com/fwPiKVgt[/url] Here is my client.java [url]http://pastebin.com/eGrjZJnc[/url] Question is what do i do? Is there an antileech somewhere that I do not know? add me on skype: ayye.geo I also have teamviewer: 521 849 540 add and pm ------------------------------------------------------------------------ Edit#1 Before all of this, when I jar it would say "Could not find or load main class client" So i put SIGNLINK.java/Class into folder SIGN, then I took out all of my .class and .java into the open folder like this [IMG]http://i60.tinypic.com/2zxuxlh.png[/IMG] and it finally open but led to not being able to connect.
  24. I'm trying to play a server and no matter whether I use the downloaded client or the webclient, I get the error 'requesting title screen' followed by 'connection error retrying in __seconds' I've looked all over the place for a solution and finally decided to make a new thread because I can't find a fix. I've established it's something to do with the cache of the server. I've tried deleting and redownloading several times and the problem still occurs. I'm using a 64 bit version of Windows Ultimate and I'm running version 7 update 60 of java. Any help would really be appreciated.
  25. I got an opcode error(s) after replacing my cache: [code][Launcher] Initing Cache... Exception in thread "main" java.lang.RuntimeException: MISSING OPCODE 94 FOR ITE M 6 at com.rs.cache.loaders.ItemDefinitions.readValues(ItemDefinitions.java: 840) at com.rs.cache.loaders.ItemDefinitions.readOpcodeValues(ItemDefinitions .java:855) at com.rs.cache.loaders.ItemDefinitions.loadItemDefinitions(ItemDefiniti ons.java:353) at com.rs.cache.loaders.ItemDefinitions.<init>(ItemDefinitions.java:340) at com.rs.cache.loaders.ItemDefinitions.getItemDefinitions(ItemDefinitio ns.java:318) at com.rs.cache.loaders.ItemsEquipIds.init(ItemsEquipIds.java:14) at com.rs.Launcher.main(Launcher.java:74) Press any key to continue . . .[/code] Does anyone possibly know how to fix it? Itemdefinitions.java: [code]package com.rs.cache.loaders; import java.io.BufferedReader; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.FileReader; import java.io.IOException; import java.nio.ByteBuffer; import java.util.HashMap; import java.util.LinkedList; import com.alex.utils.Constants; import com.rs.cache.Cache; import com.rs.game.player.Equipment; import com.rs.utils.GrandExchangePrices; import com.rs.game.player.Skills; import com.rs.io.InputStream; import com.rs.utils.Utils; @SuppressWarnings("unused") public final class ItemDefinitions { private static final ItemDefinitions[] itemsDefinitions; static { // that's why this is here itemsDefinitions = new ItemDefinitions[Utils.getItemDefinitionsSize()]; } private int id; private boolean loaded; public void setValue(int value) { this.value = value; } public int modelId; private String name; // model size information private int modelZoom; private int modelRotation1; private int modelRotation2; private int modelOffset1; private int modelOffset2; // extra information private int stackable; private int value; private boolean membersOnly; // wearing model information private int maleEquip1; private int femaleEquip1; private int maleEquip2; private int femaleEquip2; // 718/735 Opcodes private int opcode44; private int opcode144; private int opcode145; private int opcode150; private int opcode151; private int opcode152; private int opcode153; private int opcode146; private int opcode142; private int opcode154; private int opcode9; private int opcode117; private int opcode17; private int opcode99; private int opcode87; private int opcode55; private int opcode62; private int opcode118; private int opcode56; private int opcode46; private int opcode47; private int opcode83; // options private String[] groundOptions; public String[] inventoryOptions; // model information public int[] originalModelColors; public int[] modifiedModelColors; public short[] originalTextureColors; private short[] modifiedTextureColors; private byte[] unknownArray1; private int[] unknownArray2; // extra information, not used for newer items private boolean unnoted; private int maleEquipModelId3; private int femaleEquipModelId3; private int unknownInt1; private int unknownInt2; private int unknownInt3; private int unknownInt4; private int unknownInt5; private int unknownInt6; private int certId; private int certTemplateId; private int[] stackIds; private int[] stackAmounts; private int unknownInt7; private int unknownInt8; private int unknownInt9; private int unknownInt10; private int unknownInt11; public int teamId; private int lendId; private int lendTemplateId; private int unknownInt12; private int unknownInt13; private int unknownInt14; private int unknownInt15; private int unknownInt16; private int unknownInt17; private int unknownInt18; private int unknownInt19; private int unknownInt20; private int unknownInt21; private int unknownInt22; private int unknownInt23; private int equipSlot; private int equipType; private int unknownInt25; private int unknownInt26; private int unknownInt27; private int unknownInt28; private int unknownInt29; private int unknownInt30; private int unknownInt31; private int unknownInt32; private int opcode13; private int opcode52; private int opcode53; private int opcode82; private int opcode66; private int opcode116; private int opcode157; private int opcode68; private int opcode244; private int opcode170; private int opcode75; private int opcode14; private int opcode27; private int opcode232; private int opcode211; //more opcodes private int opcode254; private int opcode228; private int opcode226; private int opcode255; private int opcode253; private int opcode252; private int opcode156; private int opcode215; private int opcode171; private int opcode3; private int opcode199; private int opcode223; private int opcode198; private int opcode186; private int opcode29; private int opcode238; private int opcode155; private int opcode251; private int opcode22; private int opcode192; private int opcode245; private int opcode45; private int opcode248; private int opcode237; private int opcode243; private int opcode185; private int opcode221; private int opcode240; private int opcode158; private int opcode137; private int opcode143; private int opcode61; private int opcode80; private int opcode196; private int opcode85; private int opcode239; private int opcode177; private int opcode163; private int opcode135; private int opcode120; private int opcode204; private int opcode81; private int opcode208; private int opcode242; private int opcode15; private int opcode233; private int opcode213; private int opcode207; private int opcode216; private int opcode206; private int opcode50; private int opcode193; private int opcode71; private int opcode10; private int opcode235; private int opcode188; private int opcode241; private int opcode236; private int opcode182; private int opcode169; private int opcode190; private int opcode178; private int opcode88; private int opcode200; private int opcode184; private int opcode176; private int opcode197; private int opcode247; private int opcode218; private int opcode250; private int opcode174; private int opcode210; private int opcode164; private int opcode148; private int opcode133; private int opcode222; private int opcode138; private int opcode194; private int opcode119; private int opcode202; private int opcode149; private int opcode64; private int opcode147; private int opcode214; private int opcode74; private int opcode86; private int opcode167; private int opcode161; private int opcode58; private int opcode59; private int opcode187; private int opcode77; private int opcode229; private int opcode230; private int opcode67; private int opcode131; private int opcode225; private int opcode203; private int opcode19; private int opcode43; private int opcode168; private int opcode209; private int opcode166; private int opcode54; private int opcode21; private int opcode73; private int opcode159; private int opcode123; private int opcode180; private int opcode20; private int opcode165; private int opcode84; private int opcode28; private int opcode175; private int opcode141; private int opcode205; private int opcode220; private int opcode136; private int opcode212; private int opcode49; private int opcode69; private int opcode72; private int opcode60; private int opcode219; private int opcode227; private int opcode76; private int opcode234; private int opcode57; private int opcode51; private int opcode124; private int opcode70; private int opcode231; private int opcode162; private int opcode160; private int opcode181; private int opcode183; private int opcode191; private int opcode189; private int opcode179; private int opcode173; private int opcode48; private int opcode172; private int opcode42; private int opcode246; private int opcode89; private int opcode195; private int opcode224; private int opcode63; private int opcode94; private int opcode201; private int opcode217; // extra added private boolean noted; private boolean lended; private HashMap<Integer, Object> clientScriptData; private HashMap<Integer, Integer> itemRequiriments; private int unknownInt24; public static final ItemDefinitions getItemDefinitions(int itemId) { if (itemId < 0 || itemId >= itemsDefinitions.length) itemId = 0; ItemDefinitions def = itemsDefinitions[itemId]; if (def == null) itemsDefinitions[itemId] = def = new ItemDefinitions(itemId); return def; } public static final void clearItemsDefinitions() { for (int i = 0; i < itemsDefinitions.length; i++) itemsDefinitions[i] = null; } public static ItemDefinitions forName(String name) { for (ItemDefinitions definition : itemsDefinitions) { if (definition.name.equalsIgnoreCase(name)) { return definition; } } return null; } public ItemDefinitions(int id) { this.id = id; setDefaultsVariableValues(); setDefaultOptions(); loadItemDefinitions(); } public boolean isLoaded() { return loaded; } private final void loadItemDefinitions() { byte[] data = Cache.STORE.getIndexes()[Constants.ITEM_DEFINITIONS_INDEX].getFile(getArchiveId(), getFileId()); if (data == null) { // System.out.println("Failed loading Item " + id+"."); return; } readOpcodeValues(new InputStream(data)); if (certTemplateId != -1) toNote(); if (lendTemplateId != -1) toLend(); if (unknownValue1 != -1) toBind(); loaded = true; } private void toNote() { // ItemDefinitions noteItem; //certTemplateId ItemDefinitions realItem = getItemDefinitions(certId); membersOnly = realItem.membersOnly; value = realItem.value; name = realItem.name; stackable = 1; noted = true; } private void toBind() { // ItemDefinitions lendItem; //lendTemplateId ItemDefinitions realItem = getItemDefinitions(unknownValue2); originalModelColors = realItem.originalModelColors; maleEquipModelId3 = realItem.maleEquipModelId3; femaleEquipModelId3 = realItem.femaleEquipModelId3; teamId = realItem.teamId; value = 0; membersOnly = realItem.membersOnly; name = realItem.name; inventoryOptions = new String[5]; groundOptions = realItem.groundOptions; if (realItem.inventoryOptions != null) for (int optionIndex = 0; optionIndex < 4; optionIndex++) inventoryOptions[optionIndex] = realItem.inventoryOptions[optionIndex]; inventoryOptions[4] = "Discard"; maleEquip1 = realItem.maleEquip1; maleEquip2 = realItem.maleEquip2; femaleEquip1 = realItem.femaleEquip1; femaleEquip2 = realItem.femaleEquip2; clientScriptData = realItem.clientScriptData; equipSlot = realItem.equipSlot; equipType = realItem.equipType; } private void toLend() { // ItemDefinitions lendItem; //lendTemplateId ItemDefinitions realItem = getItemDefinitions(lendId); originalModelColors = realItem.originalModelColors; maleEquipModelId3 = realItem.maleEquipModelId3; femaleEquipModelId3 = realItem.femaleEquipModelId3; teamId = realItem.teamId; value = 0; membersOnly = realItem.membersOnly; name = realItem.name; inventoryOptions = new String[5]; groundOptions = realItem.groundOptions; if (realItem.inventoryOptions != null) for (int optionIndex = 0; optionIndex < 4; optionIndex++) inventoryOptions[optionIndex] = realItem.inventoryOptions[optionIndex]; inventoryOptions[4] = "Discard"; maleEquip1 = realItem.maleEquip1; maleEquip2 = realItem.maleEquip2; femaleEquip1 = realItem.femaleEquip1; femaleEquip2 = realItem.femaleEquip2; clientScriptData = realItem.clientScriptData; equipSlot = realItem.equipSlot; equipType = realItem.equipType; lended = true; } public int getArchiveId() { return getId() >>> 8; } public int getFileId() { return 0xff & getId(); } public boolean isDestroyItem() { if (inventoryOptions == null) return false; for (String option : inventoryOptions) { if (option == null) continue; if (option.equalsIgnoreCase("destroy")) return true; } return false; } public boolean containsOption(int i, String option) { if (inventoryOptions == null || inventoryOptions[i] == null || inventoryOptions.length <= i) return false; return inventoryOptions[i].equals(option); } public boolean containsOption(String option) { if (inventoryOptions == null) return false; for (String o : inventoryOptions) { if (o == null || !o.equals(option)) continue; return true; } return false; } public boolean isWearItem() { return equipSlot != -1; } public boolean isWearItem(boolean male) { if (equipSlot < Equipment.SLOT_RING && (male ? getMaleWornModelId1() == -1 : getFemaleWornModelId1() == -1)) return false; return equipSlot != -1; } public boolean hasSpecialBar() { if (clientScriptData == null) return false; Object specialBar = clientScriptData.get(686); if (specialBar != null && specialBar instanceof Integer) return (Integer) specialBar == 1; return false; } public int getRenderAnimId() { if (clientScriptData == null) return 1426; Object animId = clientScriptData.get(644); if (animId != null && animId instanceof Integer) return (Integer) animId; return 1426; } public int getModelZoom() { return modelZoom; } public int getModelOffset1() { return modelOffset1; } public int getModelOffset2() { return modelOffset2; } public int getQuestId() { if (clientScriptData == null) return -1; Object questId = clientScriptData.get(861); if (questId != null && questId instanceof Integer) return (Integer) questId; return -1; } public HashMap<Integer, Integer> getCreateItemRequirements() { if (clientScriptData == null) return null; HashMap<Integer, Integer> items = new HashMap<Integer, Integer>(); int requiredId = -1; int requiredAmount = -1; for (int key : clientScriptData.keySet()) { Object value = clientScriptData.get(key); if (value instanceof String) continue; if (key >= 538 && key <= 770) { if (key % 2 == 0) requiredId = (Integer) value; else requiredAmount = (Integer) value; if (requiredId != -1 && requiredAmount != -1) { items.put(requiredAmount, requiredId); requiredId = -1; requiredAmount = -1; } } } return items; } public HashMap<Integer, Object> getClientScriptData() { return clientScriptData; } public HashMap<Integer, Integer> getWearingSkillRequiriments() { if (clientScriptData == null) return null; if (itemRequiriments == null) { HashMap<Integer, Integer> skills = new HashMap<Integer, Integer>(); for (int i = 0; i < 10; i++) { Integer skill = (Integer) clientScriptData.get(749 + (i * 2)); if (skill != null) { Integer level = (Integer) clientScriptData .get(750 + (i * 2)); if (level != null) skills.put(skill, level); } } Integer maxedSkill = (Integer) clientScriptData.get(277); if (maxedSkill != null) skills.put(maxedSkill, getId() == 19709 ? 120 : 99); itemRequiriments = skills; if (getId() == 7462) itemRequiriments.put(Skills.DEFENCE, 40); else if (name.equals("Dragon defender")) { itemRequiriments.put(Skills.ATTACK, 60); itemRequiriments.put(Skills.DEFENCE, 60); }else if (getId() == 19784 || getId() == 22401 || getId() == 19780) { // Korasi itemRequiriments.put(Skills.ATTACK, 78); itemRequiriments.put(Skills.STRENGTH, 78); }else if (getId() == 1127 || getId() == 1079 || getId() == 1147 || getId() == 1163 || getId() == 4131 || getId() == 1185 || getId() == 1201) { // rune itemRequiriments.put(Skills.DEFENCE, 40); }else if (getId() == 1067 || getId() == 1115 || getId() == 1175 || getId() == 1153 || getId() == 1137 || getId() == 1191) { // iron itemRequiriments.put(Skills.DEFENCE, 1); }else if (getId() == 1303 || getId() == 1333 || getId() == 1289 || getId() == 1319) { // rune weapons itemRequiriments.put(Skills.ATTACK, 40); }else if (getId() == 1323 || getId() == 1309 || getId() == 1293 || getId() == 1279) { // iron weapons itemRequiriments.put(Skills.ATTACK, 1); }else if (getId() == 2497) { // black dhide chaps itemRequiriments.put(Skills.RANGE, 70); itemRequiriments.put(Skills.DEFENCE, 1); if (getId() == 20822 || getId() == 20823 || getId() == 20824 || getId() == 20825 || getId() == 20826) itemRequiriments.put(Skills.DEFENCE, 99); }else if (name.equals("Dragon defender")) { itemRequiriments.put(Skills.ATTACK, 60); itemRequiriments.put(Skills.DEFENCE, 60); }else if (name.equals("rune arrow")) { itemRequiriments.put(Skills.RANGE, 40); }else if (name.equals("iron arrow")) { itemRequiriments.put(Skills.RANGE, 1); } } return itemRequiriments; } /* * public HashMap<Integer, Integer> getWearingSkillRequiriments() { if * (clientScriptData == null) return null; HashMap<Integer, Integer> skills * = new HashMap<Integer, Integer>(); int nextLevel = -1; int nextSkill = * -1; for (int key : clientScriptData.keySet()) { Object value = * clientScriptData.get(key); if (value instanceof String) continue; if(key * == 277) { skills.put((Integer) value, id == 19709 ? 120 : 99); }else if * (key == 23 && id == 15241) { skills.put(4, (Integer) value); * skills.put(11, 61); } else if (key >= 749 && key < 797) { if (key % 2 == * 0) nextLevel = (Integer) value; else nextSkill = (Integer) value; if * (nextLevel != -1 && nextSkill != -1) { skills.put(nextSkill, nextLevel); * nextLevel = -1; nextSkill = -1; } } * * } return skills; } */ private void setDefaultOptions() { groundOptions = new String[] { null, null, "take", null, null }; inventoryOptions = new String[] { null, null, null, null, "drop" }; } private void setDefaultsVariableValues() { name = "null"; maleEquip1 = -1; maleEquip2 = -1; femaleEquip1 = -1; femaleEquip2 = -1; modelZoom = 2000; lendId = -1; lendTemplateId = -1; certId = -1; certTemplateId = -1; unknownInt9 = 128; value = 1; maleEquipModelId3 = -1; femaleEquipModelId3 = -1; unknownValue1 = -1; unknownValue2 = -1; teamId = -1; equipSlot = -1; equipType = -1; } private final void readValues(InputStream stream, int opcode) { if (opcode == 1) modelId = stream.readBigSmart(); else if (opcode == 2) name = stream.readString(); else if (opcode == 4) modelZoom = stream.readUnsignedShort(); else if (opcode == 5) modelRotation1 = stream.readUnsignedShort(); else if (opcode == 6) modelRotation2 = stream.readUnsignedShort(); else if (opcode == 7) { modelOffset1 = stream.readUnsignedShort(); if (modelOffset1 > 32767) modelOffset1 -= 65536; modelOffset1 <<= 0; } else if (opcode == 8) { modelOffset2 = stream.readUnsignedShort(); if (modelOffset2 > 32767) modelOffset2 -= 65536; modelOffset2 <<= 0; } else if (opcode == 11) stackable = 1; else if (opcode == 12) value = stream.readInt(); else if (opcode == 13) { equipSlot = stream.readUnsignedByte(); }else if (opcode == 14) { equipType = stream.readUnsignedByte(); }else if (opcode == 16) membersOnly = true; else if (opcode == 18) stream.readUnsignedShortLE(); else if (opcode == 23) maleEquip1 = stream.readBigSmart(); else if (opcode == 24) maleEquip2 = stream.readBigSmart(); else if (opcode == 25) femaleEquip1 = stream.readBigSmart(); else if (opcode == 26) femaleEquip2 = stream.readBigSmart(); else if (opcode == 27) stream.readUnsignedByte(); else if (opcode >= 30 && opcode < 35) groundOptions[opcode - 30] = stream.readString(); else if (opcode >= 35 && opcode < 40) inventoryOptions[opcode - 35] = stream.readString(); else if (opcode == 40) { int length = stream.readUnsignedByte(); originalModelColors = new int[length]; modifiedModelColors = new int[length]; for (int index = 0; index < length; index++) { originalModelColors[index] = stream.readUnsignedShort(); modifiedModelColors[index] = stream.readUnsignedShort(); } } else if (opcode == 41) { int length = stream.readUnsignedByte(); originalTextureColors = new short[length]; modifiedTextureColors = new short[length]; for (int index = 0; index < length; index++) { originalTextureColors[index] = (short) stream .readUnsignedShort(); modifiedTextureColors[index] = (short) stream .readUnsignedShort(); } } else if (opcode == 42) { int length = stream.readUnsignedByte(); unknownArray1 = new byte[length]; for (int index = 0; index < length; index++) unknownArray1[index] = (byte) stream.readByte(); } else if (opcode == 65) unnoted = true; else if (opcode == 78) maleEquipModelId3 = stream.readBigSmart(); else if (opcode == 79) femaleEquipModelId3 = stream.readBigSmart(); else if (opcode == 90) unknownInt1 = stream.readBigSmart(); else if (opcode == 91) unknownInt2 = stream.readBigSmart(); else if (opcode == 92) unknownInt3 = stream.readBigSmart(); else if (opcode == 93) unknownInt4 = stream.readBigSmart(); else if (opcode == 95) unknownInt5 = stream.readUnsignedShort(); else if (opcode == 96) unknownInt6 = stream.readUnsignedByte(); else if (opcode == 97) certId = stream.readUnsignedShort(); else if (opcode == 98) certTemplateId = stream.readUnsignedShort(); else if (opcode >= 100 && opcode < 110) { if (stackIds == null) { stackIds = new int[10]; stackAmounts = new int[10]; } stackIds[opcode - 100] = stream.readUnsignedShort(); stackAmounts[opcode - 100] = stream.readUnsignedShort(); } else if (opcode == 110) unknownInt7 = stream.readUnsignedShort(); else if (opcode == 111) unknownInt8 = stream.readUnsignedShort(); else if (opcode == 112) unknownInt9 = stream.readUnsignedShort(); else if (opcode == 113) unknownInt10 = stream.readByte(); else if (opcode == 114) unknownInt11 = stream.readByte() * 5; else if (opcode == 115) teamId = stream.readUnsignedByte(); else if (opcode == 121) lendId = stream.readUnsignedShort(); else if (opcode == 122) lendTemplateId = stream.readUnsignedShort(); else if (opcode == 125) { unknownInt12 = stream.readByte() << 0; unknownInt13 = stream.readByte() << 0; unknownInt14 = stream.readByte() << 0; } else if (opcode == 126) { unknownInt15 = stream.readByte() << 0; unknownInt16 = stream.readByte() << 0; unknownInt17 = stream.readByte() << 0; } else if (opcode == 127) { unknownInt18 = stream.readUnsignedByte(); unknownInt19 = stream.readUnsignedShort(); } else if (opcode == 128) { unknownInt20 = stream.readUnsignedByte(); unknownInt21 = stream.readUnsignedShort(); } else if (opcode == 129) { unknownInt20 = stream.readUnsignedByte(); unknownInt21 = stream.readUnsignedShort(); } else if (opcode == 130) { unknownInt22 = stream.readUnsignedByte(); unknownInt23 = stream.readUnsignedShort(); } else if (opcode == 132) { int length = stream.readUnsignedByte(); unknownArray2 = new int[length]; for (int index = 0; index < length; index++) unknownArray2[index] = stream.readUnsignedShort(); } else if (opcode == 134) { int unknownValue = stream.readUnsignedByte(); } else if (opcode == 139) { unknownValue2 = stream.readUnsignedShort(); } else if (opcode == 140) { unknownValue1 = stream.readUnsignedShort(); } else if (opcode == 249) { int length = stream.readUnsignedByte(); if (clientScriptData == null) clientScriptData = new HashMap<Integer, Object>(length); for (int index = 0; index < length; index++) { boolean stringInstance = stream.readUnsignedByte() == 1; int key = stream.read24BitInt(); Object value = stringInstance ? stream.readString() : stream .readInt(); clientScriptData.put(key, value); } } else if (opcode == 44) opcode44 = stream.readUnsignedShort(); else if (opcode == 55) opcode55 = stream.readUnsignedShort(); else if (opcode == 62) opcode62 = stream.readUnsignedShort(); else if (opcode == 144) opcode144 = stream.readUnsignedShort(); else if (opcode == 118) opcode118 = stream.readUnsignedShort(); else if (opcode == 46) opcode46 = stream.readUnsignedShort(); else if (opcode == 56) opcode56 = stream.readUnsignedShort(); else if (opcode == 47) opcode47 = stream.readUnsignedShort(); else if (opcode == 83) opcode83 = stream.readUnsignedShort(); else if (opcode == 146) opcode146 = stream.readUnsignedShort(); else if (opcode == 87) opcode87 = stream.readUnsignedShort(); else if (opcode == 99) opcode99 = stream.readUnsignedShort(); else if (opcode == 94) opcode94 = stream.readUnsignedShort(); else if (opcode == 17) opcode17 = stream.readUnsignedShort(); else if (opcode == 117) opcode117 = stream.readUnsignedShort(); else if (opcode == 9) opcode9 = stream.readUnsignedShort(); else if (opcode == 142) opcode142 = stream.readUnsignedShort(); else if (opcode == 145) opcode145 = stream.readUnsignedShort(); else if (opcode == 150) opcode150 = stream.readUnsignedShort(); else if (opcode == 151) opcode151 = stream.readUnsignedShort(); else if (opcode == 152) opcode152 = stream.readUnsignedShort(); else if (opcode == 153) opcode153 = stream.readUnsignedShort(); else if (opcode == 154) opcode154 = stream.readUnsignedShort(); else throw new RuntimeException("MISSING OPCODE " + opcode + " FOR ITEM " + getId()); } private int unknownValue1; private int unknownValue2; private final void readOpcodeValues(InputStream stream) { while (true) { int opcode = stream.readUnsignedByte(); if (id == 9977) { stackable = 1; } if (opcode == 0) break; readValues(stream, opcode); } } public String getName() { return name; } public int getFemaleWornModelId1() { return femaleEquip1; } public int getFemaleWornModelId2() { return femaleEquip2; } public int getMaleWornModelId1() { return maleEquip1; } public int getMaleWornModelId2() { return maleEquip2; } public boolean isOverSized() { return modelZoom > 25000; } public boolean isLended() { return lended; } public boolean isMembersOnly() { return membersOnly; } public boolean isStackable() { return stackable == 1; } public boolean isNoted() { return noted; } public int getLendId() { return lendId; } public int getCertId() { return certId; } public int getValue() { return value; } public int getId() { return id; } public int getEquipSlot() { return equipSlot; } public int getEquipType() { return equipType; } public static ItemDefinitions forId(int id2) { return ItemDefinitions.getItemDefinitions(id2); } public int getGEPrice() { return GrandExchangePrices.getPrice(id); } public static class FileUtilities { public static final int BUFFER = 1024; public static boolean exists(String name) { File file = new File(name); return file.exists(); } public static ByteBuffer fileBuffer(String name) throws IOException { File file = new File(name); if(!file.exists()) return null; FileInputStream in = new FileInputStream(name); byte[] data = new byte[BUFFER]; int read; try { ByteBuffer buffer = ByteBuffer.allocate(in.available() + 1); while ((read = in.read(data, 0, BUFFER)) != -1) { buffer.put(data, 0, read); } buffer.flip(); return buffer; } finally { if (in != null) in.close(); in = null; } } public static void writeBufferToFile(String name, ByteBuffer buffer) throws IOException { File file = new File(name); if(!file.exists()) file.createNewFile(); FileOutputStream out = new FileOutputStream(name); out.write(buffer.array(), 0, buffer.remaining()); out.flush(); out.close(); } public static LinkedList<String> readFile(String directory) throws IOException { LinkedList<String> fileLines = new LinkedList<String>(); BufferedReader reader = null; try { reader = new BufferedReader(new FileReader(directory)); String string; while ((string = reader.readLine()) != null) { fileLines.add(string); } } finally { if (reader != null) { reader.close(); reader = null; } } return fileLines; } } }[/code]
×