void main() { // Opens nearest store objec to the lever. It is best if the lever is placed // on the actual store it is expected to open. object oPC = GetLastUsedBy(); object oTreasureType = GetNearestObject(OBJECT_TYPE_STORE); OpenStore(oTreasureType, oPC,0,0); }