Thread: Herblore

Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1 Herblore 
    Donator

    Divide's Avatar
    Join Date
    Dec 2007
    Age
    25
    Posts
    816
    Thanks given
    3
    Thanks received
    0
    Rep Power
    91
    !~!HERBLORE!~!



    Purpose: To Add Herblore Potions.


    Difficulty: 2/10

    Assumed Knowledge: To know how to search and copy/paste.

    Server Base: Cleaned V4

    Classes Modified: Client.java



    What This includes:

    -Adding Herbs To Vials (Making Unfinished Potions)

    -Adding Other Items to The unfinished Potions (to Make Real Potions)

    -Emptying Vials Of Water

    - A Cookie (If your nice )



    procedure:


    1. Open Client.java and search for:



    Code:
    case 53:


    Which is Item on Item, And above:

    Code:
    
    if(itemUsed ==


    Add:



    Code:
    
    //Start Herblore - Dangt351
    //Start Unfinished Potion Making
                                     else if(itemUsed == 249 && useWith == 227) {
         deleteItem(249, getItemSlot(249), 1);
         deleteItem(227, getItemSlot(227), 1);
         addItem(91, 1);
         sendMessage("You add a Guam herb to the vial!");
        }
        else if(itemUsed == 227 && useWith == 249) {
         deleteItem(249, getItemSlot(249), 1);
         deleteItem(227, getItemSlot(227), 1);
         addItem(91, 1);
         sendMessage("You add a Guam herb to the vial!");
        }
        else if(itemUsed == 251 && useWith == 227) {
         deleteItem(251, getItemSlot(251), 1);
         deleteItem(227, getItemSlot(227), 1);
         addItem(93, 1);
         sendMessage("You add a Marrentill herb to the vial!");
        }
        else if(itemUsed == 227 && useWith == 251) {
         deleteItem(251, getItemSlot(251), 1);
         deleteItem(227, getItemSlot(227), 1);
         addItem(93, 1);
         sendMessage("You add a Marrentill herb to the vial!");
        }
        else if(itemUsed == 253 && useWith == 227) {
         deleteItem(253, getItemSlot(253), 1);
         deleteItem(227, getItemSlot(227), 1);
         addItem(95, 1);
         sendMessage("You add a Tarromin herb to the vial!");
        }
        else if(itemUsed == 227 && useWith == 253) {
         deleteItem(253, getItemSlot(253), 1);
         deleteItem(227, getItemSlot(227), 1);
         addItem(95, 1);
         sendMessage("You add a Tarromin herb to the vial!");
        }
        else if(itemUsed == 255 && useWith == 227) {
         deleteItem(255, getItemSlot(255), 1);
         deleteItem(227, getItemSlot(227), 1);
         addItem(97, 1);
         sendMessage("You add a Harralander Herb to the vial!");
        }
        else if(itemUsed == 227 && useWith == 255) {
         deleteItem(255, getItemSlot(2559), 1);
         deleteItem(227, getItemSlot(227), 1);
         addItem(97, 1);
         sendMessage("You add a Harralander Herb to the vial!");
        }
        else if(itemUsed == 257 && useWith == 227) {
         deleteItem(257, getItemSlot(257), 1);
         deleteItem(227, getItemSlot(227), 1);
         addItem(99, 1);
         sendMessage("You add a Ranarr Weed to the vial!");
        }
        else if(itemUsed == 227 && useWith == 257) {
         deleteItem(257, getItemSlot(257), 1);
         deleteItem(227, getItemSlot(227), 1);
         addItem(99, 1);
         sendMessage("You add a Ranarr Weed to the vial!");
        }
        else if(itemUsed == 259 && useWith == 227) {
         deleteItem(259, getItemSlot(259), 1);
         deleteItem(227, getItemSlot(227), 1);
         addItem(101, 1);
         sendMessage("You add a Irit leaf to the vial!");
        }
        else if(itemUsed == 227 && useWith == 259) {
         deleteItem(259, getItemSlot(259), 1);
         deleteItem(227, getItemSlot(227), 1);
         addItem(101, 1);
         sendMessage("You add a Irit leaf to the vial!");
        }
        else if(itemUsed == 261 && useWith == 227) {
         deleteItem(261, getItemSlot(261), 1);
         deleteItem(227, getItemSlot(227), 1);
         addItem(103, 1);
         sendMessage("You add a Avantoe Herb to the vial!");
        }
        else if(itemUsed == 227 && useWith == 261) {
         deleteItem(261, getItemSlot(261), 1);
         deleteItem(227, getItemSlot(227), 1);
         addItem(103, 1);
         sendMessage("You add a Avantoe Herb to the vial!");
        }
        else if(itemUsed == 263 && useWith == 227) {
         deleteItem(263, getItemSlot(263), 1);
         deleteItem(227, getItemSlot(227), 1);
         addItem(105, 1);
         sendMessage("You add a Kwuarm Herb to the vial!");
        }
        else if(itemUsed == 227 && useWith == 263) {
         deleteItem(263, getItemSlot(263), 1);
         deleteItem(227, getItemSlot(227), 1);
         addItem(105, 1);
         sendMessage("You add a Kwuarm Herb to the vial!");
        }
        else if(itemUsed == 265 && useWith == 227) {
         deleteItem(265, getItemSlot(265), 1);
         deleteItem(227, getItemSlot(227), 1);
         addItem(107, 1);
         sendMessage("You add a Cadantine Herb to the vial!");
        }
        else if(itemUsed == 227 && useWith == 265) {
         deleteItem(265, getItemSlot(265), 1);
         deleteItem(227, getItemSlot(227), 1);
         addItem(107, 1);
         sendMessage("You add a Cadantine Herb to the vial!");
        }
        else if(itemUsed == 267 && useWith == 227) {
         deleteItem(267, getItemSlot(267), 1);
         deleteItem(227, getItemSlot(227), 1);
         addItem(109, 1);
         sendMessage("You add a Dwarf weed to the vial!");
        }
        else if(itemUsed == 227 && useWith == 267) {
         deleteItem(267, getItemSlot(267), 1);
         deleteItem(227, getItemSlot(227), 1);
         addItem(109, 1);
         sendMessage("You add a Dwarf weed to the vial!");
        }
        else if(itemUsed == 269 && useWith == 227) {
         deleteItem(269, getItemSlot(269), 1);
         deleteItem(227, getItemSlot(227), 1);
         addItem(111, 1);
         sendMessage("You add a Torstol herb to the vial!");
        }
        else if(itemUsed == 227 && useWith == 269) {
         deleteItem(269, getItemSlot(269), 1);
         deleteItem(227, getItemSlot(227), 1);
         addItem(111, 1);
         sendMessage("You add a Torstol herb to the vial!");
        }
        //End Unfinished Potion Making
                                    //Start Pot Making
        else if(itemUsed == 91 && useWith == 221) {
         if(playerLevel[15] >= 3) {
          deleteItem(91, getItemSlot(91), 1);
          deleteItem(221, getItemSlot(221), 1);
          addItem(121, 1);
          addSkillXP(100, 15);
          sendMessage("You make an attack potion!");
         } else {
          sendMessage("You need a higher herblore level to make this potion.");
         }
        }
        else if(itemUsed == 221 && useWith == 91) {
         if(playerLevel[15] >= 3) {
          deleteItem(91, getItemSlot(91), 1);
          deleteItem(221, getItemSlot(221), 1);
          addItem(121, 1);
          addSkillXP(100, 15);
          sendMessage("You make an attack potion!");
         } else {
          sendMessage("You need a higher herblore level to make this potion.");
         }
        }
        else if(itemUsed == 93 && useWith == 235) {
         if(playerLevel[15] >= 5) {
          deleteItem(93, getItemSlot(93), 1);
          deleteItem(235, getItemSlot(235), 1);
          addItem(175, 1);
          addSkillXP(40, 15);
          sendMessage("You make an anti poison potion!");
         } else {
          sendMessage("You need a higher herblore level to make this potion.");
         }
        }
        else if(itemUsed == 235 && useWith == 93) {
         if(playerLevel[15] >= 5) {
          deleteItem(93, getItemSlot(93), 1);
          deleteItem(235, getItemSlot(235), 1);
          addItem(175, 1);
          addSkillXP(40, 15);
          sendMessage("You make an anti poison potion!");
         } else {
          sendMessage("You need a higher herblore level to make this potion.");
         }
        }
        else if(itemUsed == 95 && useWith == 225) {
         if(playerLevel[15] >= 12) {
          deleteItem(95, getItemSlot(95), 1);
          deleteItem(225, getItemSlot(225), 1);
          addItem(115, 1);
          addSkillXP(150, 15);
          sendMessage("You make a strength potion potion!");
         } else {
          sendMessage("You need a higher herblore level to make this potion.");
         }
        }
        else if(itemUsed == 225 && useWith == 95) {
         if(playerLevel[15] >= 12) {
          deleteItem(95, getItemSlot(95), 1);
          deleteItem(225, getItemSlot(225), 1);
          addItem(115, 1);
          addSkillXP(150, 15);
          sendMessage("You make a strength potion!");
         } else {
          sendMessage("You need a higher herblore level to make this potion.");
         }
        }
        else if(itemUsed == 97 && useWith == 223) {
         if(playerLevel[15] >= 22) {
          deleteItem(97, getItemSlot(97), 1);
          deleteItem(223, getItemSlot(223), 1);
          addItem(127, 1);
          addSkillXP(60, 15);
          sendMessage("You make a stat restore potion!");
         } else {
          sendMessage("You need a higher herblore level to make this potion.");
         }
        }
        else if(itemUsed == 223 && useWith == 97) {
         if(playerLevel[15] >= 22) {
          deleteItem(97, getItemSlot(97), 1);
          deleteItem(223, getItemSlot(223), 1);
          addItem(127, 1);
          addSkillXP(60, 15);
          sendMessage("You make a stat restore potion!");
         } else {
          sendMessage("You need a higher herblore level to make this potion.");
         }
        }
        else if(itemUsed == 97 && useWith == 1975) {
         if(playerLevel[15] >= 26) {
          deleteItem(97, getItemSlot(97), 1);
          deleteItem(1975, getItemSlot(1975), 1);
          addItem(3010, 1);
          addSkillXP(70, 15);
          sendMessage("You make an energy potion!");
         } else {
          sendMessage("You need a higher herblore level to make this potion.");
         }
        }
        else if(itemUsed == 1975 && useWith == 97) {
         if(playerLevel[15] >= 26) {
          deleteItem(97, getItemSlot(97), 1);
          deleteItem(1975, getItemSlot(1975), 1);
          addItem(3010, 1);
          addSkillXP(70, 15);
          sendMessage("You make an energy potion!");
         } else {
          sendMessage("You need a higher herblore level to make this potion.");
         }
        }
        else if(itemUsed == 99 && useWith == 239) {
         if(playerLevel[15] >= 30) {
          deleteItem(99, getItemSlot(99), 1);
          deleteItem(239, getItemSlot(239), 1);
          addItem(133, 1);
          addSkillXP(125, 15);
          sendMessage("You make a defence potion!");
         } else {
          sendMessage("You need a higher herblore level to make this potion.");
         }
        }
        else if(itemUsed == 239 && useWith == 99) {
         if(playerLevel[15] >= 30) {
          deleteItem(99, getItemSlot(99), 1);
          deleteItem(239, getItemSlot(239), 1);
          addItem(133, 1);
          addSkillXP(125, 15);
          sendMessage("You make a defence potion!");
         } else {
          sendMessage("You need a higher herblore level to make this potion.");
         }
        }
        else if(itemUsed == 99 && useWith == 231) {
         if(playerLevel[15] >= 38) {
          deleteItem(99, getItemSlot(99), 1);
          deleteItem(231, getItemSlot(231), 1);
          addItem(139, 1);
          addSkillXP(150, 15);
          sendMessage("You make a prayer restore potion!");
         } else {
          sendMessage("You need a higher herblore level to make this potion.");
         }
        }
        else if(itemUsed == 231 && useWith == 99) {
         if(playerLevel[15] >= 38) {
          deleteItem(99, getItemSlot(99), 1);
          deleteItem(231, getItemSlot(231), 1);
          addItem(139, 1);
          addSkillXP(150, 15);
          sendMessage("You make a prayer restore potion!");
         } else {
          sendMessage("You need a higher herblore level to make this potion.");
         }
        }
        else if(itemUsed == 101 && useWith == 221) {
         if(playerLevel[15] >= 45) {
          deleteItem(101, getItemSlot(101), 1);
          deleteItem(221, getItemSlot(221), 1);
          addItem(145, 1);
          addSkillXP(200, 15);
          sendMessage("You make a super attack potion!");
         } else {
          sendMessage("You need a higher herblore level to make this potion.");
         }
        }
        else if(itemUsed == 221 && useWith == 101) {
         if(playerLevel[15] >= 45) {
          deleteItem(101, getItemSlot(101), 1);
          deleteItem(221, getItemSlot(221), 1);
          addItem(145, 1);
          addSkillXP(200, 15);
          sendMessage("You make a super attack potion!");
         } else {
          sendMessage("You need a higher herblore level to make this potion.");
         }
        }
        else if(itemUsed == 101 && useWith == 235) {
         if(playerLevel[15] >= 48) {
          deleteItem(101, getItemSlot(101), 1);
          deleteItem(235, getItemSlot(235), 1);
          addItem(181, 1);
          addSkillXP(100, 15);
          sendMessage("You make a super anti poison potion!");
         } else {
          sendMessage("You need a higher herblore level to make this potion.");
         }
        }
        else if(itemUsed == 235 && useWith == 101) {
         if(playerLevel[15] >= 48) {
          deleteItem(101, getItemSlot(101), 1);
          deleteItem(235, getItemSlot(235), 1);
          addItem(181, 1);
          addSkillXP(100, 15);
          sendMessage("You make a super anti poison potion!");
         } else {
          sendMessage("You need a higher herblore level to make this potion.");
         }
        }
        else if(itemUsed == 103 && useWith == 231) {
         if(playerLevel[15] >= 50) {
          deleteItem(103, getItemSlot(103), 1);
          deleteItem(231, getItemSlot(231), 1);
          addItem(151, 1);
          addSkillXP(115, 15);
          sendMessage("You make a fishing potion!");
         } else {
          sendMessage("You need a higher herblore level to make this potion.");
         }
        }
        else if(itemUsed == 231 && useWith == 103) {
         if(playerLevel[15] >= 50) {
          deleteItem(103, getItemSlot(103), 1);
          deleteItem(231, getItemSlot(231), 1);
          addItem(151, 1);
          addSkillXP(115, 15);
          sendMessage("You make a fishing potion!");
         } else {
          sendMessage("You need a higher herblore level to make this potion.");
         }
        }
        else if(itemUsed == 103 && useWith == 2970) {
         if(playerLevel[15] >= 52) {
          deleteItem(103, getItemSlot(103), 1);
          deleteItem(2970, getItemSlot(2970), 1);
          addItem(3018, 1);
          addSkillXP(120, 15);
          sendMessage("You make a super energy potion!");
         } else {
          sendMessage("You need a higher herblore level to make this potion.");
         }
        }
        else if(itemUsed == 2970 && useWith == 103) {
         if(playerLevel[15] >= 52) {
          deleteItem(103, getItemSlot(103), 1);
          deleteItem(2970, getItemSlot(2970), 1);
          addItem(3018, 1);
          addSkillXP(120, 15);
          sendMessage("You make a super energy potion!");
         } else {
          sendMessage("You need a higher herblore level to make this potion.");
         }
        }
        else if(itemUsed == 105 && useWith == 225) {
         if(playerLevel[15] >= 55) {
          deleteItem(105, getItemSlot(105), 1);
          deleteItem(225, getItemSlot(225), 1);
          addItem(157, 1);
          addSkillXP(180, 15);
          sendMessage("You make a super strength potion!");
         } else {
          sendMessage("You need a higher herblore level to make this potion.");
         }
        }
        else if(itemUsed == 225 && useWith == 105) {
         if(playerLevel[15] >= 55) {
          deleteItem(105, getItemSlot(105), 1);
          deleteItem(225, getItemSlot(225), 1);
          addItem(157, 1);
          addSkillXP(180, 15);
          sendMessage("You make a super strength potion!");
         } else {
          sendMessage("You need a higher herblore level to make this potion.");
         }
        }
        else if(itemUsed == 105 && useWith == 241) {
         if(playerLevel[15] >= 60) {
          deleteItem(105, getItemSlot(105), 1);
          deleteItem(241, getItemSlot(241), 1);
          addItem(187, 1);
          addSkillXP(140, 15);
          sendMessage("You make a weapon poisoning potion!");
         } else {
          sendMessage("You need a higher herblore level to make this potion.");
         }
        }
        else if(itemUsed == 241 && useWith == 105) {
         if(playerLevel[15] >= 60) {
          deleteItem(105, getItemSlot(105), 1);
          deleteItem(241, getItemSlot(241), 1);
          addItem(187, 1);
          addSkillXP(140, 15);
          sendMessage("You make a weapon poisoning potion!");
         } else {
          sendMessage("You need a higher herblore level to make this potion.");
         }
        }
        else if(itemUsed == 109 && useWith == 245) {
         if(playerLevel[15] >= 72) {
          deleteItem(109, getItemSlot(109), 1);
          deleteItem(245, getItemSlot(245), 1);
          addItem(169, 1);
          addSkillXP(165, 15);
          sendMessage("You make a ranging potion!");
         } else {
          sendMessage("You need a higher herblore level to make this potion.");
         }
        }
        else if(itemUsed == 245 && useWith == 109) {
         if(playerLevel[15] >= 72) {
          deleteItem(109, getItemSlot(109), 1);
          deleteItem(245, getItemSlot(245), 1);
          addItem(169, 1);
          addSkillXP(165, 15);
          sendMessage("You make a ranging potion!");
         } else {
          sendMessage("You need a higher herblore level to make this potion.");
         }
        }
        else if(itemUsed == 111 && useWith == 247) {
         if(playerLevel[15] >= 78) {
          deleteItem(111, getItemSlot(111), 1);
          deleteItem(247, getItemSlot(247), 1);
          addItem(121, 1);
          addSkillXP(250, 15);
          sendMessage("You make a zamorak brew potion!");
         } else {
          sendMessage("You need a higher herblore level to make this potion.");
         }
        }
        else if(itemUsed == 247 && useWith == 111) {
         if(playerLevel[15] >= 78) {
          deleteItem(111, getItemSlot(111), 1);
          deleteItem(247, getItemSlot(247), 1);
          addItem(189, 1);
          addSkillXP(250, 15);
          sendMessage("You make a zamorak brew potion!");
         } else {
          sendMessage("You need a higher herblore level to make this potion.");
         }
        }
        
        else if(itemUsed == 2483 && useWith == 3138) {
         if(playerLevel[15] >= 76) {
          deleteItem(2483, getItemSlot(2483), 1);
          deleteItem(3138, getItemSlot(3138), 1);
          addItem(3042, 1);
          addSkillXP(170, 15);
          sendMessage("You make a magic potion!");
         } else {
          sendMessage("You need a higher herblore level to make this potion.");
         }
        }
        else if(itemUsed == 3138 && useWith == 2483) {
         if(playerLevel[15] >= 76) {
          deleteItem(2483, getItemSlot(2483), 1);
          deleteItem(3138, getItemSlot(3138), 1);
          addItem(3042, 1);
          addSkillXP(170, 15);
          sendMessage("You make a magic potion!");
         } else {
          sendMessage("You need a higher herblore level to make this potion.");
         }
        }
    //End Pot Making
    //End Herblore - Dangt351


    That code was all of the potions. (Adding the herbs to the vials of water to make an unfinished potion and then adding the other item that make them a full potion)



    Then to empty the Vials of water (To Vials with no water)



    Still in client.java, Search for:

    Code:
    
    Case 75:


    And under:

    Code:
    
    case 75:  // Alternative Item Option 1
    
    int itemid = inStream.readSignedWordA();
    if(playerName.equalsIgnoreCase(ServerCP.Owner)) {
    println("Item id: "+itemid);
    }
    int item2ID = inStream.readSignedWordBigEndian();
    int item2ID3 = inStream.readSignedWordA();
    int item2ID4 = inStream.readUnsignedWord();
    println("Item2ID: "+item2ID);
    println("Item2ID3: "+item2ID3);
    println("Item2ID4: "+item2ID4);


    Add:



    Code:
    
    //Start Empty Pots - Dangt351
    
    if (item2ID3 == 227) {
    deleteItem(227, getItemSlot(227), 1); 
    sendMessage("You empty the vial to floor.");
    addItem(229, 1);
    }
    
    //End Empty Pots - Dangt351


    Thanks For Reading Everyone, Hope you enjoyed my herblore.

    ~Dangt351





    PICTURES:







    ~Dangt351
    [Only registered and activated users can see links. ]

     

  2. #2  
    Registered Member

    Join Date
    Jun 2008
    Posts
    734
    Thanks given
    8
    Thanks received
    14
    Rep Power
    148
    try to put it in a handler
    much people like handlers more
    S Quare Quxx: Raul > paladin end of the story
     

  3. #3  
    Registered Member
    Shamon King's Avatar
    Join Date
    Aug 2007
    Posts
    3,336
    Thanks given
    90
    Thanks received
    228
    Rep Power
    1363
    Quote Originally Posted by Rowin View Post
    try to put it in a handler
    much people like handlers more
    This does not need to be in a handler
    if you follow some basic procedures it can be shortened down to 20-40 lines instead of 100-150 lines
     

  4. #4  
    Registered Member

    Join Date
    Jun 2008
    Posts
    734
    Thanks given
    8
    Thanks received
    14
    Rep Power
    148
    ye but much people put things from 1 kb in there handler and then they think it cleans lagg so...
    S Quare Quxx: Raul > paladin end of the story
     

  5. #5  
    Registered Member
    Firefight's Avatar
    Join Date
    Aug 2007
    Posts
    1,506
    Thanks given
    6
    Thanks received
    31
    Rep Power
    160
    This is super simple. I think anyone with any bit of knowledge could do this...Thanks anyways.
    Back for now...
     

  6. #6  
    Calvin™
    Guest
    You're taking up so much space when you could shorten it to something like this

    Code:
    if((itemUsed == 249 && useWith == 227) || (itemUsed == 227 && useWith == 249)
    sendMessage("You carefully add the herb into the vial.");
    deleteItem(249, getItemSlot(249), 1);
    deleteItem(227, getItemSlot(227), 1);
    addItem(91, 1);
    }
     

  7. #7  
    Donator

    Divide's Avatar
    Join Date
    Dec 2007
    Age
    25
    Posts
    816
    Thanks given
    3
    Thanks received
    0
    Rep Power
    91
    If people want to shorten it down, Do it yourself
    This is how i've done it, so i'll keep it that way.

    ~Dangt351
    (Sorry if i sound like a AssHole)
    [Only registered and activated users can see links. ]

     

  8. #8  
    Registered Member mans's Avatar
    Join Date
    Aug 2008
    Age
    27
    Posts
    118
    Thanks given
    0
    Thanks received
    1
    Rep Power
    3
    Well, I am not calling you a leecher, but I seen this before posted on SilabSoft with the same info.

    For proof: [Only registered and activated users can see links. ]

    Your's was posted Oct 7. His was posted Oct 5.
     

  9. #9  
    Donator

    Divide's Avatar
    Join Date
    Dec 2007
    Age
    25
    Posts
    816
    Thanks given
    3
    Thanks received
    0
    Rep Power
    91
    His is different to mine, Probably better
    Mine doesn't have Grinding.

    ~Dangt351
    [Only registered and activated users can see links. ]

     

  10. #10  
    The Godz
    Guest
    THIS IS FOR HANDLERS!

    Code:
    //Start Herblore - Dangt351
    //Start Unfinished Potion Making
        else if(itemUsed == 249 && useWith == 227) {
         c.deleteItem(249, c.getItemSlot(249), 1);
         c.deleteItem(227, c.getItemSlot(227), 1);
         c.addItem(91, 1);
         c.sendMessage("You add a Guam herb to the vial!");
        }
        else if(itemUsed == 227 && useWith == 249) {
         c.deleteItem(249, c.getItemSlot(249), 1);
         c.deleteItem(227, c.getItemSlot(227), 1);
         c.addItem(91, 1);
         c.sendMessage("You add a Guam herb to the vial!");
        }
        else if(itemUsed == 251 && useWith == 227) {
         c.deleteItem(251, c.getItemSlot(251), 1);
         c.deleteItem(227, c.getItemSlot(227), 1);
         c.addItem(93, 1);
         c.sendMessage("You add a Marrentill herb to the vial!");
        }
        else if(itemUsed == 227 && useWith == 251) {
         c.deleteItem(251, c.getItemSlot(251), 1);
         c.deleteItem(227, c.getItemSlot(227), 1);
         c.addItem(93, 1);
         c.sendMessage("You add a Marrentill herb to the vial!");
        }
        else if(itemUsed == 253 && useWith == 227) {
         c.deleteItem(253, c.getItemSlot(253), 1);
         c.deleteItem(227, c.getItemSlot(227), 1);
         c.addItem(95, 1);
         c.sendMessage("You add a Tarromin herb to the vial!");
        }
        else if(itemUsed == 227 && useWith == 253) {
         c.deleteItem(253, c.getItemSlot(253), 1);
         c.deleteItem(227, c.getItemSlot(227), 1);
         c.addItem(95, 1);
         c.sendMessage("You add a Tarromin herb to the vial!");
        }
        else if(itemUsed == 255 && useWith == 227) {
         c.deleteItem(255, c.getItemSlot(255), 1);
         c.deleteItem(227, c.getItemSlot(227), 1);
         c.addItem(97, 1);
         c.sendMessage("You add a Harralander Herb to the vial!");
        }
        else if(itemUsed == 227 && useWith == 255) {
         c.deleteItem(255, c.getItemSlot(2559), 1);
         c.deleteItem(227, c.getItemSlot(227), 1);
         c.addItem(97, 1);
         c.sendMessage("You add a Harralander Herb to the vial!");
        }
        else if(itemUsed == 257 && useWith == 227) {
         c.deleteItem(257, c.getItemSlot(257), 1);
         c.deleteItem(227, c.getItemSlot(227), 1);
         c.addItem(99, 1);
         c.sendMessage("You add a Ranarr Weed to the vial!");
        }
        else if(itemUsed == 227 && useWith == 257) {
         c.deleteItem(257, c.getItemSlot(257), 1);
         c.deleteItem(227, c.getItemSlot(227), 1);
         c.addItem(99, 1);
         c.sendMessage("You add a Ranarr Weed to the vial!");
        }
        else if(itemUsed == 259 && useWith == 227) {
         c.deleteItem(259, c.getItemSlot(259), 1);
         c.deleteItem(227, c.getItemSlot(227), 1);
         c.addItem(101, 1);
         c.sendMessage("You add a Irit leaf to the vial!");
        }
        else if(itemUsed == 227 && useWith == 259) {
         c.deleteItem(259, c.getItemSlot(259), 1);
         c.deleteItem(227, c.getItemSlot(227), 1);
         c.addItem(101, 1);
         c.sendMessage("You add a Irit leaf to the vial!");
        }
        else if(itemUsed == 261 && useWith == 227) {
         c.deleteItem(261, c.getItemSlot(261), 1);
         c.deleteItem(227, c.getItemSlot(227), 1);
         c.addItem(103, 1);
         c.sendMessage("You add a Avantoe Herb to the vial!");
        }
        else if(itemUsed == 227 && useWith == 261) {
         c.deleteItem(261, c.getItemSlot(261), 1);
         c.deleteItem(227, c.getItemSlot(227), 1);
         c.addItem(103, 1);
         c.sendMessage("You add a Avantoe Herb to the vial!");
        }
        else if(itemUsed == 263 && useWith == 227) {
         c.deleteItem(263, c.getItemSlot(263), 1);
         c.deleteItem(227, c.getItemSlot(227), 1);
         c.addItem(105, 1);
         c.sendMessage("You add a Kwuarm Herb to the vial!");
        }
        else if(itemUsed == 227 && useWith == 263) {
         c.deleteItem(263, c.getItemSlot(263), 1);
         c.deleteItem(227, c.getItemSlot(227), 1);
         c.addItem(105, 1);
         c.sendMessage("You add a Kwuarm Herb to the vial!");
        }
        else if(itemUsed == 265 && useWith == 227) {
         c.deleteItem(265, c.getItemSlot(265), 1);
         c.deleteItem(227, c.getItemSlot(227), 1);
         c.addItem(107, 1);
         c.sendMessage("You add a Cadantine Herb to the vial!");
        }
        else if(itemUsed == 227 && useWith == 265) {
         c.deleteItem(265, c.getItemSlot(265), 1);
         c.deleteItem(227, c.getItemSlot(227), 1);
         c.addItem(107, 1);
         c.sendMessage("You add a Cadantine Herb to the vial!");
        }
        else if(itemUsed == 267 && useWith == 227) {
         c.deleteItem(267, c.getItemSlot(267), 1);
         c.deleteItem(227, c.getItemSlot(227), 1);
         c.addItem(109, 1);
         c.sendMessage("You add a Dwarf weed to the vial!");
        }
        else if(itemUsed == 227 && useWith == 267) {
         c.deleteItem(267, c.getItemSlot(267), 1);
         c.deleteItem(227, c.getItemSlot(227), 1);
         c.addItem(109, 1);
         c.sendMessage("You add a Dwarf weed to the vial!");
        }
        else if(itemUsed == 269 && useWith == 227) {
         c.deleteItem(269, c.getItemSlot(269), 1);
         c.deleteItem(227, c.getItemSlot(227), 1);
         c.addItem(111, 1);
         c.sendMessage("You add a Torstol herb to the vial!");
        }
        else if(itemUsed == 227 && useWith == 269) {
         c.deleteItem(269, c.getItemSlot(269), 1);
         c.deleteItem(227, c.getItemSlot(227), 1);
         c.addItem(111, 1);
         c.sendMessage("You add a Torstol herb to the vial!");
        }
        //End Unfinished Potion Making
                                    //Start Pot Making
        else if(itemUsed == 91 && useWith == 221) {
         if(c.playerLevel[15] >= 3) {
          c.deleteItem(91, c.getItemSlot(91), 1);
          c.deleteItem(221, c.getItemSlot(221), 1);
          c.addItem(121, 1);
          c.addSkillXP(100, 15);
          c.sendMessage("You make an attack potion!");
         } else {
          c.sendMessage("You need a higher herblore level to make this potion.");
         }
        }
        else if(itemUsed == 221 && useWith == 91) {
         if(c.playerLevel[15] >= 3) {
          c.deleteItem(91, c.getItemSlot(91), 1);
          c.deleteItem(221, c.getItemSlot(221), 1);
          c.addItem(121, 1);
          c.addSkillXP(100, 15);
          c.sendMessage("You make an attack potion!");
         } else {
          c.sendMessage("You need a higher herblore level to make this potion.");
         }
        }
        else if(itemUsed == 93 && useWith == 235) {
         if(c.playerLevel[15] >= 5) {
          c.deleteItem(93, c.getItemSlot(93), 1);
          c.deleteItem(235, c.getItemSlot(235), 1);
          c.addItem(175, 1);
          c.addSkillXP(40, 15);
          c.sendMessage("You make an anti poison potion!");
         } else {
          c.sendMessage("You need a higher herblore level to make this potion.");
         }
        }
        else if(itemUsed == 235 && useWith == 93) {
         if(c.playerLevel[15] >= 5) {
          c.deleteItem(93, c.getItemSlot(93), 1);
          c.deleteItem(235, c.getItemSlot(235), 1);
          c.addItem(175, 1);
          c.addSkillXP(40, 15);
          c.sendMessage("You make an anti poison potion!");
         } else {
          c.sendMessage("You need a higher herblore level to make this potion.");
         }
        }
        else if(itemUsed == 95 && useWith == 225) {
         if(c.playerLevel[15] >= 12) {
          c.deleteItem(95, c.getItemSlot(95), 1);
          c.deleteItem(225, c.getItemSlot(225), 1);
          c.addItem(115, 1);
          c.addSkillXP(150, 15);
          c.sendMessage("You make a strength potion potion!");
         } else {
          c.sendMessage("You need a higher herblore level to make this potion.");
         }
        }
        else if(itemUsed == 225 && useWith == 95) {
         if(c.playerLevel[15] >= 12) {
          c.deleteItem(95, c.getItemSlot(95), 1);
          c.deleteItem(225, c.getItemSlot(225), 1);
          c.addItem(115, 1);
          c.addSkillXP(150, 15);
          c.sendMessage("You make a strength potion!");
         } else {
          c.sendMessage("You need a higher herblore level to make this potion.");
         }
        }
        else if(itemUsed == 97 && useWith == 223) {
         if(c.playerLevel[15] >= 22) {
          c.deleteItem(97, c.getItemSlot(97), 1);
          c.deleteItem(223, c.getItemSlot(223), 1);
          c.addItem(127, 1);
          c.addSkillXP(60, 15);
          c.sendMessage("You make a stat restore potion!");
         } else {
          c.sendMessage("You need a higher herblore level to make this potion.");
         }
        }
        else if(itemUsed == 223 && useWith == 97) {
         if(c.playerLevel[15] >= 22) {
          c.deleteItem(97, c.getItemSlot(97), 1);
          c.deleteItem(223, c.getItemSlot(223), 1);
          c.addItem(127, 1);
          c.addSkillXP(60, 15);
          c.sendMessage("You make a stat restore potion!");
         } else {
          c.sendMessage("You need a higher herblore level to make this potion.");
         }
        }
        else if(itemUsed == 97 && useWith == 1975) {
         if(c.playerLevel[15] >= 26) {
          c.deleteItem(97, c.getItemSlot(97), 1);
          c.deleteItem(1975, c.getItemSlot(1975), 1);
          c.addItem(3010, 1);
          c.addSkillXP(70, 15);
          c.sendMessage("You make an energy potion!");
         } else {
          c.sendMessage("You need a higher herblore level to make this potion.");
         }
        }
        else if(itemUsed == 1975 && useWith == 97) {
         if(c.playerLevel[15] >= 26) {
          c.deleteItem(97, c.getItemSlot(97), 1);
          c.deleteItem(1975, c.getItemSlot(1975), 1);
          c.addItem(3010, 1);
          c.addSkillXP(70, 15);
          c.sendMessage("You make an energy potion!");
         } else {
          c.sendMessage("You need a higher herblore level to make this potion.");
         }
        }
        else if(itemUsed == 99 && useWith == 239) {
         if(c.playerLevel[15] >= 30) {
          c.deleteItem(99, c.getItemSlot(99), 1);
          c.deleteItem(239, c.getItemSlot(239), 1);
          c.addItem(133, 1);
          c.addSkillXP(125, 15);
          c.sendMessage("You make a defence potion!");
         } else {
          c.sendMessage("You need a higher herblore level to make this potion.");
         }
        }
        else if(itemUsed == 239 && useWith == 99) {
         if(c.playerLevel[15] >= 30) {
          c.deleteItem(99, c.getItemSlot(99), 1);
          c.deleteItem(239, c.getItemSlot(239), 1);
          c.addItem(133, 1);
          c.addSkillXP(125, 15);
          c.sendMessage("You make a defence potion!");
         } else {
          c.sendMessage("You need a higher herblore level to make this potion.");
         }
        }
        else if(itemUsed == 99 && useWith == 231) {
         if(c.playerLevel[15] >= 38) {
          c.deleteItem(99, c.getItemSlot(99), 1);
          c.deleteItem(231, c.getItemSlot(231), 1);
          c.addItem(139, 1);
          c.addSkillXP(150, 15);
          c.sendMessage("You make a prayer restore potion!");
         } else {
          c.sendMessage("You need a higher herblore level to make this potion.");
         }
        }
        else if(itemUsed == 231 && useWith == 99) {
         if(c.playerLevel[15] >= 38) {
          c.deleteItem(99, c.getItemSlot(99), 1);
          c.deleteItem(231, c.getItemSlot(231), 1);
          c.addItem(139, 1);
          c.addSkillXP(150, 15);
          c.sendMessage("You make a prayer restore potion!");
         } else {
          c.sendMessage("You need a higher herblore level to make this potion.");
         }
        }
        else if(itemUsed == 101 && useWith == 221) {
         if(c.playerLevel[15] >= 45) {
          c.deleteItem(101, c.getItemSlot(101), 1);
          c.deleteItem(221, c.getItemSlot(221), 1);
          c.addItem(145, 1);
          c.addSkillXP(200, 15);
          c.sendMessage("You make a super attack potion!");
         } else {
          c.sendMessage("You need a higher herblore level to make this potion.");
         }
        }
        else if(itemUsed == 221 && useWith == 101) {
         if(c.playerLevel[15] >= 45) {
          c.deleteItem(101, c.getItemSlot(101), 1);
          c.deleteItem(221, c.getItemSlot(221), 1);
          c.addItem(145, 1);
          c.addSkillXP(200, 15);
          c.sendMessage("You make a super attack potion!");
         } else {
          c.sendMessage("You need a higher herblore level to make this potion.");
         }
        }
        else if(itemUsed == 101 && useWith == 235) {
         if(c.playerLevel[15] >= 48) {
          c.deleteItem(101, c.getItemSlot(101), 1);
          c.deleteItem(235, c.getItemSlot(235), 1);
          c.addItem(181, 1);
          c.addSkillXP(100, 15);
          c.sendMessage("You make a super anti poison potion!");
         } else {
          c.sendMessage("You need a higher herblore level to make this potion.");
         }
        }
        else if(itemUsed == 235 && useWith == 101) {
         if(c.playerLevel[15] >= 48) {
          c.deleteItem(101, c.getItemSlot(101), 1);
          c.deleteItem(235, c.getItemSlot(235), 1);
          c.addItem(181, 1);
          c.addSkillXP(100, 15);
          c.sendMessage("You make a super anti poison potion!");
         } else {
          c.sendMessage("You need a higher herblore level to make this potion.");
         }
        }
        else if(itemUsed == 103 && useWith == 231) {
         if(c.playerLevel[15] >= 50) {
          c.deleteItem(103, c.getItemSlot(103), 1);
          c.deleteItem(231, c.getItemSlot(231), 1);
          c.addItem(151, 1);
          c.addSkillXP(115, 15);
          c.sendMessage("You make a fishing potion!");
         } else {
          c.sendMessage("You need a higher herblore level to make this potion.");
         }
        }
        else if(itemUsed == 231 && useWith == 103) {
         if(c.playerLevel[15] >= 50) {
          c.deleteItem(103, c.getItemSlot(103), 1);
          c.deleteItem(231, c.getItemSlot(231), 1);
          c.addItem(151, 1);
          c.addSkillXP(115, 15);
          c.sendMessage("You make a fishing potion!");
         } else {
          c.sendMessage("You need a higher herblore level to make this potion.");
         }
        }
        else if(itemUsed == 103 && useWith == 2970) {
         if(c.playerLevel[15] >= 52) {
          c.deleteItem(103, c.getItemSlot(103), 1);
          c.deleteItem(2970, c.getItemSlot(2970), 1);
          c.addItem(3018, 1);
          c.addSkillXP(120, 15);
          c.sendMessage("You make a super energy potion!");
         } else {
          c.sendMessage("You need a higher herblore level to make this potion.");
         }
        }
        else if(itemUsed == 2970 && useWith == 103) {
         if(c.playerLevel[15] >= 52) {
          c.deleteItem(103, c.getItemSlot(103), 1);
          c.deleteItem(2970, c.getItemSlot(2970), 1);
          c.addItem(3018, 1);
          c.addSkillXP(120, 15);
          c.sendMessage("You make a super energy potion!");
         } else {
          c.sendMessage("You need a higher herblore level to make this potion.");
         }
        }
        else if(itemUsed == 105 && useWith == 225) {
         if(c.playerLevel[15] >= 55) {
          c.deleteItem(105, c.getItemSlot(105), 1);
          c.deleteItem(225, c.getItemSlot(225), 1);
          c.addItem(157, 1);
          c.addSkillXP(180, 15);
          c.sendMessage("You make a super strength potion!");
         } else {
          c.sendMessage("You need a higher herblore level to make this potion.");
         }
        }
        else if(itemUsed == 225 && useWith == 105) {
         if(c.playerLevel[15] >= 55) {
          c.deleteItem(105, c.getItemSlot(105), 1);
          c.deleteItem(225, c.getItemSlot(225), 1);
          c.addItem(157, 1);
          c.addSkillXP(180, 15);
          c.sendMessage("You make a super strength potion!");
         } else {
          c.sendMessage("You need a higher herblore level to make this potion.");
         }
        }
        else if(itemUsed == 105 && useWith == 241) {
         if(c.playerLevel[15] >= 60) {
          c.deleteItem(105, c.getItemSlot(105), 1);
          c.deleteItem(241, c.getItemSlot(241), 1);
          c.addItem(187, 1);
          c.addSkillXP(140, 15);
          c.sendMessage("You make a weapon poisoning potion!");
         } else {
          c.sendMessage("You need a higher herblore level to make this potion.");
         }
        }
        else if(itemUsed == 241 && useWith == 105) {
         if(c.playerLevel[15] >= 60) {
          c.deleteItem(105, c.getItemSlot(105), 1);
          c.deleteItem(241, c.getItemSlot(241), 1);
          c.addItem(187, 1);
          c.addSkillXP(140, 15);
          c.sendMessage("You make a weapon poisoning potion!");
         } else {
          c.sendMessage("You need a higher herblore level to make this potion.");
         }
        }
        else if(itemUsed == 109 && useWith == 245) {
         if(c.playerLevel[15] >= 72) {
          c.deleteItem(109, c.getItemSlot(109), 1);
          c.deleteItem(245, c.getItemSlot(245), 1);
          c.addItem(169, 1);
          c.addSkillXP(165, 15);
          c.sendMessage("You make a ranging potion!");
         } else {
          c.sendMessage("You need a higher herblore level to make this potion.");
         }
        }
        else if(itemUsed == 245 && useWith == 109) {
         if(c.playerLevel[15] >= 72) {
          c.deleteItem(109, c.getItemSlot(109), 1);
          c.deleteItem(245, c.getItemSlot(245), 1);
          c.addItem(169, 1);
          c.addSkillXP(165, 15);
          c.sendMessage("You make a ranging potion!");
         } else {
          c.sendMessage("You need a higher herblore level to make this potion.");
         }
        }
        else if(itemUsed == 111 && useWith == 247) {
         if(c.playerLevel[15] >= 78) {
          c.deleteItem(111, c.getItemSlot(111), 1);
          c.deleteItem(247, c.getItemSlot(247), 1);
          c.addItem(121, 1);
          c.addSkillXP(250, 15);
          c.sendMessage("You make a zamorak brew potion!");
         } else {
          c.sendMessage("You need a higher herblore level to make this potion.");
         }
        }
        else if(itemUsed == 247 && useWith == 111) {
         if(c.playerLevel[15] >= 78) {
          c.deleteItem(111, c.getItemSlot(111), 1);
          c.deleteItem(247, c.getItemSlot(247), 1);
          c.addItem(189, 1);
          c.addSkillXP(250, 15);
          c.sendMessage("You make a zamorak brew potion!");
         } else {
          c.sendMessage("You need a higher herblore level to make this potion.");
         }
        }
        
        else if(itemUsed == 2483 && useWith == 3138) {
         if(c.playerLevel[15] >= 76) {
          c.deleteItem(2483, c.getItemSlot(2483), 1);
          c.deleteItem(3138, c.getItemSlot(3138), 1);
          c.addItem(3042, 1);
          c.addSkillXP(170, 15);
          c.sendMessage("You make a magic potion!");
         } else {
          c.sendMessage("You need a higher herblore level to make this potion.");
         }
        }
        else if(itemUsed == 3138 && useWith == 2483) {
         if(c.playerLevel[15] >= 76) {
          c.deleteItem(2483, c.getItemSlot(2483), 1);
          c.deleteItem(3138, c.getItemSlot(3138), 1);
          c.addItem(3042, 1);
          c.addSkillXP(170, 15);
          c.sendMessage("You make a magic potion!");
         } else {
          c.sendMessage("You need a higher herblore level to make this potion.");
         }
        }
    //End Pot Making
    //End Herblore - Dangt351
    And could you give the item ID's to add the herbs to shops..? Would be really good. Too lazy to read the code. x)
     

Page 1 of 2 12 LastLast

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
  •