16 lines
349 B
Plaintext
16 lines
349 B
Plaintext
|
|
void main()
|
|
{
|
|
object oPC = GetLastClosedBy();
|
|
object oItem = GetFirstItemInInventory(OBJECT_SELF);
|
|
while (GetIsObjectValid(oItem))
|
|
{
|
|
if ((GetResRef(oItem)!="div_key")&&(GetResRef(oItem)!="divine_note"))
|
|
{
|
|
DestroyObject(oItem);
|
|
}
|
|
oItem = GetNextItemInInventory(OBJECT_SELF);
|
|
}
|
|
PlaySound("gui_quick_erase");
|
|
}
|