NWNDS/nwnds_module/ds_merchdoors.nss

14 lines
343 B
Plaintext
Raw Normal View History

void main()
{
if (GetIsNight())
{
ActionCloseDoor(OBJECT_SELF);
ActionSpeakString("This door is locked. A sign on the door says, 'Closed for the night.'");
return;
}
else
DelayCommand(20.0,ActionCloseDoor(OBJECT_SELF));
return;
}