Jump to content

Search the Community

Showing results for tags 'errors'.



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

  1. Compiler Errors 100 Errors This error happens to be a very common problem with beginners. This error is derived from a missing or having too many left or right brace brackets, { and }. 100 errors omit in private servers because that's the maximum the java compiler will output on default settings. public class Example { public int errors() { return 0; } public void moreErrors() { public static void main(String[] args) { System.out.println("This is an example of 100 errors!"); } } This wont throw the legendary 100 errors because the code is to small, but the concept is the same. There is a missing bracket and because of this we get a silly error. Obviously, we need to add another bracket. Code (Java): public class Example { public int errors() { return 0; } public void moreErrors() { } public static void main(String[] args) { System.out.println("Correct number of brackets!"); } } Cannot Find Symbol Another common pitfall for novices. This error means a certain variable or method cannot be found or hasnt been defined. Usually this is the case when the variable or method is located in a different class. Take a look, Code (Java): public class ClassOne { private int aVariable = 2; public int getAVariable() { return aVariable; } }Code (Java): public class ClassTwo { public void printTheAVariable() { int variable = getAVariable(); System.out.println(variable); } }They are both two different classes, and the objective is we want to print the aVariable located in the ClassOne class from the printTheAVariable() in the ClassTwo class. But we get an error, cannot find symbol. Whats the problem? Well, we didnt make a reference to the ClassOne class, so how do we expect the compiler to know what we are asking for? We simply instantiate the ClassOne class like so, Code (Java): ClassOne classOne = new ClassOne();However we are not done. Now we need to reference our getAVariable() method. Here is what I mean, Code (Java): public void printTheAVariable() { int variable = classOne.getAVariable(); System.out.println(variable); }This will call the getAVariable() method from the ClassOne class! If done correctly, it will print out the aVariable integer: 2. What if we wanted to call the aVariable in ClassOne instead of the getAVariable()? "I referenced correctly but it gives me a 'variable has private access' error." Well, thats going to be discussed in the next section. Also, this also partly applies to static variables/methods, read here Here is an exercise for you to work on, Code (Java): public class PlayerLevel { public int playerLevel = 126; }Code (Java): public class PrintPlayerLevel { public void printPlayerLevel() { int playerCbLevel = playerLevel; sendMessage(playerCbLevel); } }Figure out how to fix it. Variable has Private Access This is an error which applies to all methods/fields(variables) with the private modifier. For example, Code (Java): private int aVariable = 2;These are methods/fields which arent called outside of the class it is within (however reflection is a different story iirc). Read up on these for more information, [URL]http://java.sun.com/docs/books/tutorial/java/javaOO/variables.html[/URL] [URL]http://java.sun.com/docs/books/tutorial/java/javaOO/accesscontrol.html[/URL] Looking back at the other example, what happens when we try and call the aVariable from the ClassOne class like so, Code (Java): public class ClassOne { private int aVariable = 2; public int getAVariable() { return aVariable; } }Code (Java): public class ClassTwo { ClassOne classOne = new ClassOne(); public void printTheAVariable() { int variable = classOne.aVariable; System.out.println(variable); } }We get: aVariable has private access in ClassOne. Why? Well, if you read the links I put up above, private modifiers mean methods/fields are only available within the class it is in. How can we fix this? Simply, you can take advantage of the Accessor pattern by making a 'getter' method like so, Code (Java): public int getAVariable() { return aVariable; }Which was already used in the first place. Or you can make the aVariable field public. Here is the correct code, Code (Java): public class ClassOne { public int aVariable = 2; public int getAVariable() { return aVariable; } }Code (Java): public class ClassTwo { ClassOne classOne = new ClassOne(); public void printTheAVariable() { int variable = classOne.aVariable; System.out.println(variable); } }This is self explanatory however here is a short excercise. Make a simple getter method for a variable named playerLevel. Look above if you dont understand. ; Expected This is a pretty easy error. Like the error says, your missing a colon in the code. Colons are used to end expressions like so, Code (Java): public boolean expression = true;Colons are used a lot. "So why does my code give me a ; expected error?" Well, you obviously were missing a colon somewhere. Take a look at this example, Code (Java): public void doSomething() { System.out.println("Doing something...") }Why was there a ; expected error? Look at the end of the println() method and figure it out, thats your exercise. ( or ) Expected This error occurs when there are dominating (too many) left or right brackets, ( or ). Another obvious fix, a simple way to fix it is to find where there are too many left brackets against right brackets. Look at this example, Code (Java): if (aVariable1 == aVariable2 { // do something here }As you can see a right bracket was missing. Here is the correction, Code (Java): if (aVariable1 == aVariable2) { // do something here }This also applies to methods like so, Code (Java): System.out.println(variable));That would give a ; expected, however the problem lies with the fact there is one too many right brackets. Your exercise for this section is trying to fix this if statement, Code (Java): if ((totalLevel + 1) - (totalLevel + (0+0)) {You dont have to focus on the variable or what this really does, the ovjective is to fix the brackets. Code Too Large This error is popping up more and more, and many people dont know why this happens. In a Jave method, its size cannot exceed 64KB. Why? Google it. What to do when this occurs? Well, you can split the one method into two parts. Say you have a method called parseIncomingPackets() (this is a RSPS reference) and it exceeded 64KB. A simple way to rid of this error would be to split it into two parts by creating a nother method such as parseIncomingPackets2(). Here is an example, Code (Java): public void parseIncomingPackets() { // 64KB, compiler gives an error }Split up, Code (Java): public void parseIncomingPackets() { // below 64KB, no error } public void parseIncomingPackets2() { // below 64KB, no error }Also, be noted you have to call the second method at one point probably like, Code (Java): public void parseIncomingPackets() { // your code here parseIncomingPackets2(); } Duplicate Method This error occurs when a programmer attempts to put two of the same methods in a class like so, Code (Java): class SomeClass { public void doSomething() { // do something } public void doSomething() { // do something } }This would give a: doSomething is already defined in SomeClass error. An easy fix is to just remove the appropriate method. Its usually just removing an older method. However, there can be a workaround. Methods with the same name but different parameters are a different story. Read on, [URL]http://java.sun.com/docs/books/tutorial/java/javaOO/methods.html[/URL] These are called overloading methods. Here is an example of overloaded methods, Code (Java): class SomeClass { public void doSomething(Object object) { // do something } public void doSomething() { // do something } }As you can see, one of the doSomething() methods have a parameter which accepts an object. If you compile this class, you will not be given a duplicate method error. Your exercise is to create two different methods BOTH called getPlayer which one of them will accept a string called playerName and the other an integer called playerID. Duplicate Case Label This error occurs when a programmer is using a switch statement and attempts to compile when there are two of the same case labels. Here is an example of a duplicate case label, Code (Java): switch (expression) { case 1: // do something break; case 2: // do something break; case 2: // do something break; }Notice carefully and you will see two cases labelled with the number 2. This isnt allowed by the compiler so a fix would be like so, Code (Java): switch (expression) { case 1: // do something break; case 2: // do something break; case 3: // do something break; }You cant have multiple case labels. There is no exercise for this section. Missing Return Type A missing return type error indicates a method with no return type. A return type can be of an integer, boolean, char, string, etc. However this is not the case with constructors. Read up on constructors, [URL]http://java.sun.com/docs/books/tutorial/java/javaOO/constructors.html[/URL] Say we have a method like so, Code (Java): public doSomething() { // do something here }Why is it the compiler returns a missing return type error? Its due to the fact doSomething has no return type, unless the class was named doSomething it wouldnt invoke an error becasue its a constructor. To fix such an error just place the return type you wish after the public modifier (or before the method name). Here is the fix, Code (Java): public void doSomething() { // do something here }Remember that void isnt the only thing that can be used! You can use int, char, string, etc. Study this snippet, Code (Java): class DoSomething { public DoSomething() { // code goes here } }Does this give an error? Why or why doesnt it give an error? Missing Return Statement Missing return statements tie in with the section we went over above. Return types (other than void) must return a value. Code (Java): public int getInt() { System.out.println("Called getInt!"); }This simple method displays a message on the console. But there is a problem, a missing return statement error was thrown. Why? Like it says, we need the method to actually return something. All methods with a return type other than void requires a return statement. So to wrap this up, the fix would be, Code (Java): public int getInt() { System.out.println("Called getInt!"); return anInteger; }anInteger represents a variable which is of an integer. This also doesnt make a difference to boolean or other return types. Your exercise is to make a method with a boolean return type which will return a boolean variable called aBoolean. Variable Already Defined A variable already defined error is similar to the duplicate method error. It means a variable is defined more than once. Take a look at this example which shows two local variables which would give the error, Code (Java): private void doSomething() { int number = 1; int number = aVariable; System.out.println(number); }As you should be able to notice, the number variable is defined twice in the same method. Which isnt allowed. Same thing goes for global variables. Non-static Variable Cannot be Referenced from a static context This error comes up when a programmer attempts to use a variable without a static keyword with a method that does. You can read more on static here, [URL]http://java.sun.com/docs/books/tutorial/java/javaOO/initial.html[/URL] In the meantime, we have a class like so, Code (Java): class StaticExample { public int aVariable = 0; public static int getAVariable() { return aVariable; } }The problem lies with the aVariable. As you can see it has no static keyword. The fix would be to either make aVariable a static variable, or to make the getAVariable() method non-static. Very self-explanatory, a exercise shouldnt be needed. Class ... is public, should be declared in... This happens when a programmer tries to create a class that doesnt correspond to the name of the java file. Say for example we have a class named Client. Why would we get an error for having the following, Code (Java): public class SomethingElse { }The reason behind this is because the class is called SomethingElse when it really should be called Client. See the relationship? Heres an exercise (and perhaps a tricky one for beginners). If I had a constructor that was named after the java file, but NOT named after the class declaration (which is SomethingElse), would it work? Unreported Exception An unreported exception error will be thrown if a snippet of code requires to be within a try/catch statement. Take a look at this example, Code (Java): public void readFileInput() { FileInputStream fis = new FileInputStream("file.txt"); }The problem with this code is it is necessary to have it closed in a try/catch block. To read more on those refer here, [URL]http://java.sun.com/docs/books/tutorial/essential/exceptions/handling.html[/URL] In this case, a FileNotFoundException would be thrown if there happened to come an error. A fix would be to put all methods that require try/catch statements inside of one. Like so, Code (Java): public void readFileInput() { try { FileInputStream fis = new FileInputStream("file.txt"); } catch (FileNotFoundException ex) { // Handle error } }You also must import the class that corresponds to the exception. In this case you would need to import the FileNotFoundException class. Code (Java): import java.io.FileNotFoundException; Illegal Start of Expression An illegal start of expression can come up even when code looks perfectly fine, some common problems with this error are listed below. Defining a static field in a method isnt allowed, if you were to do this, Code (Java): public void aMethod() { static int variable = 5; }Another would be with unbalanced brace or regular brackets. Take a look at this if statement, Code (Java): if (1+(11)) == 12)You can see here there is an extra bracket that isnt supposed to be there. This section will be updated more. ... cannot be applied to ... This error comes up when the programmer invokes a method with incorrect parameters. Say for example we have this class, Code (Java): class SomeClass { public void sendMessage(String message, boolean isStaff) { // code here } public void run() { sendMessage("This is a message"); // other codes here } }This would give us an error that sendMessage(java.lang.String, boolean) in SomeClass cannot be applied to (java.lang.String). There is a simple explanation, due to the fact the sendMessage() method has two parameters; a string and a boolean, we only invoked the method with a string. To resolve this problem, we would also call sendMessage() with a string and boolean. This would be the fix, Code (Java): class SomeClass { public void sendMessage(String message, boolean isStaff) { // code here } public void run() { sendMessage("This is a message", true); // can be true or false // other codes here } }This also applies to whether its being called with a wrong type, too little or too many parameters. An exercise for you is, would having two different sendMessage() methods with different parameters fix the problem? Else without if An else without if error is pretty self explanatory, but I will go over it anyways. The result of such an error happens when using if statements or else/else if statements. Basically, a rule applies to else/else if statements - they need to have a beginning expression. What this means, is there needs to be an if statement before any else/else if statements. This is WRONG, Code (Java): else { // shit here }This is correct, Code (Java): if (expression) { // shit here } else { // shit here }This is WRONG, Code (Java): else if (expression) { // shit here } else { // shit here }This is correct, Code (Java): if (expression) { // shit here } else if (expression) { // shit here } else { // shit here }Hopefully you get the point. Credits: deathschaos9([email protected], I copied his thread) Project Evolution(Anthony`) I don't think we have this here, so can a mod please sticky this?
  2. Pup and colb

    Two errors

    okay guys i have two simple errors but i have never dealt with them so i have no idea what to do. i have tried google and youtube but they dont help. heres my errors. This error appears in the client cmd when i try to run it: [COLOR="#FF0000"]error_game_js5connect[/COLOR] this error is in the run cmd. [COLOR="#FF0000"]The system cannot find the path specified.[/COLOR] fixed the 2nd errors but now i get this: [code][2012/07/28 21:59:07] [alhassa-scape]: alhassa-scape framework [2012/07/28 21:59:07] [alhassa-scape]: Loaded 15558item prices. [2012/07/28 21:59:07] [alhassa-scape]: Loading Server GUI... [2012/07/28 21:59:08] [alhassa-scape]: Reading mapdata... [2012/07/28 21:59:08] [alhassa-scape]: Loaded mapdata. [2012/07/28 21:59:08] [alhassa-scape]: Loaded packet handlers. [2012/07/28 21:59:08] [alhassa-scape]: Loading item definitions... [2012/07/28 21:59:19] [alhassa-scape]: Loaded 12375 item definitions. [2012/07/28 22:00:17] [alhassa-scape]: Loading npc definitions... [2012/07/28 22:00:17] [alhassa-scape]: Loaded alhassa-scape 324 npc definitions. [2012/07/28 22:00:17] [alhassa-scape]: Loading world list data... [2012/07/28 22:00:17] [alhassa-scape]: Setting up alhassa-scape world... [2012/07/28 22:00:17] [alhassa-scape]: Loading clans.... [2012/07/28 22:00:17] [alhassa-scape]: Loaded 0 TkoScape clans. [2012/07/28 22:00:17] [alhassa-scape]: com.thoughtworks.xstream.converters.Conve rsionException: Cannot construct com.rs2hd.model.NPC as it does not have a no-ar gs constructor : Cannot construct com.rs2hd.model.NPC as it does not have a no-a rgs constructor ---- Debugging information ---- message : Cannot construct com.rs2hd.model.NPC as it does not have a no-args constructor cause-exception : com.thoughtworks.xstream.converters.reflection.ObjectAcces sException cause-message : Cannot construct com.rs2hd.model.NPC as it does not have a no-args constructor class : java.util.ArrayList required-type : com.rs2hd.model.NPC path : /list/npc line number : 3 ------------------------------- [2012/07/28 22:00:17] [alhassa-scape]: Cannot construct com.rs2hd.model.NPC as i t does not have a no-args constructor : Cannot construct com.rs2hd.model.NPC as it does not have a no-args constructor ---- Debugging information ---- message : Cannot construct com.rs2hd.model.NPC as it does not have a no-args constructor cause-exception : com.thoughtworks.xstream.converters.reflection.ObjectAcces sException cause-message : Cannot construct com.rs2hd.model.NPC as it does not have a no-args constructor class : java.util.ArrayList required-type : com.rs2hd.model.NPC path : /list/npc line number : 3 ------------------------------- [2012/07/28 22:00:17] [alhassa-scape]: com.thoughtworks.xstream.core.TreeUnmarsh aller.convert(TreeUnmarshaller.java:88) [2012/07/28 22:00:17] [alhassa-scape]: com.thoughtworks.xstream.core.AbstractRef erenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:55) [2012/07/28 22:00:17] [alhassa-scape]: com.thoughtworks.xstream.core.TreeUnmarsh aller.convertAnother(TreeUnmarshaller.java:75) [2012/07/28 22:00:17] [alhassa-scape]: com.thoughtworks.xstream.core.TreeUnmarsh aller.convertAnother(TreeUnmarshaller.java:59) [2012/07/28 22:00:17] [alhassa-scape]: com.thoughtworks.xstream.converters.colle ctions.AbstractCollectionConverter.readItem(AbstractCollectionConverter.java:77) [2012/07/28 22:00:17] [alhassa-scape]: com.thoughtworks.xstream.converters.colle ctions.CollectionConverter.populateCollection(CollectionConverter.java:68) [2012/07/28 22:00:17] [alhassa-scape]: com.thoughtworks.xstream.converters.colle ctions.CollectionConverter.unmarshal(CollectionConverter.java:61) [2012/07/28 22:00:17] [alhassa-scape]: com.thoughtworks.xstream.core.TreeUnmarsh aller.convert(TreeUnmarshaller.java:81) [2012/07/28 22:00:17] [alhassa-scape]: com.thoughtworks.xstream.core.AbstractRef erenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:55) [2012/07/28 22:00:17] [alhassa-scape]: com.thoughtworks.xstream.core.TreeUnmarsh aller.convertAnother(TreeUnmarshaller.java:75) [2012/07/28 22:00:17] [alhassa-scape]: com.thoughtworks.xstream.core.TreeUnmarsh aller.convertAnother(TreeUnmarshaller.java:59) [2012/07/28 22:00:17] [alhassa-scape]: com.thoughtworks.xstream.core.TreeUnmarsh aller.start(TreeUnmarshaller.java:142) [2012/07/28 22:00:17] [alhassa-scape]: com.thoughtworks.xstream.core.AbstractTre eMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:33) [2012/07/28 22:00:17] [alhassa-scape]: com.thoughtworks.xstream.XStream.unmarsha l(XStream.java:907) [2012/07/28 22:00:17] [alhassa-scape]: com.thoughtworks.xstream.XStream.unmarsha l(XStream.java:893) [2012/07/28 22:00:17] [alhassa-scape]: com.thoughtworks.xstream.XStream.fromXML( XStream.java:845) [2012/07/28 22:00:17] [alhassa-scape]: com.rs2hd.model.World.setEngine(World.jav a:415) [2012/07/28 22:00:17] [alhassa-scape]: com.rs2hd.Server.<init>(Server.java:73) [2012/07/28 22:00:17] [alhassa-scape]: com.rs2hd.Main$1.run(Main.java:36) [2012/07/28 22:00:17] [alhassa-scape]: java.lang.Thread.run(Unknown Source) [/code]
  3. well this is in the Clinet Folder. But i had gotten 100 errors so i tried to fix and now i got this.[ATTACH=CONFIG]6146[/ATTACH] And now i dont know what to do. If u think u can help would be very helpful. Been trying for 2 days now. What my clinet.java looks like.[ATTACH=CONFIG]6147[/ATTACH]
  4. starting... src\com\rs\game\player\dialogues\SlayerMaster.java:16: error: cannot find symbol Master master = player.getSlayerMaster(); ^ symbol: method getSlayerMaster() location: variable player of type Player src\com\rs\game\player\dialogues\SlayerMaster.java:18: error: cannot find symbol player.setSlayerMaster(Master.SPRIA); ^ symbol: method setSlayerMaster(Master) location: variable player of type Player src\com\rs\game\player\dialogues\SlayerMaster.java:26: error: cannot find symbol Master master = playergetSlayerMaster(); ^ symbol: method playergetSlayerMaster() location: class SlayerMaster src\com\rs\game\player\dialogues\SlayerMaster.java:30: error: cannot find symbol if (player.getSlayerTask() != null) { ^ symbol: method getSlayerTask() location: variable player of type Player src\com\rs\game\player\dialogues\SlayerMaster.java:48: error: cannot find symbol SlayerTask task = player.getSlayerTask(); ^ symbol: method getSlayerTask() location: variable player of type Player src\com\rs\game\player\dialogues\SlayerMaster.java:66: error: cannot find symbol + player.getSlayerTask().getName() ^ symbol: method getSlayerTask() location: variable player of type Player src\com\rs\game\player\dialogues\SlayerMaster.java:99: error: cannot find symbol if (player.getSlayerTask() != null) { ^ symbol: method getSlayerTask() location: variable player of type Player src\com\rs\game\player\dialogues\SlayerMaster.java:112: error: cannot find symbo l player.setSlayerMaster(Master.forId(npcI d)); ^ symbol: method forId(int) location: class Master Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 8 errors Press any key to continue . . . Someone please help me thanks :] didnt post out right the arrows are pointing at the dots like this player"."getslayertask
  5. Help me 69

    100 errors

    Can anyone please help me fix 100 errors on my 719 source and client if you could please help!!!!
  6. I cant fix these three errors!!! Any helpwill be thank! Heres a picture of errors: [url]http://i1053.photobucket.com/albums/s469/uiotube/Errors.jpg[/url] Here is my code that I am using in client.java. It is a loyaltyRank int: [CODE] public final String loyaltyRank(final int i) { switch (i) { case 1: return "Lord"; case 2: return "Lady"; case 3: return "Sir"; case 4: return "Dame"; case 5: return "Duderino"; case 6: return "Dudette"; case 7: return "Lionheart"; case 8: return "Crusader"; case 9: return "Hellraiser"; case 10: return "Desperado"; case 11: return "Baron"; case 12: return "Baroness"; case 13: return "Count"; case 14: return "Countess"; case 15: return "Overlord"; case 16: return "Overlordess"; case 17: return "Bandito"; case 18: return "Duke"; case 19: return "Duchess"; case 20: return "Big Cheese"; case 21: return "Bigwig"; case 22: return "King"; case 23: return "Queen"; case 24: return "Master"; default: return ""; } }[/CODE] If you guys could help me thatd be great! My skype name is: uiotube For those who might ask, yes i have teamviewer!
  7. Hey everyone! I need help with a few compiler errors! Here they are [CODE]src\com\rs\game\player\Pets.java:45: error: 'else' without 'if' else if { ^ src\com\rs\game\player\Pets.java:45: error: '(' expected else if { ^ src\com\rs\game\player\Pets.java:45: error: illegal start of expression else if { ^ src\com\rs\game\player\Pets.java:45: error: ')' expected else if { ^ src\com\rs\game\player\Pets.java:47: error: '.class' expected public int getNpcId { ^ src\com\rs\game\player\Pets.java:47: error: not a statement public int getNpcId { ^ src\com\rs\game\player\Pets.java:51: error: illegal start of expression public int getItemId { ^ src\com\rs\game\player\Pets.java:51: error: ';' expected public int getItemId { ^ src\com\rs\game\player\Pets.java:55: error: illegal start of expression public static Map<Integer, Pet> getItem() { ^ src\com\rs\game\player\Pets.java:55: error: illegal start of expression public static Map<Integer, Pet> getItem() { ^ src\com\rs\game\player\Pets.java:55: error: ';' expected public static Map<Integer, Pet> getItem() { ^ src\com\rs\game\player\Pets.java:55: error: illegal start of expression public static Map<Integer, Pet> getItem() { ^ src\com\rs\game\player\Pets.java:55: error: illegal start of expression public static Map<Integer, Pet> getItem() { ^ src\com\rs\game\player\Pets.java:55: error: not a statement public static Map<Integer, Pet> getItem() { ^ src\com\rs\game\player\Pets.java:55: error: ';' expected public static Map<Integer, Pet> getItem() { ^ src\com\rs\game\player\Pets.java:60: error: invalid method declaration; return t ype required public Pets(int npcId, Player owner, WorldTile tile, int mapAreaNameHash , ^ src\com\rs\game\player\Pets.java:225: error: reached end of file while parsing } ^ src\com\rs\tools\NPCSpawnsDumper.java:24: error: ')' expected for (int regionId = 0; regionId < 20000; regionId++() { ^ src\com\rs\tools\NPCSpawnsDumper.java:24: error: illegal start of expression for (int regionId = 0; regionId < 20000; regionId++() { ^ src\com\rs\tools\NPCSpawnsDumper.java:24: error: ';' expected for (int regionId = 0; regionId < 20000; regionId++() { ^ src\com\rs\tools\RuneWikiExaminesDumper.java:30: error: class, interface, or enu m expected public static boolean dumpItem(int itemId) { ^ src\com\rs\tools\RuneWikiExaminesDumper.java:32: error: class, interface, or enu m expected if (pageName == null || pageName.equals("null")) ^ src\com\rs\tools\RuneWikiExaminesDumper.java:34: error: class, interface, or enu m expected pageName = pageName.replace("(p)", ""); ^ src\com\rs\tools\RuneWikiExaminesDumper.java:35: error: class, interface, or enu m expected pageName = pageName.replace("(p+)", ""); ^ src\com\rs\tools\RuneWikiExaminesDumper.java:36: error: class, interface, or enu m expected pageName = pageName.replace("(p++)", ""); ^ src\com\rs\tools\RuneWikiExaminesDumper.java:37: error: class, interface, or enu m expected pageName = pageName.replaceAll(" ", "_"); ^ src\com\rs\tools\RuneWikiExaminesDumper.java:38: error: class, interface, or enu m expected try { ^ src\com\rs\tools\RuneWikiExaminesDumper.java:41: error: class, interface, or enu m expected try { ^ src\com\rs\tools\RuneWikiExaminesDumper.java:43: error: class, interface, or enu m expected } catch (Exception e) { ^ src\com\rs\tools\RuneWikiExaminesDumper.java:45: error: class, interface, or enu m expected return false; ^ src\com\rs\tools\RuneWikiExaminesDumper.java:46: error: class, interface, or enu m expected } ^ src\com\rs\tools\RuneWikiExaminesDumper.java:48: error: class, interface, or enu m expected for (String line : page.getLines()) { ^ src\com\rs\tools\RuneWikiExaminesDumper.java:52: error: class, interface, or enu m expected } else { ^ src\com\rs\tools\RuneWikiExaminesDumper.java:54: error: class, interface, or enu m expected examine = examine.replace("</th><td>", " "); ^ src\com\rs\tools\RuneWikiExaminesDumper.java:55: error: class, interface, or enu m expected examine = examine.replace("<i> ", ""); ^ src\com\rs\tools\RuneWikiExaminesDumper.java:56: error: class, interface, or enu m expected examine = examine.replace("</i> ", ""); ^ src\com\rs\tools\RuneWikiExaminesDumper.java:57: error: class, interface, or enu m expected examine = examine.replace("<colour> ; ", ""); ^ src\com\rs\tools\RuneWikiExaminesDumper.java:58: error: class, interface, or enu m expected examine = examine.replace("(bright/thick /warm)", "bright"); ^ src\com\rs\tools\RuneWikiExaminesDumper.java:59: error: class, interface, or enu m expected examine = examine.replace("(Temple of Ik ov) ", ""); ^ src\com\rs\tools\RuneWikiExaminesDumper.java:60: error: class, interface, or enu m expected examine = examine.replace("(Fight Arena) ", ""); ^ src\com\rs\tools\RuneWikiExaminesDumper.java:61: error: class, interface, or enu m expected try { ^ src\com\rs\tools\RuneWikiExaminesDumper.java:64: error: class, interface, or enu m expected writer.write(itemId + " - " + ex amine); ^ src\com\rs\tools\RuneWikiExaminesDumper.java:65: error: class, interface, or enu m expected writer.newLine(); ^ src\com\rs\tools\RuneWikiExaminesDumper.java:66: error: class, interface, or enu m expected writer.flush(); ^ src\com\rs\tools\RuneWikiExaminesDumper.java:67: error: class, interface, or enu m expected writer.close(); ^ src\com\rs\tools\RuneWikiExaminesDumper.java:68: error: class, interface, or enu m expected } catch (IOException e) { ^ src\com\rs\tools\RuneWikiExaminesDumper.java:70: error: class, interface, or enu m expected } ^ src\com\rs\tools\RuneWikiExaminesDumper.java:72: error: class, interface, or enu m expected } ^ src\com\rs\tools\RuneWikiExaminesDumper.java:76: error: class, interface, or enu m expected } catch (Exception e) { ^ src\com\rs\tools\RuneWikiExaminesDumper.java:78: error: class, interface, or enu m expected return dumpItem(itemId); ^ src\com\rs\tools\RuneWikiExaminesDumper.java:79: error: class, interface, or enu m expected } ^ src\com\rs\tools\RuneWikiExaminesDumper.java:81: error: class, interface, or enu m expected } ^ 52 errors Press any key to continue . . .[/CODE] Please connect with me over Team Viewer or explain how to fix each one. Your choice.
  8. I'm using Matrix Source, RScalifornia When i downloaded it, i already had 54 Errors, I fixed them literal all, with the help of the Member: Hash When i tried to compile once again, i had new 28 errors. It seems to be that these errors are a little different then the errors i had before, Symbol: Location: Although these are very hard to fix.. Does anyone here knows how to fix them?, That would be very appreciated I'm trying to start this 711 Runescape Private Server [img]http://screensnapr.com/e/vOjrGa.png[/img] Thanks a lot, the community has done a lot for me already.
  9. Hello. I've decided to try out a bit with the Azure RuneSource source just to have fun and learn from it. But I get these errors when I try to run the source in Eclipse (because if I Compile and Run it with the normal Batch files I get even more errors): [code] com.thoughtworks.xstream.converters.ConversionException: Cannot construct com.rs2.model.players.ItemManager$ItemDefinition as it does not have a no-args constructor : Cannot construct com.rs2.model.players.ItemManager$ItemDefinition as it does not have a no-args constructor ---- Debugging information ---- message : Cannot construct com.rs2.model.players.ItemManager$ItemDefinition as it does not have a no-args constructor cause-exception : com.thoughtworks.xstream.converters.reflection.ObjectAccessException cause-message : Cannot construct com.rs2.model.players.ItemManager$ItemDefinition as it does not have a no-args constructor class : java.util.ArrayList required-type : com.rs2.model.players.ItemManager$ItemDefinition path : /list/itemDef line number : 2 ------------------------------- at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:89) at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60) at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.readItem(AbstractCollectionConverter.java:71) at com.thoughtworks.xstream.converters.collections.CollectionConverter.populateCollection(CollectionConverter.java:68) at com.thoughtworks.xstream.converters.collections.CollectionConverter.unmarshal(CollectionConverter.java:61) at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82) at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60) at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:137) at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:33) at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:923) at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:909) at com.thoughtworks.xstream.XStream.fromXML(XStream.java:861) at com.rs2.model.players.ItemManager.loadItemDefinitions(ItemManager.java:216) at com.rs2.util.XStreamUtil.loadAllFiles(XStreamUtil.java:69) at com.rs2.Server.run(Server.java:57) at java.lang.Thread.run(Unknown Source) Caused by: com.thoughtworks.xstream.converters.reflection.ObjectAccessException: Cannot construct com.rs2.model.players.ItemManager$ItemDefinition as it does not have a no-args constructor at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.newInstance(PureJavaReflectionProvider.java:71) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.instantiateNewInstance(AbstractReflectionConverter.java:308) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:161) at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82) ... 19 more [/code] Also when I run the Client (Eclipse says it's called 'Tempest_Base') as an Applet I get an empty applet and not the normal gameclient. It's probably easy but, can someone tell me how to fix that? The Light.
  10. Hello, guys I just started this new 714 Runescape Private Server Everything seems to be right, unless those 54 errors i get everytime i try to compile I'm asking here if someone would like to fix them for me? If there is anyone here experienced with 714 Runescape Private servers Please post here, and i will Pm you my teamviewer details. [IMG]http://screensnapr.com/e/Nzhrru.png[/IMG] Guys, this means a lot to me. The Community helped me a lot so far, I'm really thankful for that.
  11. Just added hand cannon from this link : [url]http://www.rune-server.org/runescape-development/rs2-server/tutorials/332592-almost-100-hand-cannon-pi-dspk.html[/url] and im getting 100 errors when i compile can someone with teamviewer help please?
  12. ok before i was using jdk1.7.0_05 which only gave me 2 warning no errors now im use the 6 _33 gives me 11 errors and 2 warnings help to fix? how will i get that 51 verison? Compiling... warning: com\alex\store\Index.class(com\alex\store:Index.class): major version 5 1 is newer than 50, the highest major version supported by this compiler. It is recommended that the compiler be upgraded. warning: com\alex\io\OutputStream.class(com\alex\io:OutputStream.class): major v ersion 51 is newer than 50, the highest major version supported by this compiler . It is recommended that the compiler be upgraded. warning: com\alex\store\Store.class(com\alex\store:Store.class): major version 5 1 is newer than 50, the highest major version supported by this compiler. It is recommended that the compiler be upgraded. warning: com\alex\util\whirlpool\Whirlpool.class(com\alex\util\whirlpool:Whirlpo ol.class): major version 51 is newer than 50, the highest major version supporte d by this compiler. It is recommended that the compiler be upgraded. warning: com\alex\utils\Constants.class(com\alex\utils:Constants.class): major v ersion 51 is newer than 50, the highest major version supported by this compiler . It is recommended that the compiler be upgraded. warning: com\alex\io\Stream.class(com\alex\io:Stream.class): major version 51 is newer than 50, the highest major version supported by this compiler. It is recommended that the compiler be upgraded. warning: com\alex\store\ReferenceTable.class(com\alex\store:ReferenceTable.class ): major version 51 is newer than 50, the highest major version supported by thi s compiler. It is recommended that the compiler be upgraded. warning: com\alex\store\MainFile.class(com\alex\store:MainFile.class): major ver sion 51 is newer than 50, the highest major version supported by this compiler. It is recommended that the compiler be upgraded. src\com\rs\game\player\actions\PlayerCombat.java:2557: inconvertible types found : java.lang.Object required: int int specialId = (int) player.getTemporaryAttribu ttes().get( ^ src\com\rs\game\player\actions\PlayerCombat.java:2568: inconvertible types found : java.lang.Object required: int int specialId = (int) p2.getTemporaryAttributtes ().get( ^ src\com\rs\game\player\controlers\CastleWarsPlaying.java:29: inconvertible types found : java.lang.Object required: int team = (int) getArguments()[0]; ^ src\com\rs\game\player\controlers\CastleWarsWaiting.java:14: inconvertible types found : java.lang.Object required: int team = (int) getArguments()[0]; ^ src\com\rs\game\player\dialogues\FightCavesD.java:17: inconvertible types found : java.lang.Object required: int dstage = (int) parameters[0]; ^ src\com\rs\net\decoders\handlers\ObjectHandler.java:704: incompatible types found : java.lang.String required: int switch (objectDef.name.toLowerCase()) { ^ src\com\rs\net\decoders\handlers\ObjectHandler.java:964: incompatible types found : java.lang.String required: int switch (objectDef.name.toLowerCase()) { ^ src\com\rs\net\decoders\handlers\ObjectHandler.java:1085: incompatible types found : java.lang.String required: int switch (objectDef.name.toLowerCase()) { ^ src\com\rs\game\player\content\PlayerLook.java:104: inconvertible types found : java.lang.Object required: boolean if ((boolean) player.getTemporaryAttributtes().get("hair Saloon")) { ^ src\com\rs\game\player\dialogues\OzanD.java:18: inconvertible types found : java.lang.Object required: int npcId = (int) parameters[0]; ^ src\com\rs\game\player\dialogues\OzanD.java:19: inconvertible types found : java.lang.Object required: int questStage = (int) parameters[1]; ^ Note: src\com\rs\game\player\Inventory.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 11 errors 8 warnings Finished. Press any key to continue . . .
  13. when i run my Cmd i constantly get this error How can i fix this? [code][Launcher] Initing World... java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.LinkedList.checkElementIndex(LinkedList.java:553) at java.util.LinkedList.get(LinkedList.java:474) at com.rs.utils.ServerMessages.execute(ServerMessages.java:25) at com.rs.game.World$3.run(World.java:112) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:47 1) at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java :351) at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask. access$301(ScheduledThreadPoolExecutor.java:178) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask. run(ScheduledThreadPoolExecutor.java:293) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor. java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor .java:603) at java.lang.Thread.run(Thread.java:722) [Launcher] Initing Region Builder... [Launcher] Initing Server Channel Handler... [Launcher] Server took 10118 milli seconds to launch.[/code] Any help will be appericated.
  14. swag 4 life

    6 error's

    hello i got this error left can some1 help me? starting... src\com\rs\game\player\Player.java:968: error: '(' expected public void InterfaceManager getInterfaceManager() { ^ 1 error
  15. [code]src\com\rs\cores\WorldThread.java:42: error: cannot find symbol for (player player : world.getplayers()) { ^ symbol: class player location: class WorldThread src\com\rs\cores\WorldThread.java:42: error: cannot find symbol for (player player : world.getplayers()) { ^ symbol: variable world location: class WorldThread src\com\rs\cores\WorldThread.java:51: error: cannot find symbol for (Player player : World.getPlayers) { ^ symbol: variable getPlayers location: class World src\com\rs\game\player\Player.java:216: error: cannot find symbol if (slayerTask == null) ^ symbol: variable slayerTask location: class Player src\com\rs\game\player\Player.java:217: error: cannot find symbol slayerTask = new SlayerTask(); ^ symbol: variable slayerTask location: class Player src\com\rs\game\player\Player.java:247: error: cannot find symbol if (slayerTask == null) ^ symbol: variable slayerTask location: class Player src\com\rs\game\player\Player.java:248: error: cannot find symbol slayerTask = new SlayerTask(); ^ symbol: variable slayerTask location: class Player src\com\rs\game\npc\NPC.java:636: error: cannot find symbol if (killer.slayerTask.getTaskMonstersLeft() > 0) { ^ symbol: variable slayerTask location: variable killer of type Player src\com\rs\game\npc\NPC.java:637: error: cannot find symbol for (String m : killer.slayerTask.getTask().slayable) { ^ symbol: variable slayerTask location: variable killer of type Player src\com\rs\game\npc\NPC.java:639: error: cannot find symbol killer.slayerTask.onMonsterDeath(killer, this); ^ symbol: variable slayerTask location: variable killer of type Player src\com\rs\game\player\dialogues\Turael.java:41: error: cannot find symbol if (player.slayerTask.getTaskMonstersLeft() < 1) { ^ symbol: variable slayerTask location: variable player of type Player src\com\rs\game\player\dialogues\Turael.java:46: error: cannot find symbol + player.slayerTask.getTask().simpleName }, (byte) 1, 8461, 9827); ^ symbol: variable slayerTask location: variable player of type Player src\com\rs\game\player\dialogues\Turael.java:54: error: cannot find symbol + player.slayerTask.getTaskMonstersLeft() ^ symbol: variable slayerTask location: variable player of type Player src\com\rs\game\player\dialogues\Turael.java:56: error: cannot find symbol + player.slayerTask.getTask().simpleName, ^ symbol: variable slayerTask location: variable player of type Player src\com\rs\game\player\dialogues\Turael.java:62: error: cannot find symbol if (player.slayerTask.getTaskMonstersLeft() > 0) { ^ symbol: variable slayerTask location: variable player of type Player src\com\rs\game\player\dialogues\Turael.java:67: error: cannot find symbol + player.slayerTask.getTaskMonstersLeft() + " " ^ symbol: variable slayerTask location: variable player of type Player src\com\rs\game\player\dialogues\Turael.java:68: error: cannot find symbol + player.slayerTask.getTask() }, (byte) 1, 8461, 9827); ^ symbol: variable slayerTask location: variable player of type Player src\com\rs\game\player\dialogues\Turael.java:95: error: cannot find symbol + player.slayerTask.getTaskMonstersLeft() ^ symbol: variable slayerTask location: variable player of type Player src\com\rs\game\player\dialogues\Turael.java:97: error: cannot find symbol + player.slayerTask.getTask().simpleName }, ^ symbol: variable slayerTask location: variable player of type Player src\com\rs\tools\RuneWikiExaminesDumper.java:18: error: cannot find symbol if (!ItemDefinitions.getItemDefinitions(itemId).isNoted( )) ^ symbol: variable itemId location: class RuneWikiExaminesDumper src\com\rs\tools\RuneWikiExaminesDumper.java:19: error: cannot find symbol if (dumpItem(itemId)) ^ symbol: variable itemId location: class RuneWikiExaminesDumper src\com\rs\tools\RuneWikiExaminesDumper.java:20: error: cannot find symbol System.out.println("DUMPED ITEM : " + it emId); ^ symbol: variable itemId location: class RuneWikiExaminesDumper src\com\rs\tools\RuneWikiExaminesDumper.java:23: error: cannot find symbol + itemId ^ symbol: variable itemId location: class RuneWikiExaminesDumper src\com\rs\tools\RuneWikiExaminesDumper.java:25: error: cannot find symbol + ItemDefinitions.getIte mDefinitions(itemId) ^ symbol: variable itemId location: class RuneWikiExaminesDumper src\com\rs\utils\DonationManager.java:63: error: cannot find symbol if (!player.issuperDonator()) { ^ symbol: method issuperDonator() location: variable player of type Player src\com\rs\utils\DonationManager.java:64: error: cannot find symbol player.setsuperDonator(true); ^ symbol: method setsuperDonator(boolean) location: variable player of type Player src\com\rs\utils\DonationManager.java:82: error: cannot find symbol if (!player.issuperDonator()) { ^ symbol: method issuperDonator() location: variable player of type Player src\com\rs\utils\DonationManager.java:83: error: cannot find symbol player.setsuperDonator(true); ^ symbol: method setsuperDonator(boolean) location: variable player of type Player src\com\rs\utils\DonationManager.java:84: error: cannot find symbol if (!player.isextremeDonator()) { ^ symbol: method isextremeDonator() location: variable player of type Player src\com\rs\utils\DonationManager.java:85: error: cannot find symbol player.setextremeDonator(true); ^ symbol: method setextremeDonator(boolean) location: variable player of type Player src\com\rs\game\player\content\slayer\Slayer.java:26: error: cannot find symbol SlayerTask tasks = player.slayerTask; ^ symbol: variable slayerTask location: variable player of type Player Note: src\com\rs\game\player\Inventory.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 31 errors Druk op een toets om door te gaan. . .[/code] Please 1 help !! through teamviewer!
  16. When I compile I get this [CODE]A subdirectory or file bin already exists. The system cannot find the file specified. The system cannot find the file specified. Compiling core... src\com\rs2hd\packethandler\CommandsPacketHandler.java:251: unclosed string lite ral player.getActionSender().sendString("MORE COMEING SOON!2 75, 32); ^ src\com\rs2hd\packethandler\CommandsPacketHandler.java:251: ';' expected player.getActionSender().sendString("MORE COMEING SOON!2 75, 32); ^ src\com\rs2hd\packethandler\CommandsPacketHandler.java:941: 'catch' without 'try ' } catch(Exception e) { ^ src\com\rs2hd\packethandler\CommandsPacketHandler.java:941: ')' expected } catch(Exception e) { ^ src\com\rs2hd\packethandler\CommandsPacketHandler.java:941: not a statement } catch(Exception e) { ^ src\com\rs2hd\packethandler\CommandsPacketHandler.java:941: ';' expected } catch(Exception e) { ^ src\com\rs2hd\packethandler\CommandsPacketHandler.java:31: 'try' without 'catch' or 'finally' try { ^ src\com\rs2hd\packethandler\CommandsPacketHandler.java:947: reached end of file while parsing }→ ^ src\com\rs2hd\packethandler\CommandsPacketHandler.java:941: cannot find symbol symbol : variable e location: class com.rs2hd.packethandler.CommandsPacketHandler } catch(Exception e) { ^ src\com\rs2hd\packethandler\CommandsPacketHandler.java:942: cannot find symbol symbol : variable e location: class com.rs2hd.packethandler.CommandsPacketHandler player.getActionSender().sendMessage("Malformed command or error: " + e.getMessage() + "."); ^ src\com\rs2hd\packethandler\CommandsPacketHandler.java:943: cannot find symbol symbol : variable e location: class com.rs2hd.packethandler.CommandsPacketHandler e.printStackTrace(); ^ Note: src\com\rs2hd\packethandler\CommandPacketHandler.java uses unchecked or un safe operations. Note: Recompile with -Xlint:unchecked for details. 11 errors Compiling loginserver... src\com\rs2hd\packethandler\CommandsPacketHandler.java:251: unclosed string lite ral player.getActionSender().sendString("MORE COMEING SOON!2 75, 32); ^ src\com\rs2hd\packethandler\CommandsPacketHandler.java:251: ';' expected player.getActionSender().sendString("MORE COMEING SOON!2 75, 32); ^ src\com\rs2hd\packethandler\CommandsPacketHandler.java:941: 'catch' without 'try ' } catch(Exception e) { ^ src\com\rs2hd\packethandler\CommandsPacketHandler.java:941: ')' expected } catch(Exception e) { ^ src\com\rs2hd\packethandler\CommandsPacketHandler.java:941: not a statement } catch(Exception e) { ^ src\com\rs2hd\packethandler\CommandsPacketHandler.java:941: ';' expected } catch(Exception e) { ^ src\com\rs2hd\packethandler\CommandsPacketHandler.java:31: 'try' without 'catch' or 'finally' try { ^ src\com\rs2hd\packethandler\CommandsPacketHandler.java:947: reached end of file while parsing }→ ^ src\com\rs2hd\packethandler\CommandsPacketHandler.java:941: cannot find symbol symbol : variable e location: class com.rs2hd.packethandler.CommandsPacketHandler } catch(Exception e) { ^ src\com\rs2hd\packethandler\CommandsPacketHandler.java:942: cannot find symbol symbol : variable e location: class com.rs2hd.packethandler.CommandsPacketHandler player.getActionSender().sendMessage("Malformed command or error: " + e.getMessage() + "."); ^ src\com\rs2hd\packethandler\CommandsPacketHandler.java:943: cannot find symbol symbol : variable e location: class com.rs2hd.packethandler.CommandsPacketHandler e.printStackTrace(); ^ Note: src\com\rs2hd\packethandler\CommandPacketHandler.java uses unchecked or un safe operations. Note: Recompile with -Xlint:unchecked for details. 11 errors Compiling packet handlers... src\com\rs2hd\packethandler\CommandsPacketHandler.java:251: unclosed string lite ral player.getActionSender().sendString("MORE COMEING SOON!2 75, 32); ^ src\com\rs2hd\packethandler\CommandsPacketHandler.java:251: ';' expected player.getActionSender().sendString("MORE COMEING SOON!2 75, 32); ^ src\com\rs2hd\packethandler\CommandsPacketHandler.java:941: 'catch' without 'try ' } catch(Exception e) { ^ src\com\rs2hd\packethandler\CommandsPacketHandler.java:941: ')' expected } catch(Exception e) { ^ src\com\rs2hd\packethandler\CommandsPacketHandler.java:941: not a statement } catch(Exception e) { ^ src\com\rs2hd\packethandler\CommandsPacketHandler.java:941: ';' expected } catch(Exception e) { ^ src\com\rs2hd\packethandler\CommandsPacketHandler.java:31: 'try' without 'catch' or 'finally' try { ^ src\com\rs2hd\packethandler\CommandsPacketHandler.java:947: reached end of file while parsing }→ ^ 8 errors Compiling logging system... src\com\rs2hd\packethandler\CommandsPacketHandler.java:251: unclosed string lite ral player.getActionSender().sendString("MORE COMEING SOON!2 75, 32); ^ src\com\rs2hd\packethandler\CommandsPacketHandler.java:251: ';' expected player.getActionSender().sendString("MORE COMEING SOON!2 75, 32); ^ src\com\rs2hd\packethandler\CommandsPacketHandler.java:941: 'catch' without 'try ' } catch(Exception e) { ^ src\com\rs2hd\packethandler\CommandsPacketHandler.java:941: ')' expected } catch(Exception e) { ^ src\com\rs2hd\packethandler\CommandsPacketHandler.java:941: not a statement } catch(Exception e) { ^ src\com\rs2hd\packethandler\CommandsPacketHandler.java:941: ';' expected } catch(Exception e) { ^ src\com\rs2hd\packethandler\CommandsPacketHandler.java:31: 'try' without 'catch' or 'finally' try { ^ src\com\rs2hd\packethandler\CommandsPacketHandler.java:947: reached end of file while parsing }→ ^ src\com\rs2hd\packethandler\CommandsPacketHandler.java:941: cannot find symbol symbol : variable e location: class com.rs2hd.packethandler.CommandsPacketHandler } catch(Exception e) { ^ src\com\rs2hd\packethandler\CommandsPacketHandler.java:942: cannot find symbol symbol : variable e location: class com.rs2hd.packethandler.CommandsPacketHandler player.getActionSender().sendMessage("Malformed command or error: " + e.getMessage() + "."); ^ src\com\rs2hd\packethandler\CommandsPacketHandler.java:943: cannot find symbol symbol : variable e location: class com.rs2hd.packethandler.CommandsPacketHandler e.printStackTrace(); ^ Note: src\com\rs2hd\packethandler\CommandPacketHandler.java uses unchecked or un safe operations. Note: Recompile with -Xlint:unchecked for details. 11 errors Complete. [/CODE] Help me please I cant find out what I am supposed to do. I am new to RSPS and I need to make sure I get everything right and not mess up my source.
  17. Im using alhassa-scape source and i cant find the errors :o Skype: Owner_dak
  18. [IMG]http://img707.imageshack.us/img707/6251/120615121905.png[/IMG] Please help me with these Errors ill give REP, I really need help!! -.-
  19. DJ`

    multiple errors

    i am going to make this brief, no pictures. i upgraded computers, i was using a very old one with xp, now i am on windows 7 and can't get any clients or servers to load. if anyone can help me i will pay rsgp thanks!
  20. Skype: x25xquinton Basically when ever i use ANYTHING with mysql, weather its auto donating, voting or high schores i get errors. I dont know if im setting it up wrong or what but if someone can come and tell me the problem and fix i will pay. I really need this and its annoying cause when the error does show up it randomly dcs the server. Iam also using hosting24.com for my webhost. ERRORS [IMG]http://i47.tinypic.com/1zgthc0.png[/IMG] [IMG]http://i50.tinypic.com/23k7nkj.png[/IMG]
  21. src\server\world\ObjectManager.java:91: error: method checkObjectSpawn in class PlayerAssistant cannot be applied to given types; c.getPA().checkObjectSpawn(409, 2508, 3866, 10); ^ required: int,int,int,int,int found: int,int,int,int reason: actual and formal argument lists differ in length Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 1 error Press any key to continue . . . this is the error i get when trying to compile, its in objectmanager,java trying to add a spec altar.
  22. Okay so I added a new feature in my server; it announces when a player reaches the max level. I compiled and had 100 errors. Help? :D EDIT: SOLVED. But I still have 14 errors, and I didn't even edit them? [CODE]src\server\model\npcs\NPCHandler.java:2962: error: illegal start of expression public void follownpc(int i, int playerId) { ^ src\server\model\npcs\NPCHandler.java:2962: error: illegal start of expression public void follownpc(int i, int playerId) { ^ src\server\model\npcs\NPCHandler.java:2962: error: ';' expected public void follownpc(int i, int playerId) { ^ src\server\model\npcs\NPCHandler.java:2962: error: <identifier> expected public void follownpc(int i, int playerId) { ^ src\server\model\npcs\NPCHandler.java:2962: error: not a statement public void follownpc(int i, int playerId) { ^ src\server\model\npcs\NPCHandler.java:2962: error: ';' expected public void follownpc(int i, int playerId) { ^ src\server\model\npcs\NPCHandler.java:3048: error: illegal start of expression public boolean checkClipping(int i) { ^ src\server\model\npcs\NPCHandler.java:3048: error: ';' expected public boolean checkClipping(int i) { ^ src\server\model\npcs\NPCHandler.java:3048: error: ';' expected public boolean checkClipping(int i) { ^ src\server\model\npcs\NPCHandler.java:3061: error: illegal start of expression private Client v; ^ src\server\model\npcs\NPCHandler.java:3062: error: illegal start of expression public NPCHandler(Client Client) { ^ src\server\model\npcs\NPCHandler.java:3062: error: ')' expected public NPCHandler(Client Client) { ^ src\server\model\npcs\NPCHandler.java:3062: error: illegal start of expression public NPCHandler(Client Client) { ^ src\server\model\npcs\NPCHandler.java:3062: error: ';' expected public NPCHandler(Client Client) { ^ 14 errors Press any key to continue . . .[/CODE]
  23. server sided in ItemDefinitions replace readValues with this [CODE]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 == 117) opcode117 = stream.readUnsignedByte(); else if (opcode == 82) opcode82 = stream.readUnsignedByte(); else if (opcode == 13) opcode13 = stream.readUnsignedByte(); else if (opcode == 14) opcode14 = stream.readUnsignedByte(); else if (opcode == 9) opcode9 = stream.readUnsignedByte(); else if (opcode == 27) opcode27 = stream.readUnsignedByte(); else if (opcode == 66) opcode66 = stream.readUnsignedByte(); else if (opcode == 116) opcode116 = stream.readUnsignedByte(); else if (opcode == 157) opcode157 = stream.readUnsignedByte(); else if (opcode == 244) opcode244 = stream.readUnsignedByte(); else if (opcode == 170) opcode170 = stream.readUnsignedByte(); else if (opcode == 151) opcode151 = stream.readUnsignedByte();// 14 66 116 157 244 170 151 9 27 else if (opcode == 16) membersOnly = true; else if (opcode == 18) // added stream.readUnsignedShort(); 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 >= 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 throw new RuntimeException("MISSING OPCODE " + opcode + " FOR ITEM " + id); }[/CODE] Then add this [CODE]private int opcode13; private int opcode82; private int opcode117; private int opcode66; private int opcode116; private int opcode157; private int opcode244; private int opcode170; private int opcode151; private int opcode14; private int opcode27; private int opcode9;[/CODE] then client sided in ItemDefinitions replace method1681 with this [CODE]private final void method1681(BufferedStream buffer, boolean bool, int opcode) { if (opcode == 1) { anInt1898 = buffer.readBigSmart(); } else if (opcode != 2) { if (opcode == 4) { anInt1874 = buffer.readUnsignedShort(); } else if (opcode == 5) { anInt1884 = buffer.readUnsignedShort(); } else if ((opcode ^ 0xffffffff) == -7) { anInt1869 = buffer.readUnsignedShort(); } else if (opcode == 7) { anInt1905 = buffer.readUnsignedShort(); if ((anInt1905 ^ 0xffffffff) < -32768) { anInt1905 -= 65536; } } else if (opcode == 8) { anInt1875 = buffer.readUnsignedShort(); if (anInt1875 > 32767) { anInt1875 -= 65536; } } else if ((opcode ^ 0xffffffff) == -12) { anInt1892 = 1; } else if (opcode == 12) { anInt1924 = buffer.readInt(); } else if (opcode == 13) opcode13 = buffer.readUnsignedByte(); else if (opcode == 14) opcode14 = buffer.readUnsignedByte(); else if (opcode == 9) opcode9 = buffer.readUnsignedByte(); else if (opcode == 27) opcode27 = buffer.readUnsignedByte(); else if (opcode == 66) opcode66 = buffer.readUnsignedByte(); else if (opcode == 116) opcode116 = buffer.readUnsignedByte(); else if (opcode == 157) opcode157 = buffer.readUnsignedByte(); else if (opcode == 244) opcode244 = buffer.readUnsignedByte(); else if (opcode == 170) opcode170 = buffer.readUnsignedByte(); else if (opcode == 151) opcode151 = buffer.readUnsignedByte();// 14 66 116 157 244 170 151 9 27 else if (opcode == 82) opcode82 = buffer.readUnsignedByte(); else if (opcode == 117) opcode117 = buffer.readUnsignedByte(); else if ((opcode ^ 0xffffffff) != -17) { if (opcode != 18) { if ((opcode ^ 0xffffffff) != -24) { if (opcode != 24) { if (opcode != 25) { if ((opcode ^ 0xffffffff) == -27) { femaleWornModelId2 = buffer.readBigSmart(); } else if ((opcode ^ 0xffffffff) > -31 || (opcode ^ 0xffffffff) <= -36) { if ((opcode ^ 0xffffffff) <= -36 && (opcode ^ 0xffffffff) > -41) { aStringArray1901[-35 + opcode] = buffer .readString(); } else if (opcode != 40) { if (opcode == 41) { int i_18_ = buffer .readUnsignedByte(); originalTextureColors = new short[i_18_]; modifiedTextureColors = new short[i_18_]; for (int i_19_ = 0; (i_18_ ^ 0xffffffff) < (i_19_ ^ 0xffffffff); i_19_++) { originalTextureColors[i_19_] = (short) buffer .readUnsignedShort(); modifiedTextureColors[i_19_] = (short) buffer .readUnsignedShort(); } } else if (opcode != 42) { if ((opcode ^ 0xffffffff) != -66) { if ((opcode ^ 0xffffffff) == -79) { maleWornModelId3 = buffer .readBigSmart(); } else if (opcode != 79) { if (opcode != 90) { if (opcode == 91) { anInt1863 = buffer .readBigSmart(); } else if (opcode != 92) { if ((opcode ^ 0xffffffff) == -94) { anInt1897 = buffer .readBigSmart(); } else if ((opcode ^ 0xffffffff) != -96) { if ((opcode ^ 0xffffffff) != -97) { if (opcode != 97) { if ((opcode ^ 0xffffffff) == -99) { anInt1857 = buffer .readUnsignedShort(); } else if (opcode < 100 || opcode >= 110) { if ((opcode ^ 0xffffffff) != -111) { if (opcode != 111) { if ((opcode ^ 0xffffffff) == -113) { anInt1896 = buffer .readUnsignedShort(); } else if ((opcode ^ 0xffffffff) == -114) { anInt1876 = buffer .readByte(); } else if ((opcode ^ 0xffffffff) != -115) { if (opcode != 115) { if (opcode != 121) { if (opcode == 122) { anInt1852 = buffer .readUnsignedShort(); } else if ((opcode ^ 0xffffffff) != -126) { if (opcode != 126) { if ((opcode ^ 0xffffffff) == -128) { anInt1908 = buffer .readUnsignedByte(); anInt1889 = buffer .readUnsignedShort(); } else if (opcode != 128) { if (opcode != 129) { if (opcode == 130) { anInt1864 = buffer .readUnsignedByte(); anInt1862 = buffer .readUnsignedShort(); } else if (opcode == 132) { int i_20_ = buffer .readUnsignedByte(); anIntArray1926 = new int[i_20_]; for (int i_21_ = 0; i_20_ > i_21_; i_21_++) anIntArray1926[i_21_] = buffer .readUnsignedShort(); } else if (opcode == 134) { anInt1919 = buffer .readUnsignedByte(); } else if ((opcode ^ 0xffffffff) == -140) { anInt1891 = buffer .readUnsignedShort(); } else if ((opcode ^ 0xffffffff) == -141) { anInt1928 = buffer .readUnsignedShort(); } else if ((opcode ^ 0xffffffff) == -250) { int i_22_ = buffer .readUnsignedByte(); if (aHashTable1873 == null) { int i_23_ = Class320_Sub19 .method3753( i_22_, -729073628); aHashTable1873 = new HashTable( i_23_); } for (int i_24_ = 0; i_22_ > i_24_; i_24_++) { boolean bool_25_ = buffer .readUnsignedByte() == 1; int i_26_ = buffer .read24BitInteger(); Node node; if (!bool_25_) { node = new Node_Sub32( buffer.readInt()); } else { node = new Node_Sub18( buffer.readString()); } aHashTable1873 .method1515( (long) i_26_, node, -127); } } } else { anInt1900 = buffer .readUnsignedByte(); anInt1859 = buffer .readUnsignedShort(); } } else { anInt1849 = buffer .readUnsignedByte(); anInt1851 = buffer .readUnsignedShort(); } } else { anInt1890 = buffer .readByte() << 2; anInt1893 = buffer .readByte() << 2; anInt1916 = buffer .readByte() << 2; } } else { anInt1931 = buffer .readByte() << 2; anInt1930 = buffer .readByte() << 2; anInt1895 = buffer .readByte() << 2; } } else { anInt1927 = buffer .readUnsignedShort(); } } else { anInt1899 = buffer .readUnsignedByte(); } } else { anInt1886 = buffer .readByte() * 5; } } else { anInt1911 = buffer .readUnsignedShort(); } } else { anInt1904 = buffer .readUnsignedShort(); } } else { if (anIntArray1918 == null) { anIntArray1872 = new int[10]; anIntArray1918 = new int[10]; } anIntArray1918[opcode - 100] = buffer .readUnsignedShort(); anIntArray1872[-100 + opcode] = buffer .readUnsignedShort(); } } else { anInt1887 = buffer .readUnsignedShort(); } } else { anInt1877 = buffer .readUnsignedByte(); } } else { anInt1866 = buffer .readUnsignedShort(); } } else { anInt1888 = buffer .readBigSmart(); } } else { anInt1913 = buffer .readBigSmart(); } } else { femaleWornModelId3 = buffer .readBigSmart(); } } else { aBoolean1933 = true; } } else { int i_27_ = buffer .readUnsignedByte(); aByteArray1882 = new byte[i_27_]; for (int i_28_ = 0; i_27_ > i_28_; i_28_++) aByteArray1882[i_28_] = buffer .readByte(); } } else { int i_29_ = buffer.readUnsignedByte(); aShortArray1856 = new short[i_29_]; aShortArray1865 = new short[i_29_]; for (int i_30_ = 0; i_29_ > i_30_; i_30_++) { aShortArray1856[i_30_] = (short) buffer .readUnsignedShort(); aShortArray1865[i_30_] = (short) buffer .readUnsignedShort(); } } } else { aStringArray1920[opcode + -30] = buffer .readString(); } } else { femaleWornModelId1 = buffer.readBigSmart(); } } else { maleWornModelId2 = buffer.readBigSmart(); } } else { maleWornModelId1 = buffer.readBigSmart(); } } else { anInt1879 = buffer.readUnsignedShort(); } } else { aBoolean1871 = true; } } else { aString1860 = buffer.readString(); } anInt1922++; if (bool != false) { anInt1879 = 4; } }[/CODE] Then add this [CODE]private int opcode13; private int opcode82; private int opcode117; private int opcode66; private int opcode116; private int opcode157; private int opcode244; private int opcode170; private int opcode151; private int opcode14; private int opcode27; private int opcode9;[/CODE] Use rscd method to download runescape cache, GL
  24. Hey, im adding in the News server messages from a tutorial. I get these errors, if someone could that would be good ;) Thanks. Errors: [CODE]starting compiler process... src\com\rs\game\player\dialogues\L*****p.java:59: error: illegal start of type if (level == 99 || level == 120) ^ src\com\rs\game\player\dialogues\L*****p.java:59: error: <identifier> expected if (level == 99 || level == 120) ^ src\com\rs\game\player\dialogues\L*****p.java:59: error: ';' expected if (level == 99 || level == 120) ^ src\com\rs\game\player\dialogues\L*****p.java:59: error: illegal start of type if (level == 99 || level == 120) ^ src\com\rs\game\player\dialogues\L*****p.java:59: error: ';' expected if (level == 99 || level == 120) ^ src\com\rs\game\player\dialogues\L*****p.java:60: error: ';' expected for (Player players : World.getPlayers()) { ^ src\com\rs\game\player\dialogues\L*****p.java:60: error: <identifier> expected for (Player players : World.getPlayers()) { ^ src\com\rs\game\player\dialogues\L*****p.java:60: error: ';' expected for (Player players : World.getPlayers()) { ^ 8 errors Correctly Compiled Press any key to continue . . .[/CODE] Code: [CODE]} if (level == 99 || level == 120) for (Player players : World.getPlayers()) { players.getPackets().sendGameMessage( "<col=006600><shad=000000><img=6>News:<col=ff0033>" + player.getDisplayName() + " has reached level 99 in <col=ff0033>" + name + "</col>"); }[/CODE]
  25. hey, i added this new base to me mining.java and when i compile i get this error's [code] package server.model.players.skills; import server.model.players.*; import server.Config; import server.util.Misc; public class Mining { Client c; private final int VALID_PICK[] = {1265,1267,1269,1273,1271,1275}; private final int[] PICK_REQS = {1,1,6,6,21,31,41,61}; private final int[] RANDOM_GEMS = {1623,1621,1619,1617,1631}; private int oreType; private int exp; private int EMOTE; public Mining(Client c) { this.c = c; } public void startMining(int oreType, int levelReq, int exp) { if (c.isBanking() || c.isShopping() || c.isTrading()) return; c.turnPlayerTo(c.objectX, c.objectY); if (goodPick() > 0) { if (c.playerLevel[c.playerMining] >= levelReq) { this.oreType = oreType; this.exp = exp; goodPick(); c.sendMessage("You swing your pick at the rock."); c.miningTimer = getMiningTimer(oreType); c.startAnimation(EMOTE); } else { resetMining(); c.sendMessage("You need a mining level of " + levelReq + " to mine this rock."); c.startAnimation(65535); } } else { resetMining(); c.sendMessage("You need a pickaxe to mine this rock."); c.startAnimation(65535); c.getPA().resetVariables(); } if(c.playerEquipment[c.playerWeapon] == 1265){ EMOTE = 6747; }else if(c.playerEquipment[c.playerWeapon] == 1267){ EMOTE = 6748; }else if(c.playerEquipment[c.playerWeapon] == 1269){ EMOTE = 6749; }else if(c.playerEquipment[c.playerWeapon] == 1273){ EMOTE = 6751; }else if(c.playerEquipment[c.playerWeapon] == 1271){ EMOTE = 6750; }else if(c.playerEquipment[c.playerWeapon] == 1275) EMOTE = 6746; } public void mineOre() { if (c.getItems().addItem(oreType,1)) { c.startAnimation(EMOTE); c.sendMessage("You manage to mine some ore."); c.getPA().addSkillXP(exp * Config.MINING_EXPERIENCE, c.playerMining); c.getPA().refreshSkill(c.playerMining); c.miningTimer = getMiningTimer(oreType); if (Misc.random(25) == 10) { c.getItems().addItem(RANDOM_GEMS[(int)(RANDOM_GEMS.length * Math.random())], 1); c.sendMessage("You find a gem!"); } } else { c.getPA().resetVariables(); c.startAnimation(65535); } } public void resetMining() { this.oreType = -1; this.exp = -1; } public int goodPick() { for (int j = VALID_PICK.length - 1; j >= 0; j--) { if (c.playerEquipment[c.playerWeapon] == VALID_PICK[j]) { if (c.playerLevel[c.playerMining] >= PICK_REQS[j]) return VALID_PICK[j]; } } for (int i = 0; i < c.playerItems.length; i++) { for (int j = VALID_PICK.length - 1; j >= 0; j--) { if (c.playerItems[i] == VALID_PICK[j] + 1) { if (c.playerLevel[c.playerMining] >= PICK_REQS[j]) return VALID_PICK[j]; } } } return - 1; } public int getMiningTimer(int ore) { int time = Misc.random(10); if (ore == 451) { time += 4; } return time; } } [/code] [IMG]http://i50.tinypic.com/wit2l3.png[/IMG]
×