generated from Jaysyn/ModuleTemplate
Initial Commit
Initial Commit
This commit is contained in:
15
_module/nss/trash_can.nss
Normal file
15
_module/nss/trash_can.nss
Normal file
@@ -0,0 +1,15 @@
|
||||
|
||||
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");
|
||||
}
|
||||
Reference in New Issue
Block a user