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.
37 lines
600 B
Plaintext
37 lines
600 B
Plaintext
void main()
|
|
{
|
|
{
|
|
object oObject = GetFirstObjectInArea();
|
|
int nPCinArea=FALSE;
|
|
location lLoc;
|
|
|
|
|
|
while (GetIsObjectValid(oObject))
|
|
{
|
|
if (GetIsPC(oObject))
|
|
{
|
|
nPCinArea = TRUE;
|
|
}
|
|
oObject=GetNextObjectInArea();
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (nPCinArea != TRUE)
|
|
{
|
|
//SetLocalInt(GetObjectByTag("jw_fir2_platet"),"trapped",TRUE);
|
|
SetLocalInt(GetObjectByTag("jw_fir2"),"Reset",1);
|
|
|
|
|
|
if (!GetIsObjectValid(GetObjectByTag("jw_wrong_barrel")))
|
|
{
|
|
CreateObject(OBJECT_TYPE_PLACEABLE,"jw_wrong_barrel",GetLocation(GetObjectByTag("jw_wrong_barrel_wp")));
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
}
|