Moved Duergar Mines
Moved Duergar Mines. Updated for arcane & divine marker feats. Full compile. Updated release archive.
This commit is contained in:
62
_module/nss/spawn_sc_patrol.nss
Normal file
62
_module/nss/spawn_sc_patrol.nss
Normal file
@@ -0,0 +1,62 @@
|
||||
//
|
||||
// NESS
|
||||
// Patrol Scripts v8.1.3
|
||||
//
|
||||
//
|
||||
#include "spawn_functions"
|
||||
//
|
||||
object GetChildByTag(object oSpawn, string sChildTag);
|
||||
object GetChildByNumber(object oSpawn, int nChildNum);
|
||||
object GetSpawnByID(int nSpawnID);
|
||||
void DeactivateSpawn(object oSpawn);
|
||||
void DeactivateSpawnsByTag(string sSpawnTag);
|
||||
void DeactivateAllSpawns();
|
||||
void DespawnChildren(object oSpawn);
|
||||
void DespawnChildrenByTag(object oSpawn, string sSpawnTag);
|
||||
//
|
||||
//
|
||||
void main()
|
||||
{
|
||||
// Retrieve Script Number
|
||||
int nPatrolScript = GetLocalInt(OBJECT_SELF, "PatrolScript");
|
||||
|
||||
// Retrieve Stop Information
|
||||
int nStopNumber = GetLocalInt(OBJECT_SELF, "PR_NEXTSTOP");
|
||||
object oStop = GetLocalObject(OBJECT_SELF, "PR_SN" + PadIntToString(nStopNumber, 2));
|
||||
|
||||
// Invalid Script
|
||||
if (nPatrolScript == -1)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
//
|
||||
// Only Make Modifications Between These Lines
|
||||
// -------------------------------------------
|
||||
|
||||
|
||||
// Script 00
|
||||
if (nPatrolScript == 0)
|
||||
{
|
||||
ActionDoCommand(SpeakString("Example!"));
|
||||
}
|
||||
//
|
||||
|
||||
// Turn Off Lights
|
||||
if (nPatrolScript == 7)
|
||||
{
|
||||
object oLight = GetNearestObjectByTag("Light", oStop);
|
||||
if ((GetIsDay() == TRUE && GetPlaceableIllumination(oLight) == TRUE)
|
||||
|| (GetIsNight() == TRUE && GetPlaceableIllumination(oLight) == FALSE))
|
||||
{
|
||||
ActionDoCommand(DoPlaceableObjectAction(oLight, PLACEABLE_ACTION_USE));
|
||||
}
|
||||
}
|
||||
//
|
||||
|
||||
|
||||
// -------------------------------------------
|
||||
// Only Make Modifications Between These Lines
|
||||
//
|
||||
|
||||
}
|
Reference in New Issue
Block a user