mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-08-04 04:15:52 -04:00
*Added OnAttach trigger to keep system working in buildout tables
This commit is contained in:
@@ -11,6 +11,14 @@ trigger OnInitialize()
|
||||
return SCRIPT_CONTINUE;
|
||||
}
|
||||
|
||||
trigger OnAttach()
|
||||
{
|
||||
deltadictionary dctScriptVars = self.getScriptVars();
|
||||
dctScriptVars.put("numCapitolChecks", 1);
|
||||
messageTo(self, "checkForCapitolBuilding", null, 60, false);
|
||||
return SCRIPT_CONTINUE;
|
||||
}
|
||||
|
||||
messageHandler checkForCapitolBuilding()
|
||||
{
|
||||
location here = getLocation(self);
|
||||
@@ -120,4 +128,4 @@ void spawnNpc(obj_id self)
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user