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

27
_module/nss/k_locker.nss Normal file
View File

@@ -0,0 +1,27 @@
// This script locks OBJECT_SELF at night and unlocks it during the day.
//
// ============================================================================
// Part of the "Aspire" module foundation package.
// Author: Kaylor
// ============================================================================
void main()
{
if (GetLocalInt(OBJECT_SELF, "Aspire_LockerTimeStamp") != GetTimeHour()){
// Lock the object at night
if (GetIsNight() == TRUE){
if (GetLocked(OBJECT_SELF) == FALSE){
SetLocked(OBJECT_SELF, TRUE);
SetLocalInt(OBJECT_SELF, "Aspire_LockerTimeStamp", GetTimeHour());
}
}
// Unlock it during the day.
else {
if (GetLocked(OBJECT_SELF) == TRUE){
SetLocked(OBJECT_SELF, FALSE);
SetLocalInt(OBJECT_SELF, "Aspire_LockerTimeStamp", GetTimeHour());
}
}
}
}