public static bool wantsToCraftOnObject(Player p, int item, int craftObject) { if (craftObject == CLAY_TABLE) { if (item == CLAY) { resetCrafting(p); Clay.displayClayOptions(p, 1); p.setTemporaryAttribute("craftType", 1); return(true); } else { for (int j = 0; j < CLAY_ITEMS.Length; j++) { if (item == (int)CLAY_ITEMS[j][0]) { p.getPackets().sendMessage("This item must now be baked in a clay oven."); return(true); } } } } else if (craftObject == CLAY_OVEN) { if (craftObject == CLAY) { p.getPackets().sendMessage("This clay must be moulded into an item first."); return(true); } for (int j = 0; j < CLAY_ITEMS.Length; j++) { if (item == (int)CLAY_ITEMS[j][0]) { resetCrafting(p); Clay.displayClayOptions(p, 2); p.setTemporaryAttribute("craftType", 2); return(true); } } } else if (craftObject == 11666) { // Furnace if (item == GOLD_BAR) { Jewellery.displayJewelleryInterface(p); return(true); } else if (item == SILVER_BAR) { Silver.displaySilverOptions(p); return(true); } } return(false); }