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:
93
_module/nss/jw_andmob_open.nss
Normal file
93
_module/nss/jw_andmob_open.nss
Normal file
@@ -0,0 +1,93 @@
|
||||
//::///////////////////////////////////////////////
|
||||
//:: Custom User Defined Event
|
||||
//:: FileName
|
||||
//:: Copyright (c) 2001 Bioware Corp.
|
||||
//:://////////////////////////////////////////////
|
||||
/*
|
||||
|
||||
*/
|
||||
//:://////////////////////////////////////////////
|
||||
//:: Created By:
|
||||
//:: Created On:
|
||||
//:://////////////////////////////////////////////
|
||||
|
||||
void main()
|
||||
{
|
||||
int nUser = GetUserDefinedEventNumber();
|
||||
|
||||
if(nUser == 1001) //HEARTBEAT
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
else if(nUser == 1002) // PERCEIVE
|
||||
{
|
||||
|
||||
}
|
||||
else if(nUser == 1003) // END OF COMBAT
|
||||
{
|
||||
|
||||
}
|
||||
else if(nUser == 1004) // ON DIALOGUE
|
||||
{
|
||||
|
||||
int nListen=GetListenPatternNumber();
|
||||
if (nListen==-1)
|
||||
{
|
||||
return;
|
||||
}
|
||||
object oDoor=GetObjectByTag(GetTag(OBJECT_SELF)+"_dr");
|
||||
|
||||
if (GetLocalInt(GetArea(OBJECT_SELF),"nRiddles")==1&&(nListen==50||nListen==51||nListen==52||nListen==53))
|
||||
{
|
||||
|
||||
AssignCommand(oDoor,SetLocked(oDoor,FALSE));
|
||||
AssignCommand(oDoor,ActionOpenDoor(oDoor));
|
||||
|
||||
PlayAnimation(ANIMATION_FIREFORGET_TAUNT);
|
||||
PlaySound("c_demon_atk2");
|
||||
return;
|
||||
}
|
||||
|
||||
if (GetLocalInt(GetArea(OBJECT_SELF),"nRiddles")==2&&(nListen==54||nListen==55||nListen==56||nListen==57))
|
||||
{
|
||||
|
||||
AssignCommand(oDoor,SetLocked(oDoor,FALSE));
|
||||
AssignCommand(oDoor,ActionOpenDoor(oDoor));
|
||||
|
||||
PlayAnimation(ANIMATION_FIREFORGET_TAUNT);
|
||||
PlaySound("c_demon_atk2");
|
||||
return;
|
||||
}
|
||||
|
||||
if (GetLocalInt(GetArea(OBJECT_SELF),"nRiddles")==3&&(nListen==58||nListen==59||nListen==60||nListen==61))
|
||||
{
|
||||
|
||||
AssignCommand(oDoor,SetLocked(oDoor,FALSE));
|
||||
AssignCommand(oDoor,ActionOpenDoor(oDoor));
|
||||
|
||||
PlayAnimation(ANIMATION_FIREFORGET_TAUNT);
|
||||
PlaySound("c_demon_atk2");
|
||||
return;
|
||||
}
|
||||
|
||||
}
|
||||
else if(nUser == 1005) // ATTACKED
|
||||
{
|
||||
|
||||
}
|
||||
else if(nUser == 1006) // DAMAGED
|
||||
{
|
||||
|
||||
}
|
||||
else if(nUser == 1007) // DEATH
|
||||
{
|
||||
|
||||
}
|
||||
else if(nUser == 1008) // DISTURBED
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user