Initial Upload

Initial Upload
This commit is contained in:
Jaysyn904
2023-09-21 21:20:34 -04:00
parent d3f23f8b3c
commit 94990edc60
5734 changed files with 6324648 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
/////////////////////////////////////////////////////////
//
// Craftable Natural Resources (CNR) by Festyx
//
// Name: cnr_at_cowchic_f
//
// Desc: The player has requested some of the animals
// food.
//
// Author: David Bobeck 24Dec02
//
/////////////////////////////////////////////////////////
void main()
{
string sAnimalTag = GetTag(OBJECT_SELF);
object oPC = GetPCSpeaker();
if (sAnimalTag == "cnrChicken")
{
// produce an egg
string sItemTag = "cnrChickenEgg";
CreateItemOnObject(sItemTag, oPC, 1);
}
if (sAnimalTag == "cnrCow")
{
// produce milk
string sItemTag = "cnrCowsMilk";
CreateItemOnObject(sItemTag, oPC, 1);
}
int nFoodPoints = GetLocalInt(OBJECT_SELF, "nCnrFoodPoints");
SetLocalInt(OBJECT_SELF, "nCnrFoodPoints", nFoodPoints-6);
}