LoT_PRC8/_module/nss/q3_destroy_gold.nss
Jaysyn904 ec287507a1 Initial upload
Initial upload.
2023-09-25 21:32:17 -04:00

11 lines
240 B
Plaintext

// Destroy a pile of gold if empty
void main()
{
if(GetInventoryDisturbType() == INVENTORY_DISTURB_TYPE_REMOVED)
{
if(GetFirstItemInInventory(OBJECT_SELF) == OBJECT_INVALID)
DestroyObject(OBJECT_SELF);
}
}