Files
Anphillia_PRC8/_module/nss/ud_gob_keg.nss
Jaysyn904 28cdb617b3 Initial commit
Adding all of the current content for Anphillia Unlimited.
2024-01-04 07:49:38 -05:00

20 lines
504 B
Plaintext

void CreateNewItems(object oContainer)
{
if (GetItemPossessedBy(oContainer, "RotheMeat") == OBJECT_INVALID)
CreateItemOnObject("rothemeat", oContainer);
if (GetItemPossessedBy(oContainer, "cnrGarlicClove") == OBJECT_INVALID)
{
int nToCreate = Random(3) + 2;
int nCount;
for (nCount = 0; nCount < nToCreate; nCount++)
{
CreateItemOnObject("cnrgarlicclove", oContainer);
}
}
}
void main()
{
CreateNewItems(GetNearestObjectByTag("GoblinKeg"));
}