#1.dsc = "It is pitch dark in here";

func #1.lights {
	if(#self.on == NULL) {
		$tmp = #self.on = 1;
		if($tmp == NULL) {
			echo("the switch is broken\n");
			return;
		}
		chmod(&#self.on,"W:rw");
		@.emote("turns on the lights");

		#self.dsc = "You see a dusty room, filled with junk and heaps of crumpled fan-fold printouts. In one corner is a desk with a DECstation3100 on it, and along one wall is a row of empty metal bookcases with Coke cans strewn all over the selves";
		return;
	}

	#self.dsc = "It is pitch dark in here";
	#self.on = NULL;
	@.emote("turns off the lights");
}

chmod(&#1.lights,"W:rs");