Sat, 27 Mar 2010 17:43:08 +0000
Initial commit (importing from old SVN repo which got lost)
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