[Emulous, Paradox, PI] Herblore Skill v1 [Client & Server]
This is old version... newest is here:
[Only registered and activated users can see links. Click Here To Register...]
Hello Rune-Server!
This is my first tutorial, I was wondering if it belongs to the stutorial section or snippets section. This took me many hours, everything should be right.
Difficulty: Umm, it's mostly Copy & paste, but I think somebody needs some converting, so 3/10.
This is only for Emulous/Paradox, unless you aren't able to convert it to Delta etc.
I did it client and server side, because I changed some item names.
P.S All the item ID-s can be different from yours, so don't be upset when you have different ID-s.
The tutorial
Client side
First, open up your Class8.java and find
or
Code:
class8.method203(true, aClass30_Sub2_Sub2_183);
and add under it the following code:
IF YOUR CLIENT IS USING SWITCH STATEMENTS, THEN USE THIS:
Code:
//Grimy Herbs - TopeltBoost
case 199:
class8.aString170 = "Grimy Guam";
break;
case 201:
class8.aString170 = "Grimy Marrentill";
break;
case 203:
class8.aString170 = "Grimy Tarromin";
break;
case 205:
class8.aString170 = "Grimy Harralander";
break;
case 207:
class8.aString170 = "Grimy Ranarr";
break;
case 209:
class8.aString170 = "Grimy Irit";
break;
case 211:
class8.aString170 = "Grimy Avantoe";
break;
case 213:
class8.aString170 = "Grimy Kwuarm";
break;
case 215:
class8.aString170 = "Grimy Cadantine";
break;
case 217:
class8.aString170 = "Grimy Dwarf Weed";
break;
case 219:
class8.aString170 = "Grimy Torstol";
break;
//Unfinished Potions - TopeltBoost
case 91:
class8.aString170 = "Guam potion(unf)";
break;
case 93:
class8.aString170 = "Marrentill potion(unf)";
break;
case 95:
class8.aString170 = "Tarromin potion(unf)";
break;
case 97:
class8.aString170 = "Harralander potion(unf)";
break;
case 99:
class8.aString170 = "Ranarr potion(unf)";
break;
case 101:
class8.aString170 = "Irit potion(unf)";
break;
case 103:
class8.aString170 = "Avantoe potion(unf)";
break;
case 105:
class8.aString170 = "Kwuarm potion(unf)";
break;
case 107:
class8.aString170 = "Cadantine potion(unf)";
break;
case 109:
class8.aString170 = "Dwarf Weed potion(unf)";
break;
case 111:
class8.aString170 = "Torstol potion(unf)";
break;
case 2483:
class8.aString170 = "Lantadyme potion(unf)";
break;
case 3002:
class8.aString170 = "Toadflax potion(unf)";
break;
case 3004:
class8.aString170 = "Snapdragon potion(unf)";
break;
//Weapon Poison - TopeltBoost
case 5940:
class8.aString170 = "Weapon Poison(p++)";
break;
AND IF NOT, THEN USE THIS:
Code:
//Grimy Herbs - TopeltBoost
if(i == 199) {
class8.aString170 = "Grimy Guam";
}
if(i == 201) {
class8.aString170 = "Grimy Marrentill";
}
if(i == 203) {
class8.aString170 = "Grimy Tarromin";
}
if(i == 205) {
class8.aString170 = "Grimy Harralander";
}
if(i == 207) {
class8.aString170 = "Grimy Ranarr";
}
if(i == 209) {
class8.aString170 = "Grimy Irit";
}
if(i == 211) {
class8.aString170 = "Grimy Avantoe";
}
if(i == 213) {
class8.aString170 = "Grimy Kwuarm";
}
if(i == 215) {
class8.aString170 = "Grimy Cadantine";
}
if(i == 217) {
class8.aString170 = "Grimy Dwarf Weed";
}
if(i == 219) {
class8.aString170 = "Grimy Torstol";
}
//Unfinished Potions - TopeltBoost
if(i == 91) {
class8.aString170 = "Guam potion(unf)";
}
if(i == 93) {
class8.aString170 = "Marrentill potion(unf)";
}
if(i == 95) {
class8.aString170 = "Tarromin potion(unf)";
}
if(i == 97) {
class8.aString170 = "Harralander potion(unf)";
}
if(i == 99) {
class8.aString170 = "Ranarr potion(unf)";
}
if(i == 101) {
class8.aString170 = "Irit potion(unf)";
}
if(i == 103) {
class8.aString170 = "Avantoe potion(unf)";
}
if(i == 105) {
class8.aString170 = "Kwuarm potion(unf)";
}
if(i == 107) {
class8.aString170 = "Cadantine potion(unf)";
}
if(i == 109) {
class8.aString170 = "Dwarf Weed potion(unf)";
}
if(i == 111) {
class8.aString170 = "Torstol potion(unf)";
}
if(i == 2483) {
class8.aString170 = "Lantadyme potion(unf)";
}
if(i == 3002) {
class8.aString170 = "Toadflax potion(unf)";
}
if(i == 3004) {
class8.aString170 = "Snapdragon potion(unf)";
}
//Weapon Poison - TopeltBoost
if(i == 5940) {
class8.aString170 = "Weapon Poison(p++)";
}
Congratulations, you have finished the Client side part.
Server side
Next part, Server side is here.
The following contains Herb cleaning, using Vial of water with first intrigents and using unfinished potion with second intrigents.
First, open up your Client.java which should be located in server.model.players.Client.java, then search
Code:
import server.model.npcs.NPCHandler;
and add this under it:
Code:
import server.model.players.skills.Herblore;
Then search for
Code:
private ShopAssistant shopAssistant = new ShopAssistant(this);
and add this under it:
Code:
public Herblore herb = new Herblore(this);
Search for:
Code:
Stream getInStream()
Add this under it:
Code:
public Herblore getHerb() {
return herb;
}
Make new file in server.model.players.skills and name it
and put this in it:
Code:
package server.model.players.skills;
import server.Config;
import server.model.players.Client;
import server.util.Misc;
/**
* @name Herblore Class
*
* @author TopeltBoost
**/
public class Herblore {
public Client client;
public Herblore(Client c) {
client = c;
}
public static void idHerb(Client c, int id, int slot, int level, int endId) {
if(level > c.playerLevel[15]) {
c.sendMessage("You need a herblore level of "+level+" to identify this herb.");
return;
}
c.getItems().deleteItem(id, slot, 1);
c.getItems().addItem(endId, 1);
c.sendMessage("You identify the herb as a "+c.getItems().getItemName(endId)+".");
c.getPA().addSkillXP(level * Config.HERBLORE_EXP, 15);
c.getPA().refreshSkill(15);
}
public static void makePotion(Client c, int exp, int item1, int item2, int removeitem, int removeitem2, int endId, int level) {
if(level > c.playerLevel[15]) {
c.sendMessage("You need a herblore level of "+level+" to identify this herb.");
return;
}
c.getPA().addSkillXP(exp, 15);
c.getItems().deleteItem(removeitem, c.getItems().getItemSlot(removeitem), 1);
c.getItems().deleteItem(removeitem2, c.getItems().getItemSlot(removeitem2), 1);
c.getItems().addItem(endId, 1);
c.sendMessage("You make a "+c.getItems().getItemName(endId)+".");
c.getPA().addSkillXP(level * Config.HERBLORE_EXP, 15);
c.getPA().refreshSkill(15);
c.getPA().requestUpdates();
}
public static void makeUPotion(Client c, int exp, int item1, int item2, int removeitem, int removeitem2, int endId, int level) {
if(level > c.playerLevel[15]) {
c.sendMessage("You need a herblore level of "+level+" to identify this herb.");
return;
}
c.getPA().addSkillXP(exp, 15);
c.getItems().deleteItem(removeitem, c.getItems().getItemSlot(removeitem), 1);
c.getItems().deleteItem(removeitem2, c.getItems().getItemSlot(removeitem2), 1);
c.getItems().addItem(endId, 1);
c.sendMessage("You make an "+c.getItems().getItemName(endId)+".");
c.getPA().addSkillXP(level * Config.HERBLORE_EXP, 15);
c.getPA().refreshSkill(15);
c.getPA().requestUpdates();
}
}
Next open up your ClickItem.java, which should be in server.model.players.packets
If you don't have
or other things there which are related to itemclicking, then you should first replace your ClickItem.java with this:
Code:
package server.model.players.packets;
import server.model.items.GameItem;
import server.model.items.Item;
import server.model.players.Client;
import server.model.players.PacketType;
/**
* Clicking an item, bury bone, eat food etc
**/
public class ClickItem implements PacketType {
@Override
public void processPacket(Client c, int packetType, int packetSize) {
int junk = c.getInStream().readSignedWordBigEndianA();
int itemSlot = c.getInStream().readUnsignedWordA();
int itemId = c.getInStream().readUnsignedWordBigEndian();
if (itemId != c.playerItems[itemSlot] - 1) {
return;
}
int abc = 0, cba = 0, aaa = 0, abc2 = 0, heal = 0, add = 0;
switch(itemId) {
}
}
}
Now find this:
Put the following code under that:
Code:
/**
* @name Identifying Herbs 100%
*
* @author TopeltBoost
**/
case 199: // Guam
c.getHerb().idHerb(c, itemId, itemSlot, 3, 249);
break;
case 201: //Marrentill
c.getHerb().idHerb(c, itemId, itemSlot, 5, 251);
break;
case 203: // Tarromin
c.getHerb().idHerb(c, itemId, itemSlot, 11, 253);
break;
case 205: // Harralander
c.getHerb().idHerb(c, itemId, itemSlot, 20, 255);
break;
case 207: // Ranarr
c.getHerb().idHerb(c, itemId, itemSlot, 25, 257);
break;
case 3049: // Toadflax
c.getHerb().idHerb(c, itemId, itemSlot, 30, 2998);
break;
case 209: // Irit Leaf
c.getHerb().idHerb(c, itemId, itemSlot, 40, 259);
break;
case 211: // Avantoe
c.getHerb().idHerb(c, itemId, itemSlot, 48, 261);
break;
case 213: // Kwuarm
c.getHerb().idHerb(c, itemId, itemSlot, 54, 263);
break;
case 2485: // Snapdragon
c.getHerb().idHerb(c, itemId, itemSlot, 59, 3000);
break;
case 215: // Cadantine
c.getHerb().idHerb(c, itemId, itemSlot, 65, 265);
break;
case 1531: // Lantadyme
c.getHerb().idHerb(c, itemId, itemSlot, 67, 2481);
break;
case 217: // Dwarf
c.getHerb().idHerb(c, itemId, itemSlot, 70, 267);
break;
case 1525: // Torstol
c.getHerb().idHerb(c, itemId, itemSlot, 75, 269);
break;
Congratulations, you have added Herb cleaning.
Now, it's time for making unfinished potions.
Open up ItemOnItem.java in server.model.players.packets.
Find
Code:
UseItem.ItemonItem(c, itemUsed, useWith);
and add under that this:
Code:
/**
* @name Making Unfinished Potions 100%
*
* @author TopeltBoost
**/
if((useWith == 227) && (itemUsed == 249) || (useWith == 249) && (itemUsed == 227)) //Guam
{
c.getHerb().makeUPotion(c, 50, 227, 249, 227, 249, 91, 3);
}
if((useWith == 227) && (itemUsed == 251) || (useWith == 251) && (itemUsed == 227)) //Marrentill
{
c.getHerb().makeUPotion(c, 100, 227, 251, 227, 251, 93, 5);
}
if((useWith == 227) && (itemUsed == 253) || (useWith == 253) && (itemUsed == 227)) //Tarromin
{
c.getHerb().makeUPotion(c, 250, 227, 253, 227, 253, 95, 12);
}
if((useWith == 227) && (itemUsed == 255) || (useWith == 255) && (itemUsed == 227)) //Harralander
{
c.getHerb().makeUPotion(c, 500, 227, 255, 227, 255, 97, 22);
}
if((useWith == 227) && (itemUsed == 257) || (useWith == 257) && (itemUsed == 227)) //Ranarr
{
c.getHerb().makeUPotion(c, 1000, 227, 257, 227, 257, 99, 30);
}
if((useWith == 227) && (itemUsed == 2998) || (useWith == 2998) && (itemUsed == 227)) //Toadflax
{
c.getHerb().makeUPotion(c, 1500, 227, 2998, 227, 2998, 3002, 34);
}
if((useWith == 227) && (itemUsed == 259) || (useWith == 259) && (itemUsed == 227)) //Irit
{
c.getHerb().makeUPotion(c, 3000, 227, 259, 227, 259, 101, 45);
}
if((useWith == 227) && (itemUsed == 261) || (useWith == 261) && (itemUsed == 227)) //Avantoe
{
c.getHerb().makeUPotion(c, 5000, 227, 261, 227, 261, 103, 50);
}
if((useWith == 227) && (itemUsed == 263) || (useWith == 263) && (itemUsed == 227)) //Kwuarm
{
c.getHerb().makeUPotion(c, 7000, 227, 263, 227, 263, 105, 55);
}
if((useWith == 227) && (itemUsed == 3000) || (useWith == 3000) && (itemUsed == 227)) //Snapdragon
{
c.getHerb().makeUPotion(c, 9000, 227, 3000, 227, 3000, 3004, 63);
}
if((useWith == 227) && (itemUsed == 265) || (useWith == 265) && (itemUsed == 227)) //Cadantine
{
c.getHerb().makeUPotion(c, 13000, 227, 265, 227, 265, 107, 66);
}
if((useWith == 227) && (itemUsed == 2481) || (useWith == 2481) && (itemUsed == 227)) //Lantadyme
{
c.getHerb().makeUPotion(c, 25000, 227, 2481, 227, 2481, 2483, 69);
}
if((useWith == 227) && (itemUsed == 267) || (useWith == 267) && (itemUsed == 227)) //Dwarf
{
c.getHerb().makeUPotion(c, 32000, 227, 267, 227, 267, 109, 72);
}
if((useWith == 227) && (itemUsed == 269) || (useWith == 269) && (itemUsed == 227)) //Torstol
{
c.getHerb().makeUPotion(c, 50000, 227, 269, 227, 269, 111, 78);
}
And the final part:
Making full potions(3)
Under your last added code, add this:
Code:
/**
* @name Making full potions with Second Intrigents 100%
*
* @author TopeltBoost
**/
/**
* @name Attack Potion(3)
**/
if((useWith == 91) && (itemUsed == 221) || (useWith == 221) && (itemUsed == 91))
{
c.getHerb().makeUPotion(c, 30, 91, 221, 91, 221, 121, 3);
}
/**
* @name Antipoison(3)
**/
if((useWith == 93) && (itemUsed == 235) || (useWith == 235) && (itemUsed == 93))
{
c.getHerb().makeUPotion(c, 40, 93, 235, 93, 235, 175, 5);
}
/**
* @name Strength Potion(3)
**/
if((useWith == 95) && (itemUsed == 225) || (useWith == 225) && (itemUsed == 95))
{
c.getHerb().makePotion(c, 60, 95, 225, 95, 225, 115, 12);
}
/**
* @name Serum 207(3)
**/
if((useWith == 95) && (itemUsed == 592) || (useWith == 592) && (itemUsed == 95))
{
c.getHerb().makePotion(c, 65, 95, 592, 95, 592, 3410, 15);
}
/**
* @name Restore Potion(3)
**/
if((useWith == 97) && (itemUsed == 223) || (useWith == 223) && (itemUsed == 97))
{
c.getHerb().makePotion(c, 70, 97, 223, 97, 223, 127, 22);
}
/**
* @name Energy Potion(3)
**/
if((useWith == 97) && (itemUsed == 1975) || (useWith == 1975) && (itemUsed == 97))
{
c.getHerb().makeUPotion(c, 80, 97, 1975, 97, 1975, 3010, 26);
}
/**
* @name Defence Potion(3)
**/
if((useWith == 99) && (itemUsed == 239) || (useWith == 239) && (itemUsed == 99))
{
c.getHerb().makePotion(c, 85, 99, 239, 99, 239, 133, 30);
}
/**
* @name Agility Potion(3)
**/
if((useWith == 3002) && (itemUsed == 2152) || (useWith == 2152) && (itemUsed == 3002))
{
c.getHerb().makeUPotion(c, 90, 3002, 2152, 3002, 2152, 3034, 34);
}
/**
* @name Prayer Potion(3)
**/
if((useWith == 99) && (itemUsed == 231) || (useWith == 231) && (itemUsed == 99))
{
c.getHerb().makePotion(c, 100, 99, 231, 99, 231, 139, 38);
}
/**
* @name Super Attack Potion(3)
**/
if((useWith == 101) && (itemUsed == 221) || (useWith == 221) && (itemUsed == 101))
{
c.getHerb().makePotion(c, 115, 101, 221, 101, 221, 145, 45);
}
/**
* @name Super Anti-poison Potion(3)
**/
if((useWith == 101) && (itemUsed == 235) || (useWith == 235) && (itemUsed == 101))
{
c.getHerb().makePotion(c, 120, 101, 235, 101, 235, 181, 48);
}
/**
* @name Fishing Potion(3)
**/
if((useWith == 103) && (itemUsed == 231) || (useWith == 231) && (itemUsed == 103))
{
c.getHerb().makePotion(c, 125, 103, 231, 103, 231, 151, 50);
}
/**
* @name Super Energy Potion(3)
**/
if((useWith == 103) && (itemUsed == 2970) || (useWith == 2970) && (itemUsed == 103))
{
c.getHerb().makePotion(c, 130, 103, 2970, 103, 2970, 3018, 52);
}
/**
* @name Super Strength Potion(3)
**/
if((useWith == 105) && (itemUsed == 225) || (useWith == 225) && (itemUsed == 105))
{
c.getHerb().makePotion(c, 300, 105, 225, 105, 225, 157, 55);
}
/**
* @name Super Restore Potion(3)
**/
if((useWith == 3004) && (itemUsed == 223) || (useWith == 223) && (itemUsed == 3004))
{
c.getHerb().makePotion(c, 400, 3004, 223, 3004, 223, 3026, 63);
}
/**
* @name Super Defence Potion(3)
**/
if((useWith == 107) && (itemUsed == 239) || (useWith == 239) && (itemUsed == 107))
{
c.getHerb().makePotion(c, 600, 107, 239, 107, 239, 163, 66);
}
/**
* @name Ranging Potion(3)
**/
if((useWith == 109) && (itemUsed == 245) || (useWith == 245) && (itemUsed == 109))
{
c.getHerb().makePotion(c, 650, 109, 245, 109, 245, 169, 72);
}
/**
* @name Weapon Poison(+)
**/
if((useWith == 6016) && (itemUsed == 223) || (useWith == 223) && (itemUsed == 6016))
{
c.getHerb().makePotion(c, 700, 6016, 223, 6016, 223, 5937, 73);
}
/**
* @name Magic Potion(3)
**/
if((useWith == 2483) && (itemUsed == 3138) || (useWith == 3138) && (itemUsed == 2483))
{
c.getHerb().makePotion(c, 800, 2483, 3138, 2483, 3138, 3042, 76);
}
/**
* @name Zamorak Brew(3)
**/
if((useWith == 111) && (itemUsed == 247) || (useWith == 247) && (itemUsed == 111))
{
c.getHerb().makePotion(c, 900, 111, 247, 111, 247, 189, 78);
}
/**
* @name Saradomin Brew(3)
**/
if((useWith == 3002) && (itemUsed == 6693) || (useWith == 6693) && (itemUsed == 3002))
{
c.getHerb().makePotion(c, 1250, 3002, 6693, 3002, 6693, 6687, 81);
}
/**
* @name Weapon Poison(p++)
**/
if((useWith == 2398) && (itemUsed == 6018) || (useWith == 6018) && (itemUsed == 2398))
{
c.getHerb().makePotion(c, 1500, 2398, 6018, 2398, 6018, 5940, 82);
}
The final part is potion mixing/combining.
Open up your Herblore.java in server.model.players.skills and under this:
Code:
public static void makeUPotion(Client c, int exp, int item1, int item2, int removeitem, int removeitem2, int endId, int level) {
if(level > c.playerLevel[15]) {
c.sendMessage("You need a herblore level of "+level+" to identify this herb.");
return;
}
c.getPA().addSkillXP(exp, 15);
c.getItems().deleteItem(removeitem, c.getItems().getItemSlot(removeitem), 1);
c.getItems().deleteItem(removeitem2, c.getItems().getItemSlot(removeitem2), 1);
c.getItems().addItem(endId, 1);
c.sendMessage("You make an "+c.getItems().getItemName(endId)+".");
c.getPA().addSkillXP(level * Config.HERBLORE_EXP, 15);
c.getPA().refreshSkill(15);
c.getPA().requestUpdates();
}
add this method:
Code:
public static void mixPotion(Client c, int item1, int item2, int endId, int endId2, int dose) {
c.getItems().deleteItem(item1, c.getItems().getItemSlot(item1), 1);
c.getItems().deleteItem(item2, c.getItems().getItemSlot(item2), 1);
c.getItems().addItem(endId, 1);
c.getItems().addItem(endId2, 1);
c.sendMessage("You have combined the liquid into "+dose+" doses.");
}
Now you have the mixPotion void.
Open up ItemOnItem.java in server.model.players.packets and add the following code in it:
Code:
/**
* @name Potions combining 100%
*
* @author TopeltBoost
**/
/**
* @name Attack Potion
**/
if((useWith == 125) && (itemUsed == 125))
{
c.getHerb().mixPotion(c, 125, 125, 229, 123, 2);
}
if((useWith == 123) && (itemUsed == 123))
{
c.getHerb().mixPotion(c, 123, 123, 229, 2428, 4);
}
if((useWith == 125) && (itemUsed == 123) || (useWith == 123) && (itemUsed == 125))
{
c.getHerb().mixPotion(c, 125, 123, 229, 121, 3);
}
if((useWith == 125) && (itemUsed == 121) || (useWith == 121) && (itemUsed == 125))
{
c.getHerb().mixPotion(c, 125, 121, 229, 2428, 4);
}
/**
* @name Antipoison Potion
**/
if((useWith == 179) && (itemUsed == 179))
{
c.getHerb().mixPotion(c, 179, 179, 229, 177, 2);
}
if((useWith == 177) && (itemUsed == 177))
{
c.getHerb().mixPotion(c, 177, 177, 229, 2446, 4);
}
if((useWith == 179) && (itemUsed == 177) || (useWith == 177) && (itemUsed == 179))
{
c.getHerb().mixPotion(c, 179, 177, 229, 175, 3);
}
if((useWith == 179) && (itemUsed == 175) || (useWith == 175) && (itemUsed == 179))
{
c.getHerb().mixPotion(c, 179, 175, 229, 2446, 4);
}
/**
* @name Strength Potion
**/
if((useWith == 119) && (itemUsed == 119))
{
c.getHerb().mixPotion(c, 119, 119, 229, 117, 2);
}
if((useWith == 117) && (itemUsed == 117))
{
c.getHerb().mixPotion(c, 117, 117, 229, 113, 4);
}
if((useWith == 119) && (itemUsed == 117) || (useWith == 117) && (itemUsed == 119))
{
c.getHerb().mixPotion(c, 119, 117, 229, 115, 3);
}
if((useWith == 119) && (itemUsed == 115) || (useWith == 115) && (itemUsed == 119))
{
c.getHerb().mixPotion(c, 119, 115, 229, 113, 4);
}
/**
* @name Serum 207
**/
if((useWith == 3414) && (itemUsed == 3414))
{
c.getHerb().mixPotion(c, 3414, 3414, 229, 3412, 2);
}
if((useWith == 3412) && (itemUsed == 3412))
{
c.getHerb().mixPotion(c, 3412, 3414, 229, 3408, 4);
}
if((useWith == 3414) && (itemUsed == 3412) || (useWith == 3412) && (itemUsed == 3414))
{
c.getHerb().mixPotion(c, 3414, 3412, 229, 3410, 3);
}
if((useWith == 3414) && (itemUsed == 3410) || (useWith == 3410) && (itemUsed == 3414))
{
c.getHerb().mixPotion(c, 3414, 3410, 229, 3408, 4);
}
/**
* @name Restore Potion
**/
if((useWith == 131) && (itemUsed == 131))
{
c.getHerb().mixPotion(c, 131, 131, 229, 129, 2);
}
if((useWith == 129) && (itemUsed == 129))
{
c.getHerb().mixPotion(c, 129, 129, 229, 2430, 4);
}
if((useWith == 131) && (itemUsed == 129) || (useWith == 129) && (itemUsed == 131))
{
c.getHerb().mixPotion(c, 131, 129, 229, 127, 3);
}
if((useWith == 131) && (itemUsed == 127) || (useWith == 127) && (itemUsed == 131))
{
c.getHerb().mixPotion(c, 131, 127, 229, 2430, 4);
}
/**
* @name Energy Potion
**/
if((useWith == 3014) && (itemUsed == 3014))
{
c.getHerb().mixPotion(c, 3014, 3014, 229, 3016, 2);
}
if((useWith == 3016) && (itemUsed == 3016))
{
c.getHerb().mixPotion(c, 3016, 3016, 229, 3020, 4);
}
if((useWith == 3014) && (itemUsed == 3016) || (useWith == 3016) && (itemUsed == 3014))
{
c.getHerb().mixPotion(c, 3014, 3016, 229, 3018, 3);
}
if((useWith == 3014) && (itemUsed == 3018) || (useWith == 3018) && (itemUsed == 3014))
{
c.getHerb().mixPotion(c, 3014, 3018, 229, 3020, 4);
}
/**
* @name Defence Potion
**/
if((useWith == 137) && (itemUsed == 137))
{
c.getHerb().mixPotion(c, 137, 137, 229, 135, 2);
}
if((useWith == 135) && (itemUsed == 135))
{
c.getHerb().mixPotion(c, 135, 135, 229, 2432, 4);
}
if((useWith == 137) && (itemUsed == 135) || (useWith == 135) && (itemUsed == 137))
{
c.getHerb().mixPotion(c, 137, 135, 229, 133, 3);
}
if((useWith == 137) && (itemUsed == 133) || (useWith == 133) && (itemUsed == 137))
{
c.getHerb().mixPotion(c, 137, 133, 229, 2432, 4);
}
/**
* @name Agility Potion
**/
if((useWith == 3038) && (itemUsed == 3038))
{
c.getHerb().mixPotion(c, 3038, 3038, 229, 3036, 2);
}
if((useWith == 3036) && (itemUsed == 3036))
{
c.getHerb().mixPotion(c, 3036, 3036, 229, 3032, 4);
}
if((useWith == 3038) && (itemUsed == 3036) || (useWith == 3036) && (itemUsed == 3038))
{
c.getHerb().mixPotion(c, 3038, 3036, 229, 3034, 3);
}
if((useWith == 3038) && (itemUsed == 3034) || (useWith == 3034) && (itemUsed == 3038))
{
c.getHerb().mixPotion(c, 3038, 3034, 229, 3032, 4);
}
/**
* @name Prayer Potion
**/
if((useWith == 143) && (itemUsed == 143))
{
c.getHerb().mixPotion(c, 143, 143, 229, 141, 2);
}
if((useWith == 141) && (itemUsed == 141))
{
c.getHerb().mixPotion(c, 141, 141, 229, 2434, 4);
}
if((useWith == 143) && (itemUsed == 141) || (useWith == 141) && (itemUsed == 143))
{
c.getHerb().mixPotion(c, 143, 141, 229, 139, 3);
}
if((useWith == 143) && (itemUsed == 139) || (useWith == 139) && (itemUsed == 143))
{
c.getHerb().mixPotion(c, 143, 139, 229, 2434, 4);
}
/**
* @name Super Attack Potion
**/
if((useWith == 149) && (itemUsed == 149))
{
c.getHerb().mixPotion(c, 149, 149, 229, 147, 2);
}
if((useWith == 147) && (itemUsed == 147))
{
c.getHerb().mixPotion(c, 147, 147, 229, 2436, 4);
}
if((useWith == 149) && (itemUsed == 147) || (useWith == 147) && (itemUsed == 149))
{
c.getHerb().mixPotion(c, 149, 147, 229, 145, 3);
}
if((useWith == 149) && (itemUsed == 145) || (useWith == 145) && (itemUsed == 149))
{
c.getHerb().mixPotion(c, 149, 145, 229, 2436, 4);
}
/**
* @name Super Anti-poison Potion
**/
if((useWith == 185) && (itemUsed == 185))
{
c.getHerb().mixPotion(c, 185, 185, 229, 183, 2);
}
if((useWith == 183) && (itemUsed == 183))
{
c.getHerb().mixPotion(c, 183, 183, 229, 2448, 4);
}
if((useWith == 185) && (itemUsed == 183) || (useWith == 183) && (itemUsed == 185))
{
c.getHerb().mixPotion(c, 185, 183, 229, 181, 3);
}
if((useWith == 185) && (itemUsed == 181) || (useWith == 181) && (itemUsed == 185))
{
c.getHerb().mixPotion(c, 185, 181, 229, 2448, 4);
}
/**
* @name Fishing Potion
**/
if((useWith == 155) && (itemUsed == 155))
{
c.getHerb().mixPotion(c, 155, 155, 229, 153, 2);
}
if((useWith == 153) && (itemUsed == 153))
{
c.getHerb().mixPotion(c, 153, 153, 229, 2438, 4);
}
if((useWith == 155) && (itemUsed == 153) || (useWith == 153) && (itemUsed == 155))
{
c.getHerb().mixPotion(c, 155, 153, 229, 151, 3);
}
if((useWith == 155) && (itemUsed == 151) || (useWith == 151) && (itemUsed == 155))
{
c.getHerb().mixPotion(c, 155, 151, 229, 2438, 4);
}
/**
* @name Super Energy Potion
**/
if((useWith == 3022) && (itemUsed == 3022))
{
c.getHerb().mixPotion(c, 3022, 3022, 229, 3020, 2);
}
if((useWith == 3020) && (itemUsed == 3020))
{
c.getHerb().mixPotion(c, 3020, 3020, 229, 3016, 4);
}
if((useWith == 3022) && (itemUsed == 3020) || (useWith == 3020) && (itemUsed == 3022))
{
c.getHerb().mixPotion(c, 3022, 3020, 229, 3018, 3);
}
if((useWith == 3022) && (itemUsed == 3018) || (useWith == 3018) && (itemUsed == 3022))
{
c.getHerb().mixPotion(c, 3022, 3018, 229, 3016, 4);
}
/**
* @name Super Strength Potion
**/
if((useWith == 161) && (itemUsed == 161))
{
c.getHerb().mixPotion(c, 161, 161, 229, 159, 2);
}
if((useWith == 159) && (itemUsed == 159))
{
c.getHerb().mixPotion(c, 159, 159, 229, 2440, 4);
}
if((useWith == 161) && (itemUsed == 159) || (useWith == 159) && (itemUsed == 161))
{
c.getHerb().mixPotion(c, 161, 159, 229, 157, 3);
}
if((useWith == 161) && (itemUsed == 157) || (useWith == 157) && (itemUsed == 161))
{
c.getHerb().mixPotion(c, 161, 157, 229, 2440, 4);
}
/**
* @name Super Restore Potion
**/
if((useWith == 3030) && (itemUsed == 3030))
{
c.getHerb().mixPotion(c, 3030, 3030, 229, 3028, 2);
}
if((useWith == 3028) && (itemUsed == 3028))
{
c.getHerb().mixPotion(c, 3028, 3028, 229, 3024, 4);
}
if((useWith == 3030) && (itemUsed == 3028) || (useWith == 3028) && (itemUsed == 3030))
{
c.getHerb().mixPotion(c, 3030, 3028, 229, 3026, 3);
}
if((useWith == 3030) && (itemUsed == 3026) || (useWith == 3026) && (itemUsed == 3030))
{
c.getHerb().mixPotion(c, 3030, 3026, 229, 3024, 4);
}
/**
* @name Super Defence Potion
**/
if((useWith == 167) && (itemUsed == 167))
{
c.getHerb().mixPotion(c, 167, 167, 229, 165, 2);
}
if((useWith == 165) && (itemUsed == 165))
{
c.getHerb().mixPotion(c, 165, 165, 229, 2442, 4);
}
if((useWith == 167) && (itemUsed == 165) || (useWith == 165) && (itemUsed == 167))
{
c.getHerb().mixPotion(c, 167, 165, 229, 163, 3);
}
if((useWith == 167) && (itemUsed == 163) || (useWith == 163) && (itemUsed == 167))
{
c.getHerb().mixPotion(c, 167, 163, 229, 2442, 4);
}
/**
* @name Ranging Potion
**/
if((useWith == 173) && (itemUsed == 173))
{
c.getHerb().mixPotion(c, 173, 173, 229, 171, 2);
}
if((useWith == 171) && (itemUsed == 171))
{
c.getHerb().mixPotion(c, 171, 171, 229, 2444, 4);
}
if((useWith == 173) && (itemUsed == 171) || (useWith == 171) && (itemUsed == 173))
{
c.getHerb().mixPotion(c, 173, 171, 229, 169, 3);
}
if((useWith == 173) && (itemUsed == 169) || (useWith == 169) && (itemUsed == 173))
{
c.getHerb().mixPotion(c, 173, 169, 229, 2444, 4);
}
/**
* @name Magic Potion
**/
if((useWith == 3046) && (itemUsed == 3046))
{
c.getHerb().mixPotion(c, 3046, 3046, 229, 3044, 2);
}
if((useWith == 3044) && (itemUsed == 3044))
{
c.getHerb().mixPotion(c, 3044, 3044, 229, 3040, 4);
}
if((useWith == 3046) && (itemUsed == 3044) || (useWith == 3044) && (itemUsed == 3046))
{
c.getHerb().mixPotion(c, 3046, 3044, 229, 3042, 3);
}
if((useWith == 3046) && (itemUsed == 3042) || (useWith == 3042) && (itemUsed == 3046))
{
c.getHerb().mixPotion(c, 3046, 3042, 229, 3040, 4);
}
/**
* @name Zamorak Brew
**/
if((useWith == 193) && (itemUsed == 193))
{
c.getHerb().mixPotion(c, 193, 193, 229, 191, 2);
}
if((useWith == 191) && (itemUsed == 191))
{
c.getHerb().mixPotion(c, 191, 191, 229, 2450, 4);
}
if((useWith == 193) && (itemUsed == 191) || (useWith == 191) && (itemUsed == 193))
{
c.getHerb().mixPotion(c, 193, 191, 229, 189, 3);
}
if((useWith == 193) && (itemUsed == 189) || (useWith == 189) && (itemUsed == 193))
{
c.getHerb().mixPotion(c, 193, 189, 229, 2450, 4);
}
/**
* @name Saradomin Brew
**/
if((useWith == 6691) && (itemUsed == 6691))
{
c.getHerb().mixPotion(c, 6691, 6691, 229, 6689, 2);
}
if((useWith == 6689) && (itemUsed == 6689))
{
c.getHerb().mixPotion(c, 6689, 6689, 229, 6685, 4);
}
if((useWith == 6691) && (itemUsed == 6689) || (useWith == 6689) && (itemUsed == 6691))
{
c.getHerb().mixPotion(c, 6691, 6689, 229, 6687, 3);
}
if((useWith == 6691) && (itemUsed == 6687) || (useWith == 6687) && (itemUsed == 6691))
{
c.getHerb().mixPotion(c, 6691, 6687, 229, 6685, 4);
}
Well, I think that's it.
I hope I didn't forget anything, always when you have questions, errors etc, post here, I'll try to help. Remember, this is my first tutorial, so I think I have forgotten at least one thing, I just know that. (h)
Thank you for reading,
TopeltBoost