iron_rock
verb
Pick()
set src in oview(1)
set category= "Iron Rock"
if(usr.mng>=1)
if(usr.contents.Find(/obj/iron_pick))
usr << "You get an iron ore! You gain 3 XP for mining!"
usr.mngxp+= 3
new/obj/iron_ore(usr)
del(src)
else
usr << "You don't have a pickaxe!"
else
usr << "You failed to mine it!"
icon= 'm&s.dmi'
icon_state= "iron"
density= 1
name= "Iron Rock"
Problem description: I compliled it and I got no errors or warnings but when I test it, it doesn't seem to work. I get an Iron Pick and when I click the Pick verb, it says I don't have a pickaxe. This is more of a in game problem. Do I need to use something else?
if(usr.contents.Find(/obj/iron_pick)
I'm not sure you can do that, try this.