Thread: useitem help

Results 1 to 4 of 4
  1. #1 useitem help 
    Registered Member
    Join Date
    Oct 2012
    Posts
    266
    Thanks given
    7
    Thanks received
    6
    Rep Power
    29
    okay, so what im trying to do is make custom construction here's one of the codes i got so far, but im not sure how to make it so you cant make the object without 65 runecrafting(i use runecrafting as construction on my server, for now)


    if ((itemUsed == 8330 &&useWith == 2347)) {//gilded altar + hammer
    if (c.playerLevel[c.playerRunecrafting] >= 65)
    c.getPA().object(13619, c.absX, c.absY, c.heightLevel, 10);
    c.getPA().addSkillXP(2000, 20);
    c.startAnimation(898);
    c.getItems().deleteItem(8330,c.getItems().getItemS lot(8330),1);
    c.sendMessage("You Build a altar and gain some experience.");
    } else {
    c.sendMessage("You need a construction level of 65.");
    }


    This is what i have, and when im 1 runecrafting i can still make it.
    Help anyone?
    Reply With Quote  
     

  2. #2  
    Officially Retired


    Join Date
    Oct 2007
    Age
    30
    Posts
    5,454
    Thanks given
    558
    Thanks received
    122
    Rep Power
    1364
    Code:
    		if (itemUsed == 8330 && useWith == 2347 || itemUsed == 2347 && useWith == 8330) {
    			if (c.playerLevel[c.playerRunecrafting] >= 65) {
    				c.getPA().object(13619, c.absX, c.absY, c.heightLevel, 10);
                                    c.getPA().addSkillXP(2000, 20);
                                    c.startAnimation(898);
                                    c.getItems().deleteItem(8330,c.getItems().getItemS lot(8330),1);
    				c.sendMessage("You Build a altar and gain some experience.");
    			} else {
    				c.sendMessage("You need a construction level of 65.");
    			}
    		}
    Try this code.
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Oct 2012
    Posts
    266
    Thanks given
    7
    Thanks received
    6
    Rep Power
    29
    EDIT: works good, thanks m9
    Reply With Quote  
     

  4. #4  
    Officially Retired


    Join Date
    Oct 2007
    Age
    30
    Posts
    5,454
    Thanks given
    558
    Thanks received
    122
    Rep Power
    1364
    Quote Originally Posted by quantums View Post
    EDIT: works good, thanks m9
    No problem
    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. useItem problem pls help!
    By shlomi84 in forum Help
    Replies: 11
    Last Post: 04-22-2012, 02:31 AM
  2. UseItem.java need help [PI]
    By lilchicken77 in forum Help
    Replies: 2
    Last Post: 12-29-2011, 04:11 AM
  3. Help With UseItem
    By ChaoticPvp in forum Help
    Replies: 9
    Last Post: 11-13-2011, 05:48 AM
  4. Replies: 2
    Last Post: 02-06-2011, 11:47 PM
  5. Need help choosing sig
    By Zane in forum Showcase
    Replies: 7
    Last Post: 04-02-2007, 03:14 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
  •