Thread: Using an item on another. [PI]

Results 1 to 2 of 2
  1. #1 Using an item on another. [PI] 
    Registered Member
    Join Date
    Dec 2011
    Posts
    128
    Thanks given
    17
    Thanks received
    3
    Rep Power
    18
    Can anyone give me the base code for using an item on another, then removing the 2 items used and adding a new one? +Rep if anyone can do this for me.
    Reply With Quote  
     

  2. #2  
    OoO Donor <3
    Rockstar Jax's Avatar
    Join Date
    Mar 2011
    Age
    24
    Posts
    608
    Thanks given
    77
    Thanks received
    78
    Rep Power
    21
    useitem.java

    Code:
    		if (itemUsed == 11235 && useWith == 10537 || itemUsed == 10537 && useWith == 11235) {
    				c.getItems().deleteItem(useWith, c.getItems().getItemSlot(useWith),1);
    				c.getItems().deleteItem(itemUsed, c.getItems().getItemSlot(itemUsed),1);
    				c.getItems().addItem(15703,1);	
    		}
    change to your needs

    <-- amateur sig skills dont hate
    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. Replies: 3
    Last Post: 02-06-2012, 07:03 AM
  2. Replies: 1
    Last Post: 07-21-2011, 01:23 AM
  3. Replies: 2
    Last Post: 03-23-2010, 10:17 PM
  4. Replies: 23
    Last Post: 09-10-2009, 03:29 AM
  5. Replies: 26
    Last Post: 03-13-2009, 07:49 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
  •