ID:145174
 
Code:
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)
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()


Problem description:
How do I get it so I have to be to the left of the object and facing it to use Train()?
Try looking up the get_dir proc might help.