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