mob
var
Mining = 1
MExp = 0
MaxMExp = 100
PickAxe = 0
ismining = 0
Move()
if(usr.ismining == 1)
usr.ismining = 0
usr << "You stop mining."
else
..()
proc
Bronze()
if(usr.ismining == 0)
if(usr.Mining >= 0)
usr << "You begin to mine.."
if(prob(50))
usr.ismining = 1
sleep(30)
usr.MExp += 25
usr.MineCheck()
usr << "You mine bronze ore!"
usr.MineCheck()
usr.contents += new/obj/Bronze_Ore
if(prob(50))
usr.ismining = 1
usr << "notta"
sleep(30)
else
usr << "You are not high enough level to mine this yet."
return
else
..()
if(usr.contents.len >= 35)
usr << "Your pack is full."
return
Iron()
if(usr.ismining == 0)
if(usr.Mining >= 15)
if(prob(50))
usr.ismining = 1
sleep(30)
usr.MExp += 25
usr << "You mine iron ore!"
usr.contents += new/obj/Iron_Ore
usr.MineCheck()
if(prob(50))
usr.ismining = 1
usr << "notta"
sleep(30)
else
usr << "You are not high enough level to mine this yet."
return
else
..()
if(usr.contents.len >= 35)
usr << "Your pack is full."
return
proc
MineCheck()
if(MExp >= MaxMExp)
usr.Mining+=1
usr.MExp=0
usr.MaxMExp+=25
usr << "Your mining increased to level [usr.Mining]!"
obj
icon = 'Skills.dmi'
Bronze
name = "Rock"
icon_state = "copper"
verb
Examine()
usr << "This rock contains bronze."
Mine()
set src in oview(1)
var/obj/haspick = locate(/obj/PickAxes/) in usr.contents
if(haspick)
usr.Bronze()
else
usr << "You need a PickAxe to mine."
Bronze_Ore
name = "Bronze Ore"
icon_state = "copper ore"
Iron
name = "Rock"
icon_state = "iron"
verb
Examine()
usr << "This rock contains iron."
Mine()
set src in oview(1)
var/obj/haspick = locate(/obj/PickAxes/) in usr.contents
if(haspick)
usr.Iron()
else
usr << "You need a PickAxe to mine."
Iron_Ore
name = "Iron Ore"
icon_state = "iron ore"
PickAxes
Bronze_PickAxe
name = "Bronze PickAxe"
icon = 'Skills.dmi'
icon_state = "bPick Axe"
Iron_PickAxe
name = "Iron PickAxe"
icon = 'Skills.dmi'
icon_state = "iPick Axe"
Problem description:
I want it so you keep mining till you move or ur inventory is full, but right now it just mines one thing and stops, can i get sum help. And yes i tried the loop proc, but i cant get it to work well for when you move it stops mining.