Thread: itemonitem

Results 1 to 2 of 2
  1. #1 itemonitem 
    Registered Member
    Join Date
    Mar 2014
    Posts
    24
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    i want to make it so i can use a fire cape with another item to turn it into the tokhaar kal cape. Ive done it before but its been a very very long time and i cant remember how to do it. i dont have anything to look at to remind me of what the code looks like..

    im a noob and need help!

    i just need it so when i use the fire cape with this item, it will delete the fire cape and the item and give me the tokhaar kal instead.
    Reply With Quote  
     

  2. #2  
    Irathient Developer

    mr selby's Avatar
    Join Date
    May 2011
    Age
    28
    Posts
    1,183
    Thanks given
    95
    Thanks received
    166
    Rep Power
    97
    Code:
    if ((itemUsed == 6570 && useWith == itemID) || (itemUsed == itemID && useWith == 6570)) {
    				c.getItems().deleteItem(6570, c.getItems().getItemSlot(6570), 1);
    				c.getItems().deleteItem(itemID, c.getItems().getItemSlot(itemID), 1);
    				c.getItems().addItem(cape ID,1);
    				c.sendMessage("You combine the two materials to create a TokHaar-Kal.");
    		}
    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. Adding/Fixing ItemOnItem.java
    By elwappo08 in forum Tutorials
    Replies: 33
    Last Post: 02-15-2009, 01:36 PM
  2. [508]ItemOnItem Help
    By iZAjz in forum Help
    Replies: 14
    Last Post: 02-08-2009, 02:44 AM
  3. ItemonItem DCing?
    By Nikki in forum Help
    Replies: 2
    Last Post: 02-05-2009, 05:35 AM
  4. ItemOnItem packet - Emulous
    By baghori1 in forum Snippets
    Replies: 8
    Last Post: 01-17-2009, 02:19 PM
  5. ItemOnItem handler
    By Laxika in forum Tutorials
    Replies: 21
    Last Post: 10-11-2008, 11:17 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
  •