ID:143958
 
Code:
    
turf
Furnace
icon = 'Scenery.dmi'
icon_state = "Furnace"
name = "Furnace"
density = 1
Click()
if (get_dist(src, usr) > 1)
return
var/A = input("What would you like to smelt?","Furnace")in list("Iron Ore")

if(A == "Iron Ore")
new /obj/Smithing/Iron_Ingot(usr)


Problem description:
Does anyone know how to make this where i can only create an iron ingot if i have iron ore in my inventory, of if they can fix it so it works?

The error is:

obj/Smithing/Iron_ingot: Undefined type path


PS:please take it easy im a newbie programmer, just started so i dont know much
nvm found it ;P, now i need help for you can only smelt it if you have the ores in your pack?

In response to Godzooks
maybe..


if(var/obj/o = locate([the type for iron ore (/obj/whatever/blah)]) in usr