void main() { object oPC = GetLastClosedBy(); SetLocalInt(oPC, "bookshelf_opened",1); SetLocked(OBJECT_SELF, TRUE); }