Initial Commit

Initial Commit
This commit is contained in:
Jaysyn904
2023-09-21 19:51:32 -04:00
parent 65b5bd7fd3
commit 102ba7dab6
6400 changed files with 5741850 additions and 0 deletions

23
_module/nss/wine_cask.nss Normal file
View File

@@ -0,0 +1,23 @@
void main()
{
string sItem = GetLocalString(OBJECT_SELF, "potion");
if (sItem == "") sItem = "NW_IT_MPOTION023";
object oPC = GetLastUsedBy();
if (!GetIsPC(oPC)) return;
int iToday = GetCalendarDay();
int iDate = GetLocalInt(OBJECT_SELF, "DAY");
if (iDate == 0)
{
SetLocalInt(OBJECT_SELF, "DAY", iToday);
CreateItemOnObject(sItem, oPC);
}
else if (iDate == iToday)
{
SendMessageToPC(oPC, "No more wine today.");
}
else
{
SetLocalInt(OBJECT_SELF, "DAY", iToday);
CreateItemOnObject(sItem, oPC);
}
}