PWE_PRC8/_module/nss/refill.nss
Jaysyn904 ee1dc35889 Initial Commit
Initial Commit
2025-04-03 10:29:41 -04:00

9 lines
242 B
Plaintext

void main()
{
if (GetInventoryDisturbType() == INVENTORY_DISTURB_TYPE_ADDED) {
DestroyObject(GetInventoryDisturbItem(), 1.0);
} else {
CreateItemOnObject(GetResRef(GetInventoryDisturbItem()), OBJECT_SELF, 50);
}
}