Kyle's code should work.
Explanation:
Your code is basically saying that:
Example:
Code:
if itemUsed is 5001 OR useWith is 5016 {
sendMessage("Blah");
deleteItem(5001, getItemSlot(5001), 1);
addItem(5014, 1);
}
Code:
if((itemUsed == 5001 || useWith == 5016)) {
sendMessage("You have created a Divine Spirit Shield.");
deleteItem(5001, getItemSlot(5001), 1);
addItem(5014, 1);
}
As Kyle's says the same thing except he has &&, which means AND in the Java Language.
Code:
else if ((itemUsed == 5001) && (useWith == 5016)) {
deleteItem(5001, getItemSlot(5001), 1);
addItem(5014, 1);
sendMessage("You have created a Divine Spirit Shield.");
}
So, basically, remember that || is OR, and && is AND.
That seems to be the only mistake you've made.