obj
house_items
verb
Drop()
usr.islocked = 1
switch(alert("Once you drop this, you will NEVER be able to get it again! Are you sure you want to drop it here?","Drop?","Yes","No"))
if("Yes")
usr << "<i>You steadly place the [src.name]!</i>"
src.Move(locate(usr.x,usr.y,usr.z))
usr.islocked = 0
src.dropped = 1
if("No")
usr << "<i>You decide not to put the [src.name] here.</i>"
usr.islocked = 0
var
ownerkey = null
ownername = null
BedLeft
name = "Bed"
icon = 'turfs.dmi'
icon_state = "bedl"
density = 1
BedRight
name = "Bed"
icon = 'turfs.dmi'
icon_state = "bedr"
density = 0
verb
Sleep()
if(src == locate(usr))
usr << "<i>You would be able to get to sleep, but you can't sleep in yourself!"
return
else
set src in view(0)
usr.islocked = 1
usr << "<i>You get into bed and start to take a rest."
sleep(50)
usr << "<i>When you awaken, you are fully regenerated!"
usr.hp = usr.maxhp
usr.mp = usr.maxmp
usr.islocked = 0
The Bed part WITHOUT the density WILL DROP! The bed part WITH the density WILL NOT DROP! Please help.
Also, locate(usr.x, usr.y, usr.z) is rather pointless. Just use loc.