Initial commit

Initial commit
This commit is contained in:
Jaysyn904
2024-09-13 09:10:39 -04:00
parent 09dc8aec92
commit d1c309ae63
8437 changed files with 8727659 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
////////////////////////////////////////////////////////////////////////////////
//
// Olander's - Day Night Shifting for DM
// opw_day_night
// By:Don Anderson
// dandersonru@msn.com
//
// This is placed in the Module OnActivated Event
//
////////////////////////////////////////////////////////////////////////////////
void main()
{
object oPC = GetItemActivator();
object oItem = GetItemActivated();
string sItem = GetTag(oItem);
if(sItem != "DM_DAYNIGHTTOOL") return;
int nHour = GetTimeHour();
//Set these to your Module Morning and Evening Setting
int nMorning = 6;
int nEvening = 18;
if (nHour >= 18) nHour = nMorning;
else if (nHour < 18) nHour = nEvening;
SetTime(nHour,0,0,0);
}