Thread: Coding runecrafting Error (need help)

Results 1 to 5 of 5
  1. #1 Coding runecrafting Error (need help) 
    Registered Member
    Join Date
    Aug 2008
    Posts
    19
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    Hi i've come to you for help on my coding (RuneCrafting) its some how not working: Here's what the compiler said after compiling.......

    Code:
    client.java:7557: cannot find symbol
    symbol  : variable objectID
    location: class client
                            if (objectID == 2486); {
                                ^
    Here's what it looks like in the Client.java (the whole runecrafting thing):

    Code:
    	public void craftNats(int requiredlvl, int expadd, int itemtoadd) {
    		int essamount = 0;
    
    			if (playerHasItem(1436)) {
    			if (playerLevel[20] >= requiredlvl) {
    			if (playerLevel[20] >= 0) {
    			essamount = amountOfItem(1436);
    		}
    			for (int i = 0; i < 29; i++) {
    			deleteItem(1436, getItemSlot(1436), i);
    		}
    			addSkillXP(expadd*essamount, 20);
    			addItem(itemtoadd, essamount);
    			setAnimation(791);
    		}
    			} else if (!playerHasItem(1436)) {
    			sendMessage("You need some rune essence to craft runes!");
    			} 
    			if (objectID == 2486); {
    			craftNats(1, 250, 561);
    
    		}
    	}
    If you know what your doing you'll be able to help me on this without a problem!

    P.S. If you want to help me out you can come on my server and make suggestions or even fix some of the problems i may have.
    Reply With Quote  
     

  2. #2  
    Registered Member

    Join Date
    Dec 2007
    Age
    32
    Posts
    551
    Thanks given
    0
    Thanks received
    2
    Rep Power
    503
    *sigh*...

    First off with your if statement.

    Code:
    if (objectID == 2486); {
    ; is not needed at all. it should look like

    Code:
    if (objectID == 2486) {
    For ever { we need a }

    You need to add the parameter int objectID

    Code:
    (int requiredlvl, int expadd, int itemtoadd, int objectID)
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Aug 2008
    Posts
    19
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    Explain what you mean? I haven't coded in over 2 months.....

    Code:
    (int requiredlvl, int expadd, int itemtoadd, int objectID)
    Reply With Quote  
     

  4. #4  
    Banned

    Join Date
    Apr 2009
    Posts
    568
    Thanks given
    2
    Thanks received
    10
    Rep Power
    0
    read it. required lvl = 44
    expadd = amount of xp per nature
    itemtoadd = id of nats
    id = id of the altar i believe
    I've never done runecrafting yet, but hey. all i can do is try and help you.
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Aug 2008
    Posts
    19
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    one thing idk what it would look like as a code......

    read it. required lvl = 44
    expadd = amount of xp per nature
    itemtoadd = id of nats
    id = id of the altar i believe
    I've never done runecrafting yet, but hey. all i can do is try and help you.
    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

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •