ID:145234
 
Code:
turf
terrain
cavewall
icon = 'turfs.dmi'
icon_state = "cave"
name = "Cave Wall"
density = 1
opacity = 1
verb
Mine()
set src in oview(1)
if(usr.pickaxe == 1)
if(harvest == 0)
usr << "You begin mining the [src]"
usr.locked = 1
harvest = 1
sleep(50)
view() << "<font color = #666666>[usr] mines down [src]"
usr.locked = 0
del(src)
harvest = 0
else
usr<<"Thats being mined right now."
else
usr << "You need a Pick-Axe to mine [src]"


Problem description:

When it goes del(src) it deletes allt he rturfs under it and I only want the cavewall to be destroyed because I will have some minable resources under it and the cave flor isnt there.
Try making it an obj instead of a turf.
I remember I had a problem like this. Maybe I can find the helping code again.
F0lak wrote:
When it goes del(src) it deletes allt he rturfs under it and I only want the cavewall to be destroyed because I will have some minable resources under it and the cave flor isnt there.

When the map is generated at the world/New() stage, it places the lowermost turf, as a turf, and all other "turfs" that you laid in the map editor are added as overlays. So when you delete the src you are really deleting the bottom turf, and all of its overlays.

§atans§pawn
In response to Satans Spawn
So would del(overlay) work?