coop022
June 25th, 2011, 19:35
I made this on Rs4ever V2 Source :/
Okay, everything goes in ItemOnItem.JAVA for those who don't know.
Making Unfinished potions:
//Herblore by Coop022
//Make Guam Potion (unf)
if(itemUsed == 249 && usedWith == 227 || itemUsed == 227 && usedWith == 249) {
if (player.skillLvl[15] >=1) {
player.requestAnim(363, 0);
pi.deleteItem(player, 249, pi.getItemSlot(player,249), 1);
pi.deleteItem(player, 227, pi.getItemSlot(player,227), 1);
pi.addItem(player, 91, 1);
player.frames.playSound(player, 2612, 1, 0);
player.frames.sendMessage(player, "You Make A Guam Potion (Unf).");
}
}
//Make Tarromin Potion (unf)
if(itemUsed == 253 && usedWith == 227 || itemUsed == 227 && usedWith == 253) {
if (player.skillLvl[15] >=20) {
player.requestAnim(363, 0);
pi.deleteItem(player, 253, pi.getItemSlot(player,253), 1);
pi.deleteItem(player, 227, pi.getItemSlot(player,227), 1);
pi.addItem(player, 95, 1);
player.frames.playSound(player, 2612, 1, 0);
player.frames.sendMessage(player, "You Make A Tarromin Potion (Unf)");
}
}
//Make Ranarr Potion (unf)
if(itemUsed == 257 && usedWith == 227 || itemUsed == 227 && usedWith == 257) {
if (player.skillLvl[15] >=30) {
player.requestAnim(363, 0);
pi.deleteItem(player, 257, pi.getItemSlot(player,257), 1);
pi.deleteItem(player, 227, pi.getItemSlot(player,227), 1);
pi.addItem(player, 99, 1);
player.frames.playSound(player, 2612, 1, 0);
player.frames.sendMessage(player, "You Make A Ranarr Potion (Unf)");
}
}
//Make Irit Potion (unf)
if(itemUsed == 259 && usedWith == 227 || itemUsed == 227 && usedWith == 259) {
if (player.skillLvl[15] >=50) {
player.requestAnim(363, 0);
pi.deleteItem(player, 259, pi.getItemSlot(player,259), 1);
pi.deleteItem(player, 227, pi.getItemSlot(player,227), 1);
pi.addItem(player, 101, 1);
player.frames.playSound(player, 2612, 1, 0);
player.frames.sendMessage(player, "You make a Irit Potion (Unf)");
}
}
//Make Kwuarm Potion (unf)
if(itemUsed == 263 && usedWith == 227 || itemUsed == 227 && usedWith == 263) {
if (player.skillLvl[15] >=80) {
player.requestAnim(363, 0);
pi.deleteItem(player, 263, pi.getItemSlot(player,263), 1);
pi.deleteItem(player, 227, pi.getItemSlot(player,227), 1);
pi.addItem(player, 105, 1);
player.frames.playSound(player, 2612, 1, 0);
player.frames.sendMessage(player, "You Make A Kwuarm Potion (Unf)");
}
}
//Make Dwarf Weed Potion (unf)
if(itemUsed == 267 && usedWith == 227 || itemUsed == 227 && usedWith == 267) {
if (player.skillLvl[15] >=70) {
player.requestAnim(363, 0);
pi.deleteItem(player, 267, pi.getItemSlot(player,267), 1);
pi.deleteItem(player, 227, pi.getItemSlot(player,227), 1);
pi.addItem(player, 109, 1);
player.frames.playSound(player, 2612, 1, 0);
player.frames.sendMessage(player, "You Make a Dwarf Weed Potion (Unf)");
}
}
Here's finishing potions:
Code: [Select]
// finishing Potions -Coop022
//Make Attack Potion
if(itemUsed == 91 && usedWith == 221 || itemUsed == 221 && usedWith == 91) {
if (player.skillLvl[15] >=1) {
player.requestAnim(363, 0);
pi.deleteItem(player, 91, pi.getItemSlot(player,91), 1);
pi.deleteItem(player, 221, pi.getItemSlot(player,221), 1);
pi.addItem(player, 2428, 1);
player.addSkillXP(140, 15);
player.frames.playSound(player, 2612, 1, 0);
player.frames.sendMessage(player, "You Make a Attack Potion (4)");
}
}
//Make Strength Potion
if(itemUsed == 95 && usedWith == 225 || itemUsed == 225 && usedWith == 95) {
if (player.skillLvl[15] >=20) {
player.requestAnim(363, 0);
pi.deleteItem(player, 95, pi.getItemSlot(player,95), 1);
pi.deleteItem(player, 225, pi.getItemSlot(player,225), 1);
pi.addItem(player, 2440, 1);
player.addSkillXP(275, 15);
player.frames.playSound(player, 2612, 1, 0);
player.frames.sendMessage(player, "You Make a Super Strength Potion (4)");
}
}
//Make Defence Potion
if(itemUsed == 99 && usedWith == 239 || itemUsed == 239 && usedWith == 99) {
if (player.skillLvl[15] >=30) {
player.requestAnim(363, 0);
pi.deleteItem(player, 99, pi.getItemSlot(player,99), 1);
pi.deleteItem(player, 239, pi.getItemSlot(player,239), 1);
pi.addItem(player, 2442, 1);
player.addSkillXP(400, 15);
player.frames.playSound(player, 2612, 1, 0);
player.frames.sendMessage(player, "You Make a Super Defence Potion (4)");
}
}
//Make Attack Potion
if(itemUsed == 101 && usedWith == 221 || itemUsed == 221 && usedWith == 101) {
if (player.skillLvl[15] >=50) {
player.requestAnim(363, 0);
pi.deleteItem(player, 101, pi.getItemSlot(player,101), 1);
pi.deleteItem(player, 221, pi.getItemSlot(player,221), 1);
pi.addItem(player, 2436, 1);
player.addSkillXP(503, 15);
player.frames.playSound(player, 2612, 1, 0);
player.frames.sendMessage(player, "You Make a Super Attack Potion (4)");
}
}
//Make Ranging Potion
if(itemUsed == 109 && usedWith == 245 || itemUsed == 245 && usedWith == 109) {
if (player.skillLvl[15] >=70) {
player.requestAnim(363, 0);
pi.deleteItem(player, 109, pi.getItemSlot(player,109), 1);
pi.deleteItem(player, 245, pi.getItemSlot(player,245), 1);
pi.addItem(player, 2444, 1);
player.addSkillXP(800, 15);
player.frames.playSound(player, 2612, 1, 0);
player.frames.sendMessage(player, "You Make a Ranging Potion (4)");
}
}
//Make Weapon Poison
if(itemUsed == 105 && usedWith == 243 || itemUsed == 243 && usedWith == 105) {
if (player.skillLvl[15] >=85) {
player.requestAnim(363, 0);
pi.deleteItem(player, 105, pi.getItemSlot(player,105), 1);
pi.deleteItem(player, 243, pi.getItemSlot(player,243), 1);
pi.addItem(player, 187, 1);
player.addSkillXP(1300, 15);
player.frames.playSound(player, 2612, 1, 0);
player.frames.sendMessage(player, "You Make Weapon Poison");
}
}
Here's a little extra thing because i didn't put making weapon poisons in there for nothing.
Making dragon daggers P++ with weapon poisons
i Added this because players can make money by:
buying a normal dragon dagger for a cheaper price and make/sell dragon dagger p++'s for more with weapon poison.
code:
//Make Dragon Dagger p++
if(itemUsed == 187 && usedWith == 1215 || itemUsed == 1215 && usedWith == 187) {
pi.deleteItem(player, 187, pi.getItemSlot(player,187),1);
pi.deleteItem(player, 1215, pi.getItemSlot(player,1215),1);
pi.addItem(player, 5698, 1);
player.addSkillXP(2, 9);
player.frames.sendMessage(player, "You made a Dragon Dagger p++");
}
Okay, everything goes in ItemOnItem.JAVA for those who don't know.
Making Unfinished potions:
//Herblore by Coop022
//Make Guam Potion (unf)
if(itemUsed == 249 && usedWith == 227 || itemUsed == 227 && usedWith == 249) {
if (player.skillLvl[15] >=1) {
player.requestAnim(363, 0);
pi.deleteItem(player, 249, pi.getItemSlot(player,249), 1);
pi.deleteItem(player, 227, pi.getItemSlot(player,227), 1);
pi.addItem(player, 91, 1);
player.frames.playSound(player, 2612, 1, 0);
player.frames.sendMessage(player, "You Make A Guam Potion (Unf).");
}
}
//Make Tarromin Potion (unf)
if(itemUsed == 253 && usedWith == 227 || itemUsed == 227 && usedWith == 253) {
if (player.skillLvl[15] >=20) {
player.requestAnim(363, 0);
pi.deleteItem(player, 253, pi.getItemSlot(player,253), 1);
pi.deleteItem(player, 227, pi.getItemSlot(player,227), 1);
pi.addItem(player, 95, 1);
player.frames.playSound(player, 2612, 1, 0);
player.frames.sendMessage(player, "You Make A Tarromin Potion (Unf)");
}
}
//Make Ranarr Potion (unf)
if(itemUsed == 257 && usedWith == 227 || itemUsed == 227 && usedWith == 257) {
if (player.skillLvl[15] >=30) {
player.requestAnim(363, 0);
pi.deleteItem(player, 257, pi.getItemSlot(player,257), 1);
pi.deleteItem(player, 227, pi.getItemSlot(player,227), 1);
pi.addItem(player, 99, 1);
player.frames.playSound(player, 2612, 1, 0);
player.frames.sendMessage(player, "You Make A Ranarr Potion (Unf)");
}
}
//Make Irit Potion (unf)
if(itemUsed == 259 && usedWith == 227 || itemUsed == 227 && usedWith == 259) {
if (player.skillLvl[15] >=50) {
player.requestAnim(363, 0);
pi.deleteItem(player, 259, pi.getItemSlot(player,259), 1);
pi.deleteItem(player, 227, pi.getItemSlot(player,227), 1);
pi.addItem(player, 101, 1);
player.frames.playSound(player, 2612, 1, 0);
player.frames.sendMessage(player, "You make a Irit Potion (Unf)");
}
}
//Make Kwuarm Potion (unf)
if(itemUsed == 263 && usedWith == 227 || itemUsed == 227 && usedWith == 263) {
if (player.skillLvl[15] >=80) {
player.requestAnim(363, 0);
pi.deleteItem(player, 263, pi.getItemSlot(player,263), 1);
pi.deleteItem(player, 227, pi.getItemSlot(player,227), 1);
pi.addItem(player, 105, 1);
player.frames.playSound(player, 2612, 1, 0);
player.frames.sendMessage(player, "You Make A Kwuarm Potion (Unf)");
}
}
//Make Dwarf Weed Potion (unf)
if(itemUsed == 267 && usedWith == 227 || itemUsed == 227 && usedWith == 267) {
if (player.skillLvl[15] >=70) {
player.requestAnim(363, 0);
pi.deleteItem(player, 267, pi.getItemSlot(player,267), 1);
pi.deleteItem(player, 227, pi.getItemSlot(player,227), 1);
pi.addItem(player, 109, 1);
player.frames.playSound(player, 2612, 1, 0);
player.frames.sendMessage(player, "You Make a Dwarf Weed Potion (Unf)");
}
}
Here's finishing potions:
Code: [Select]
// finishing Potions -Coop022
//Make Attack Potion
if(itemUsed == 91 && usedWith == 221 || itemUsed == 221 && usedWith == 91) {
if (player.skillLvl[15] >=1) {
player.requestAnim(363, 0);
pi.deleteItem(player, 91, pi.getItemSlot(player,91), 1);
pi.deleteItem(player, 221, pi.getItemSlot(player,221), 1);
pi.addItem(player, 2428, 1);
player.addSkillXP(140, 15);
player.frames.playSound(player, 2612, 1, 0);
player.frames.sendMessage(player, "You Make a Attack Potion (4)");
}
}
//Make Strength Potion
if(itemUsed == 95 && usedWith == 225 || itemUsed == 225 && usedWith == 95) {
if (player.skillLvl[15] >=20) {
player.requestAnim(363, 0);
pi.deleteItem(player, 95, pi.getItemSlot(player,95), 1);
pi.deleteItem(player, 225, pi.getItemSlot(player,225), 1);
pi.addItem(player, 2440, 1);
player.addSkillXP(275, 15);
player.frames.playSound(player, 2612, 1, 0);
player.frames.sendMessage(player, "You Make a Super Strength Potion (4)");
}
}
//Make Defence Potion
if(itemUsed == 99 && usedWith == 239 || itemUsed == 239 && usedWith == 99) {
if (player.skillLvl[15] >=30) {
player.requestAnim(363, 0);
pi.deleteItem(player, 99, pi.getItemSlot(player,99), 1);
pi.deleteItem(player, 239, pi.getItemSlot(player,239), 1);
pi.addItem(player, 2442, 1);
player.addSkillXP(400, 15);
player.frames.playSound(player, 2612, 1, 0);
player.frames.sendMessage(player, "You Make a Super Defence Potion (4)");
}
}
//Make Attack Potion
if(itemUsed == 101 && usedWith == 221 || itemUsed == 221 && usedWith == 101) {
if (player.skillLvl[15] >=50) {
player.requestAnim(363, 0);
pi.deleteItem(player, 101, pi.getItemSlot(player,101), 1);
pi.deleteItem(player, 221, pi.getItemSlot(player,221), 1);
pi.addItem(player, 2436, 1);
player.addSkillXP(503, 15);
player.frames.playSound(player, 2612, 1, 0);
player.frames.sendMessage(player, "You Make a Super Attack Potion (4)");
}
}
//Make Ranging Potion
if(itemUsed == 109 && usedWith == 245 || itemUsed == 245 && usedWith == 109) {
if (player.skillLvl[15] >=70) {
player.requestAnim(363, 0);
pi.deleteItem(player, 109, pi.getItemSlot(player,109), 1);
pi.deleteItem(player, 245, pi.getItemSlot(player,245), 1);
pi.addItem(player, 2444, 1);
player.addSkillXP(800, 15);
player.frames.playSound(player, 2612, 1, 0);
player.frames.sendMessage(player, "You Make a Ranging Potion (4)");
}
}
//Make Weapon Poison
if(itemUsed == 105 && usedWith == 243 || itemUsed == 243 && usedWith == 105) {
if (player.skillLvl[15] >=85) {
player.requestAnim(363, 0);
pi.deleteItem(player, 105, pi.getItemSlot(player,105), 1);
pi.deleteItem(player, 243, pi.getItemSlot(player,243), 1);
pi.addItem(player, 187, 1);
player.addSkillXP(1300, 15);
player.frames.playSound(player, 2612, 1, 0);
player.frames.sendMessage(player, "You Make Weapon Poison");
}
}
Here's a little extra thing because i didn't put making weapon poisons in there for nothing.
Making dragon daggers P++ with weapon poisons
i Added this because players can make money by:
buying a normal dragon dagger for a cheaper price and make/sell dragon dagger p++'s for more with weapon poison.
code:
//Make Dragon Dagger p++
if(itemUsed == 187 && usedWith == 1215 || itemUsed == 1215 && usedWith == 187) {
pi.deleteItem(player, 187, pi.getItemSlot(player,187),1);
pi.deleteItem(player, 1215, pi.getItemSlot(player,1215),1);
pi.addItem(player, 5698, 1);
player.addSkillXP(2, 9);
player.frames.sendMessage(player, "You made a Dragon Dagger p++");
}