diff -r 000000000000 -r cc66ad6b0d75 objects/obj_door.lua --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/objects/obj_door.lua Sat Mar 27 17:43:08 2010 +0000 @@ -0,0 +1,18 @@ + +classes.obj_door = +{ + _properties = {name = "door", longname = "a door", desc = "You see a doorway, through which you can enter.", static = true } +} + +function classes.obj_door:_create(e) + local obj = classes.default._create(self, e); + obj._properties.to = e.ext.to; + obj._properties.longname = e.ext.longname; + return obj; +end + +function classes.obj_door:enter(e) + if not self._properties.to then e.person:_tell("You find it physically impossible to pass through the doorway!"); end + e.person:_say("/me enters "..self._properties.longname); + e.person:_sendto(self._properties.to); +end \ No newline at end of file