Thread: Item on item codes

Results 1 to 6 of 6
  1. #1 Item on item codes 
    Registered Member
    Valkynaz's Avatar
    Join Date
    May 2007
    Age
    29
    Posts
    646
    Thanks given
    1
    Thanks received
    28
    Rep Power
    732
    I am in dire need of an example item on item code that when i use the item on another item, it uses multiple items such as when creating a slayer helmet in real runescape. And it also contains something along the lines of if you do not have the correct items, it will not let you make the item and it also displays "you do not have the required items".

    Thanks
    Lewis/Valkynaz
    Reply With Quote  
     

  2. #2  
    Registered Member
    Auruo's Avatar
    Join Date
    Mar 2008
    Age
    32
    Posts
    750
    Thanks given
    21
    Thanks received
    15
    Rep Power
    499
    Code:
    	if ((itemUsed == 93 && useWith == 235) || (itemUsed == 235 && useWith == 93)) {
    		if(playerLevel[15] >= 5) {
    			deleteItem(93, getItemSlot(93), 1);
    			deleteItem(235, getItemSlot(235), 1);
    			addItem(175, 1);
    			addSkillXP(152, 15);
    			sendMessage("You make an anti-poison potion.");
    			} else {
    			sendMessage("You must have a Herblore level of 5 or higher to make this potion.");
    			}
    	}
    Simple example.
    Reply With Quote  
     

  3. #3  
    *Rs-Coding*
    Guest
    Use Auruo code that should work..
    Reply With Quote  
     

  4. #4  
    Registered Member
    Valkynaz's Avatar
    Join Date
    May 2007
    Age
    29
    Posts
    646
    Thanks given
    1
    Thanks received
    28
    Rep Power
    732
    Quote Originally Posted by Auruo View Post
    Code:
    	if ((itemUsed == 93 && useWith == 235) || (itemUsed == 235 && useWith == 93)) {
    		if(playerLevel[15] >= 5) {
    			deleteItem(93, getItemSlot(93), 1);
    			deleteItem(235, getItemSlot(235), 1);
    			addItem(175, 1);
    			addSkillXP(152, 15);
    			sendMessage("You make an anti-poison potion.");
    			} else {
    			sendMessage("You must have a Herblore level of 5 or higher to make this potion.");
    			}
    	}
    Simple example.
    That is basically a item + item = item, i need code where you use for example (this isn't what i want) you use a black mask on a facemask, it automatically uses the other items required to make a slayer helmet.
    Reply With Quote  
     

  5. #5  
    Registered Member
    Auruo's Avatar
    Join Date
    Mar 2008
    Age
    32
    Posts
    750
    Thanks given
    21
    Thanks received
    15
    Rep Power
    499
    Code:
    	if ((itemUsed == 93 && useWith == 235) || (itemUsed == 235 && useWith == 93)) {
    		if (playerHasItem(4312) && playerHasItem(566) && playerHasItemAmount(995,500)) {
    			if(playerLevel[15] >= 5) {
    				deleteItem(93, getItemSlot(93), 1);
    				deleteItem(235, getItemSlot(235), 1);
    				deleteItem(4312, getItemSlot(4312), 1);
    				deleteItem(566, getItemSlot(566), 1);
    				deleteItem(995, getItemSlot(995), 500);
    				addItem(175, 1);
    				addSkillXP(152, 15);
    				sendMessage("You make an anti-poison potion.");
    				} else {
    				sendMessage("You must have a Herblore level of 5 or higher to make this potion.");
    				}
    			} else {
    			sendMessage("You must have a gold bar, example 2, big pen0r, 500 coins and a rune scimitar in your inventory to make this.");
    			}
    	}
    How about this?
    Reply With Quote  
     

  6. #6  
    Registered Member
    Core's Avatar
    Join Date
    Sep 2007
    Posts
    4,194
    Thanks given
    11
    Thanks received
    393
    Rep Power
    1985
    Code:
    if ((itemUsed == BlackMask && useWith == facemask) || (itemUsed == facemask && usewith == blackmask))
    {
    deleteItem(facemask, 1);
    deleteItem(blackmask, 1);
    addItem(SlayerHelmet, 1);
    sendMessage("Your a fucking boss, you can make two masks make a helmet!");
    }
    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
  •