Initial commit
Initial commit. Updated release archive.
This commit is contained in:
23
_module/nss/en6_nc_fog_trig.nss
Normal file
23
_module/nss/en6_nc_fog_trig.nss
Normal file
@@ -0,0 +1,23 @@
|
||||
void main()
|
||||
{
|
||||
object oPC;
|
||||
object oNPC;
|
||||
int iMQ;
|
||||
int i;
|
||||
|
||||
oPC=GetEnteringObject();
|
||||
iMQ=GetLocalInt(GetModule(),"MQNumber");
|
||||
|
||||
if (GetIsPC(oPC) && iMQ==3)
|
||||
{
|
||||
oNPC=GetObjectByTag("en6_mq3_s");
|
||||
if (GetLocalInt(oNPC,"TalkOnce") == 0 && GetLocalInt(OBJECT_SELF,"Random") < 4)
|
||||
{
|
||||
SetLocalInt(oNPC,"TalkOnce",1);
|
||||
AssignCommand(oNPC,ClearAllActions());
|
||||
AssignCommand(oNPC,ActionStartConversation(oPC));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user