Initial upload. PRC8 has been added. Module compiles, PRC's default AI & treasure scripts have been integrated. Started work on top hak for SLA / Ability / Scripting modifications.
21 lines
363 B
Plaintext
21 lines
363 B
Plaintext
void main()
|
|
{
|
|
|
|
object oPC=GetLastOpenedBy();
|
|
|
|
object oKey=GetItemPossessedBy(oPC,"key");
|
|
|
|
while (GetIsObjectValid(oKey))
|
|
{
|
|
DestroyObject(oKey);
|
|
oKey=GetItemPossessedBy(oPC,"key");
|
|
}
|
|
|
|
object oObject=OBJECT_SELF;
|
|
|
|
DelayCommand(5.0,AssignCommand(oObject,ActionCloseDoor(oObject)));
|
|
DelayCommand(5.5,AssignCommand(oObject,SetLocked(oObject,TRUE)));
|
|
|
|
//
|
|
}
|