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:
22
_module/nss/jw_lockdoor_open.nss
Normal file
22
_module/nss/jw_lockdoor_open.nss
Normal file
@@ -0,0 +1,22 @@
|
||||
#include "NW_I0_GENERIC"
|
||||
#include "jw_privates_inc"
|
||||
|
||||
void main()
|
||||
{
|
||||
|
||||
object oLastOpener = GetLastOpenedBy();
|
||||
|
||||
if (GetIsPC(oLastOpener))
|
||||
{
|
||||
SetTarget(oLastOpener);
|
||||
SpeakString("NW_ATTACK_MY_TARGET", TALKVOLUME_SILENT_TALK);
|
||||
}
|
||||
|
||||
|
||||
object oObject=OBJECT_SELF;
|
||||
|
||||
DelayCommand(60.0,AssignCommand(oObject,ActionCloseDoor(oObject)));
|
||||
DelayCommand(60.5,AssignCommand(oObject,SetLocked(oObject,TRUE)));
|
||||
|
||||
//
|
||||
}
|
||||
Reference in New Issue
Block a user