rendered paste bodyThese are the errors I get;
client.java:16116: 'else' without 'if'
else if(useItemID == 436 && atObjectID == 2781 &
& playerLevel[13] >= 0) // Using Tin ore on a furnace. Produces 1 Bronze bar.
^
client.java:16127: 'else' without 'if'
else if(useItemID == 440 && atObjectID == 2781 &
& playerLevel[13] >= 5) // Using Iron ore on a furnace. Produces 1 Iron bar.
^
client.java:16138: 'else' without 'if'
else if(useItemID == 453 && atObjectID == 2781 &
& playerLevel[13] >= 10) // Using Coal ore on a furnace. Produces 1 Steel bar.
^
client.java:16149: 'else' without 'if'
else if(useItemID == 447 && atObjectID == 2781 &
& playerLevel[13] >= 20) // Using Mithril ore on a furnace. Produces 1 Mithril
bar.
^
client.java:16160: 'else' without 'if'
else if(useItemID == 449 && atObjectID == 2781 &
& playerLevel[13] >= 45) // Using Adament ore on a furnace. Produces 1 Adament
bar.
^
client.java:16171: 'else' without 'if'
else if(useItemID == 451 && atObjectID == 2781 &
& playerLevel[13] >= 75) // Using Runite ore on a furnace. Produces 1 Runite b
ar.
^
client.java:16184: 'else' without 'if'
else if(useItemID == 4830 && atObjectID == 5284)
// Bone grinding
^
7 errors
Files Compiled Successfully!
Press any key to continue . . .
and this is the code where the errors are;
// This part is simple Smelting.
else if(useItemID == 436 && atObjectID == 2781) // Using Tin ore on a furnace. Produces 1 Bronze bar.
{
startAnimation(899);
addItem(2349, 1);
{
sendMessage("You make a Bronze bar.");
pSay("Ouch! It's roasting hot!");
addSkillXP((25*playerLevel[13]), 13);
deleteItem(436,getItemSlot(436), 1);
}
else if(useItemID == 436 && atObjectID == 2781 && playerLevel[13] >= 0) // Using Tin ore on a furnace. Produces 1 Bronze bar.
{
startAnimation(899);
addItem(2349, 1);
{
sendMessage("You make a Bronze bar.");
pSay("Ouch! It's roasting hot!");
addSkillXP((25*playerLevel[13]), 13);
deleteItem(436,getItemSlot(436), 1);
}
else if(useItemID == 440 && atObjectID == 2781 && playerLevel[13] >= 5) // Using Iron ore on a furnace. Produces 1 Iron bar.
{
startAnimation(899);
addItem(2351, 1);
{
sendMessage("You make an Iron bar.");
pSay("Ouch! It's roasting hot!");
addSkillXP((50*playerLevel[13]), 13);
deleteItem(440,getItemSlot(440), 1);
}
else if(useItemID == 453 && atObjectID == 2781 && playerLevel[13] >= 10) // Using Coal ore on a furnace. Produces 1 Steel bar.
{
startAnimation(899);
addItem(2353, 1);
{
sendMessage("You make a Steel bar.");
pSay("Ouch! It's roasting hot!");
addSkillXP((75*playerLevel[13]), 13);
deleteItem(453,getItemSlot(453), 1);
}
else if(useItemID == 447 && atObjectID == 2781 && playerLevel[13] >= 20) // Using Mithril ore on a furnace. Produces 1 Mithril bar.
{
startAnimation(899);
addItem(2359, 1);
{
sendMessage("You make a Mithril bar.");
pSay("Ouch! It's roasting hot!");
addSkillXP((100*playerLevel[13]), 13);
deleteItem(447,getItemSlot(447), 1);
}
else if(useItemID == 449 && atObjectID == 2781 && playerLevel[13] >= 45) // Using Adament ore on a furnace. Produces 1 Adament bar.
{
startAnimation(899);
addItem(2361, 1);
{
sendMessage("You make a Adament bar.");
pSay("Ouch! It's roasting hot!");
addSkillXP((150*playerLevel[13]), 13);
deleteItem(449,getItemSlot(449), 1);
}
else if(useItemID == 451 && atObjectID == 2781 && playerLevel[13] >= 75) // Using Runite ore on a furnace. Produces 1 Runite bar.
{
startAnimation(899);
addItem(2363, 1);
{
sendMessage("You make a Runite bar.");
pSay("Ouch! It's roasting hot!");
addSkillXP((150*playerLevel[13]), 13);
deleteItem(451,getItemSlot(451), 1);
}
// The "Runite Smelting" above was the last.