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:
28
_module/nss/jw_goody_exit.nss
Normal file
28
_module/nss/jw_goody_exit.nss
Normal file
@@ -0,0 +1,28 @@
|
||||
void main()
|
||||
{
|
||||
{
|
||||
object oObject = GetFirstObjectInArea();
|
||||
int nPCinArea=FALSE;
|
||||
location lLoc;
|
||||
|
||||
while (GetIsObjectValid(oObject))
|
||||
{
|
||||
if (GetIsPC(oObject))
|
||||
{
|
||||
nPCinArea = TRUE;
|
||||
}
|
||||
oObject=GetNextObjectInArea();
|
||||
}
|
||||
|
||||
|
||||
if (nPCinArea != TRUE)
|
||||
{
|
||||
|
||||
AssignCommand(GetObjectByTag("jw_george"),ActionMoveToObject(GetObjectByTag("jw_george_wp")));
|
||||
AssignCommand(GetObjectByTag("jw_george"),ActionDoCommand(SetFacingPoint(GetPosition(GetObjectByTag("jw_goodwin")))));
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user