Thread: Item on Item

Results 1 to 6 of 6
  1. #1 Item on Item 
    Learning Code
    Riddler's Avatar
    Join Date
    Oct 2012
    Posts
    338
    Thanks given
    10
    Thanks received
    16
    Rep Power
    13
    What file is used for Item on Item like crystal keys and god sword shards?




    Reply With Quote  
     

  2. #2  
    xd


    Join Date
    Oct 2007
    Age
    28
    Posts
    6,078
    Thanks given
    98
    Thanks received
    488
    Rep Power
    5000
    ItemOnObject?
    Quote Originally Posted by clem585 View Post
    Wat. Reading java doc isn't going to teach you anything. It's like reading the dictionary to learn grammatical rules.
    Reply With Quote  
     

  3. #3  
    Donator
    Unlucky4ever's Avatar
    Join Date
    Nov 2007
    Age
    30
    Posts
    524
    Thanks given
    46
    Thanks received
    72
    Rep Power
    37
    Depends on the revision...
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Jan 2010
    Posts
    696
    Thanks given
    109
    Thanks received
    29
    Rep Power
    3
    ItemsHandler.java on 718 and find ItemOnItem
    Reply With Quote  
     

  5. #5  
    Donator

    Josh''s Avatar
    Join Date
    Jul 2012
    Age
    26
    Posts
    2,036
    Thanks given
    1,119
    Thanks received
    520
    Rep Power
    192
    inventoryoptionshandler
    Reply With Quote  
     

  6. #6  
    Coder in training
    Alienware's Avatar
    Join Date
    Oct 2011
    Age
    27
    Posts
    517
    Thanks given
    35
    Thanks received
    58
    Rep Power
    12
    If your using matrix:

    /src/com/rs/net/decoders/handlers/InventoryOptionsHandler.java

    Code:
                    if (itemUsed.getId() == 11692 || usedWith.getId() == 11710) {
                        if (player.getInventory().containsItem(11692, 1)
                                        && player.getInventory().containsItem(11710, 1)) {
                                player.getInventory().deleteItem(11692, 1);
                                player.getInventory().deleteItem(11710, 1);
                                player.getInventory().addItem(11690, 1);
    							player.getPackets().sendGameMessage("You made a godsword blade.");
                        }
                    }
    The:
    Code:
                        if (player.getInventory().containsItem(11692, 1)
                                        && player.getInventory().containsItem(11710, 1)) {
    is if you want to make sure they have another item in their inventory such as a hammer.
    Quote Originally Posted by Alienware
    The heart of a server is its community.
    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. [RS2D] Working item on item
    By Zachyboo in forum Tutorials
    Replies: 4
    Last Post: 06-12-2008, 04:07 PM
  2. teaching: item on item.
    By sik pure in forum Tutorials
    Replies: 4
    Last Post: 02-03-2008, 10:10 PM
  3. Replies: 1
    Last Post: 01-25-2008, 08:55 PM
  4. Explaining item on item
    By Zachyboo in forum Tutorials
    Replies: 3
    Last Post: 09-21-2007, 04:36 PM
  5. Use items on items.
    By Shiver in forum Tutorials
    Replies: 3
    Last Post: 05-30-2007, 10:27 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
  •