PWE_PRC8/_module/nss/door_kill.nss

14 lines
432 B
Plaintext
Raw Permalink Normal View History

2025-04-03 10:29:41 -04:00
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!");
}
}
}