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?