Initial upload
Initial upload. PRC8 has been added. Module compiles, PRC's default AI & treasure scripts have been integrated. Started work on top hak for SLA / Ability / Scripting modifications.
This commit is contained in:
19
_module/nss/nk_doorcloselock.nss
Normal file
19
_module/nss/nk_doorcloselock.nss
Normal file
@@ -0,0 +1,19 @@
|
||||
#include "NW_I0_GENERIC"
|
||||
#include "jw_privates_inc"
|
||||
|
||||
void main()
|
||||
{
|
||||
ActionWait(30.0);
|
||||
ActionCloseDoor(OBJECT_SELF);
|
||||
SetLocked(OBJECT_SELF, 1);
|
||||
|
||||
|
||||
object oLastOpener = GetLastOpenedBy();
|
||||
|
||||
if (GetIsPC(oLastOpener))
|
||||
{
|
||||
SetTarget(oLastOpener);
|
||||
SpeakString("NW_ATTACK_MY_TARGET", TALKVOLUME_SILENT_TALK);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user