Rune_PRC8/_module/nss/opw_trashcan.nss
Jaysyn904 d1c309ae63 Initial commit
Initial commit
2024-09-13 09:10:39 -04:00

28 lines
754 B
Plaintext

////////////////////////////////////////////////////////////////////////////////
//
// Crafting Trash Can
// opw_trashcan
// By:Don Anderson
// dandersonru@msn.com
//
// This is placed in the OnClosed Event of
// a chest or whatever.
//
// Destroys anything that is placed in this can
//
////////////////////////////////////////////////////////////////////////////////
void main()
{
object oTrashCan = OBJECT_SELF;
object oItemInTrash = GetFirstItemInInventory(oTrashCan);
while(GetIsObjectValid(oItemInTrash) == TRUE)
{
DestroyObject(oItemInTrash);
oItemInTrash = GetNextItemInInventory(oTrashCan);
}
ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect( VFX_FNF_SMOKE_PUFF ), OBJECT_SELF );
}