mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-08-03 03:15:55 -04:00
*Added OnAttach trigger in order to keep system working with buildout tables
This commit is contained in:
@@ -13,6 +13,14 @@ trigger OnInitialize()
|
||||
return SCRIPT_CONTINUE;
|
||||
}
|
||||
|
||||
trigger OnAttach()
|
||||
{
|
||||
deltadictionary dctScriptVars = self.getScriptVars();
|
||||
dctScriptVars.put("numMuseumChecks", 1);
|
||||
messageTo(self, "checkForMuseumBuilding", null, 60, false);
|
||||
return SCRIPT_CONTINUE;
|
||||
}
|
||||
|
||||
messageHandler checkForMuseumBuilding()
|
||||
{
|
||||
location here = getLocation(self);
|
||||
@@ -115,4 +123,4 @@ void spawnNpc(obj_id self)
|
||||
attachScript(npc, "conversation.bestine_artist06");
|
||||
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user