Hey guys,

I have a small problem. I don't know if any of you have ever had this problem, but I'm trying to make a complete amulet system, I guess you could say? Where you start from scratch and work all your way up to an enchanted amulet strung. Here's my problem though right now (ignore that there's no exp added when making a strung amulet, that should be easy to add in the code). Here's the code:

Code:
if(itemUsed == 1759 && usedWith == 1675 || itemUsed == 1675 && usedWith == 1759) {
            pi.deleteItem(player, 1759, pi.getItemSlot(player, 1759), 1);
            pi.deleteItem(player, 1675, pi.getItemSlot(player, 1675), 1);
            pi.addItem(player, 1694, 1);
			}
		if(itemUsed == 1759 && usedWith == 1677 || itemUsed == 1677 && usedWith == 1759) {
            pi.deleteItem(player, 1759, pi.getItemSlot(player, 1759), 1);
            pi.deleteItem(player, 1677, pi.getItemSlot(player, 1677), 1);
            pi.addItem(player, 1696, 1);
			}
		if(itemUsed == 1759 && usedWith == 1679 || itemUsed == 1679 && usedWith == 1759) {
            pi.deleteItem(player, 1759, pi.getItemSlot(player, 1759), 1);
            pi.deleteItem(player, 1679, pi.getItemSlot(player, 1679), 1);
            pi.addItem(player, 1698, 1);
			}
		if(itemUsed == 1759 && usedWith == 1681 || itemUsed == 1681 && usedWith == 1759) {
            pi.deleteItem(player, 1759, pi.getItemSlot(player, 1681), 1);
            pi.deleteItem(player, 1681, pi.getItemSlot(player, 1759), 1);
            pi.addItem(player, 1700, 1);
			}
		if(itemUsed == 1759 && usedWith == 1683 || itemUsed == 1675 && usedWith == 1759) {
            pi.deleteItem(player, 1759, pi.getItemSlot(player, 1675), 1);
            pi.deleteItem(player, 1675, pi.getItemSlot(player, 1759), 1);
            pi.addItem(player, 1702, 1);
			}
		if(itemUsed == 1759 && usedWith == 6579 || itemUsed == 6579 && usedWith == 1759) {
            pi.deleteItem(player, 1759, pi.getItemSlot(player, 6579), 1);
            pi.deleteItem(player, 6579, pi.getItemSlot(player, 1759), 1);
            pi.addItem(player, 6581, 1);
			}
Code's on Itemonitem.java btw

The problem is some items, like making a Sapphire ammy strung, it will delete the ball of wool and sapphire unstrung ammy, but make 2 amulets strung. Another example would be the last one, aka onyx amulet strung. When using either ball of wool on fury unstrung, it will make one onyx amulet strung, but the ball of wool and onyx amulet won't delete out of the inventory..

If there's any way to fix up this code, which there might be? I dunno. Like i've said on my other thread which was sort of a while ago, I rarely come on here to ask for help because I haven't had any real issues. Please help! Thanks!!

-S3R0