PWE_PRC8/_module/nss/door_kill.nss
Jaysyn904 ee1dc35889 Initial Commit
Initial Commit
2025-04-03 10:29:41 -04:00

14 lines
432 B
Plaintext

void main()
{
// SpeakString(IntToString(GetLocalInt(GetArea(OBJECT_SELF), "kills")));
if (GetLocalInt(GetArea(OBJECT_SELF), "kills") >= 4) {
SetLocked(OBJECT_SELF, FALSE);
ActionOpenDoor(OBJECT_SELF);
SetLocalInt(GetArea(OBJECT_SELF), "kills", 0);
} else {
if (GetLocked(OBJECT_SELF) == TRUE) {
SpeakString("You must kill the monsters before I will open!");
}
}
}