Thread: X Bones on Altar [PI]

Results 1 to 6 of 6
  1. #1 X Bones on Altar [PI] 
    Registered Member
    Join Date
    Apr 2012
    Posts
    33
    Thanks given
    3
    Thanks received
    0
    Rep Power
    11
    Ok, so I have no idea why this happened.
    I followed everything what the tut said: http://www.rune-server.org/runescape...nes-altar.html
    And when I compiled it gave me this:

    Code:
    src\server\content\Prayer.java:140: error: cannot find symbol
                                    c.getPA().addSkillXP(getExp(id)*2*Config.PRAYER_
    EXPERIENCE, 5);
                                                         ^
      symbol:   method getExp(int)
      location: class Prayer
    src\server\content\Prayer.java:161: error: cannot find symbol
                                                    c.getPA().addSkillXP(getExp(id)*
    2*Config.PRAYER_EXPERIENCE, 5);
                                                                         ^
      symbol: method getExp(int)
    src\server\model\items\UseItem.java:51: error: cannot find symbol
                                    if (c.getPrayer().isBone(itemId) && c.usingAltar
    ==false) {
                                                     ^
      symbol:   method isBone(int)
      location: class Prayer
    Note: Some input files use unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    3 errors
    Press any key to continue . . .
    Someone tell me how to fix this?
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Jan 2009
    Posts
    525
    Thanks given
    1
    Thanks received
    8
    Rep Power
    29
    Try getXP instead of getExp.
    Reply With Quote  
     

  3. #3  
    Registered Member

    Join Date
    Mar 2011
    Posts
    527
    Thanks given
    89
    Thanks received
    49
    Rep Power
    97
    Here, just use these.

    Code:
    	public boolean isBone(int id) {
    		for (int j = 0; j < bonesExp.length; j++) {
    			if (bonesExp[j][0] == id) {
    				return true;
    			}
    		}
    		return false;
    	}
    Code:
    	public int getExp(int id) {
    		for (int j = 0; j < bonesExp.length; j++) {
    			if (bonesExp[j][0] == id) {
    				return bonesExp[j][1];
    			}
    		}
    		return 0;
    	}
    Let me know if you're still having problems with it.
    sweet
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Apr 2012
    Posts
    33
    Thanks given
    3
    Thanks received
    0
    Rep Power
    11
    Code:
    src\server\content\Prayer.java:96: error: cannot find symbol
                    for (int j = 0; j < bonesExp.length; j++) {
                                        ^
      symbol:   variable bonesExp
      location: class Prayer
    src\server\content\Prayer.java:97: error: cannot find symbol
                            if (bonesExp[j][0] == id) {
                                ^
      symbol:   variable bonesExp
      location: class Prayer
    src\server\content\Prayer.java:98: error: cannot find symbol
                                    return bonesExp[j][1];
                                           ^
      symbol:   variable bonesExp
      location: class Prayer
    src\server\content\Prayer.java:138: error: cannot find symbol
                                    c.getPA().addSkillXP(getXP(id)*2*Config.PRAYER_E
    XPERIENCE, 5);
                                                         ^
      symbol:   method getXP(int)
      location: class Prayer
    src\server\model\items\UseItem.java:51: error: cannot find symbol
                                    if (c.getPrayer().isBone(itemId) && c.usingAltar
    ==false) {
                                                     ^
      symbol:   method isBone(int)
      location: class Prayer
    src\server\model\players\packets\ClickItem.java:171: error: cannot find symbol
                    if (c.getPrayer().IsABone(itemId))
                                     ^
      symbol:   method IsABone(int)
      location: class Prayer
    Note: Some input files use unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    6 errors
    Press any key to continue . . .
    Reply With Quote  
     

  5. #5  
    Banned

    Join Date
    Dec 2011
    Posts
    967
    Thanks given
    234
    Thanks received
    208
    Rep Power
    0
    You obviously don't have the methods getExp in class Prayer. And since it seems that it's a method that YOUR supposed to make, it would make sense if you'd add it (should return XP when you pass in bone id).

    Other than that, method isBone in whatever getter getPrayer (assuming its prayer class) is not defined.
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Apr 2012
    Posts
    33
    Thanks given
    3
    Thanks received
    0
    Rep Power
    11
    Ok, so ive managed to fix some errors but dont know how to fix these



    Code:
    src\server\content\Prayer.java:140: error: cannot find symbol
                                    c.getPA().addSkillXP(getExp(id)*2*Config.PRAYER_
    EXPERIENCE, 5);
                                                         ^
      symbol:   method getExp(int)
      location: class Prayer
    src\server\content\Prayer.java:161: error: cannot find symbol
                                                    c.getPA().addSkillXP(getExp(id)*
    2*Config.PRAYER_EXPERIENCE, 5);
                                                                         ^
      symbol: method getExp(int)
    src\server\model\items\UseItem.java:51: error: cannot find symbol
                                    if (c.getPrayer().isBone(itemId) && c.usingAltar
    ==false) {
                                                     ^
      symbol:   method isBone(int)
      location: class Prayer
    Note: Some input files use unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    3 errors
    Press any key to continue . . .
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. [PI] All Bones and Bones On Altar
    By Dexter Morgan in forum Snippets
    Replies: 44
    Last Post: 04-20-2014, 05:43 AM
  2. pi bones on altar
    By Raverz in forum Help
    Replies: 15
    Last Post: 07-31-2012, 04:36 AM
  3. [PI] Bone Burying | Bones on Altar
    By L__A in forum Snippets
    Replies: 5
    Last Post: 07-16-2012, 10:54 AM
  4. [PI] Bones on Altar Error
    By Shonx in forum Help
    Replies: 0
    Last Post: 06-22-2012, 06:41 PM
  5. PI Bones on altar
    By walex80 in forum Help
    Replies: 2
    Last Post: 11-23-2011, 11:10 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •