Files
HeroesStone_PRC8/_module/nss/doorlock.nss
Jaysyn904 1eefc84201 Initial Commit
Initial Commit.
2025-09-14 15:40:46 -04:00

20 lines
391 B
Plaintext

void main()
{
DelayCommand(20.0, ActionCloseDoor(OBJECT_SELF));
if (GetIsNight()){
ActionCloseDoor(OBJECT_SELF);
SetLocked(OBJECT_SELF, TRUE);
ActionSpeakString("The door is barred shut from the inside...perhaps if you came back during the day...");
return;
}
else
DelayCommand(20.0,ActionCloseDoor(OBJECT_SELF));
return;
}