LoT_PRC8/_module/nss/q3_destroy_gold.nss

11 lines
240 B
Plaintext
Raw Permalink Normal View History

2023-09-25 21:32:17 -04:00
// Destroy a pile of gold if empty
void main()
{
if(GetInventoryDisturbType() == INVENTORY_DISTURB_TYPE_REMOVED)
{
if(GetFirstItemInInventory(OBJECT_SELF) == OBJECT_INVALID)
DestroyObject(OBJECT_SELF);
}
}