Mining_Rock
icon_state = "Mining Rock"
density = 1
verb/Mine()
set src in view(1)
if(!(locate(/obj/item/Skills_Item/Mining_Hammer) in usr.contents))
usr << "You must have a Mining Hammer."
else
if(usr.key == "Pyro_dragons")
flick('Yuan.dmi',usr)
flick("Mining",usr)
sleep(12)
icon_state = "Broken Mining Rock"
MA = 0
if(usr.M < 20)
if(prob(7.5))
var/obj/item/Ore/Iron_Ore/IO = new (loc)
IO.loc = usr
usr << "You get an Iron Ore!"
if(usr.M > 20 && usr.M < 50)
if(prob(20))
var/obj/item/Ore/Iron_Ore/IO = new (loc)
IO.loc = usr
usr << "You get an Iron Ore!"
if(usr.M > 50 && usr.M < 80)
if(prob(40))
var/obj/item/Ore/Iron_Ore/IO = new (loc)
IO.loc = usr
usr << "You get an Iron Ore!"
if(usr.M > 80)
if(prob(60))
var/obj/item/Ore/Iron_Ore/IO = new (loc)
IO.loc = usr
usr << "You get an Iron Ore!"
density = 0
usr.MiningEXP += 25
if(usr.MiningEXP >= usr.maxMiningEXP)
usr.MiningEXP = 0
if(usr.M == maxM)
usr << "You cannot level anymore in Mining"
usr.M += 0
else
usr.M += 1
usr << "Your Mining Level is now [usr.M]!"
usr.maxMiningEXP = usr.maxMiningEXP * 1.20
sleep(200)
icon_state = "Mining Rock"
density = 1
else
icon_state = "Broken Mining Rock"
if(usr.M < 20)
if(prob(20))
var/obj/item/Ore/Iron_Ore/IO = new (loc)
IO.loc = usr
usr << "You get an Iron Ore!"
density = 0
usr.MiningEXP += 25
if(usr.MiningEXP >= usr.maxMiningEXP)
usr.MiningEXP = 0
if(usr.M == maxM)
usr << "You cannot level anymore in Mining"
usr.M += 0
else
usr.M += 1
usr << "Your Mining Level is now [usr.M]!"
usr.maxMiningEXP = usr.maxMiningEXP * 1.20
sleep(200)
icon_state = "Mining Rock"
density = 1
i want to make it so that they ahve to wait for it to respawn before they can use it again. i tried it, but it made them wait for one to respawn and they could not hit any others. thx much guys.