obj
Pbag
icon = 'Pbag.dmi'
icon_state = "Normal"
density = 1
verb
Train()
set src in oview(1)
if(usr.training == 0 && usr.rest == 0 && usr.Stamina >= 5)
if(usr.dir == EAST && usr.location(src.x-1,src.y,src.z))
usr.training = 1
usr.bagtrained = 1
flick("Hit",src)
usr<<"<font color = blue><b>You hit the heavy bag</b></font>"
usr.Stamina -= rand(2,5)
usr.Speedexp += 1
usr.Armstr += 1
usr.Endurance += 1/2
usr.Thirst += 1
usr.Hunger += 1/2
spawn(20 - usr.Speed)
usr.training = 0
usr.LevelCheck()
Fixed it so it has to face east but i want it to be directly left of the pbag. it gives me this error
Turf.dm:169:error:usr.location:undefined proc