28 lines
754 B
Plaintext
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 );
|
|
}
|