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

27 lines
860 B
Plaintext

////////////////////////////////////////////////////////////////////////////////
//
// Crafting Trash Clean Up
// opw_oax_reset
// By:Don Anderson
// dandersonru@msn.com
//
// This is called from the Area On Exit Event
//
// Destroys Dropped Items or Left Items on the Ground
// NOTE: This is use in conjunction with the Lootable Corpses for when players
// Drop something on the ground or something does not get destroyed
// Because the player did something to remove the Self Destroy Process
//
////////////////////////////////////////////////////////////////////////////////
void main()
{
object oObject = GetFirstObjectInArea(OBJECT_SELF);
while (oObject != OBJECT_INVALID)
{
int nType = GetObjectType(oObject);
if(nType == OBJECT_TYPE_ITEM) DestroyObject(oObject);
oObject = GetNextObjectInArea(OBJECT_SELF);
}
}