From 933aa510789dec5ee55b5bdcbf256f0bc35e6bc5 Mon Sep 17 00:00:00 2001 From: PrisonCamp Date: Tue, 11 Nov 2014 01:52:59 -0800 Subject: [PATCH] *Commented out persisting of objects in order to keep things working in buildout tables *Changed template of NPC spawner in order to prevent persisting of spawner(this would cause multiple spawners to spawn each server reset and multiple NPCs as well) --- .../city/bestine/politician_event_grandparent.script | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/sku.0/sys.server/compiled/game/script/city/bestine/politician_event_grandparent.script b/sku.0/sys.server/compiled/game/script/city/bestine/politician_event_grandparent.script index 11d02df96..3c7073912 100644 --- a/sku.0/sys.server/compiled/game/script/city/bestine/politician_event_grandparent.script +++ b/sku.0/sys.server/compiled/game/script/city/bestine/politician_event_grandparent.script @@ -34,7 +34,7 @@ messageHandler bootStrap() location locTest = getLocation(self); locTest.x = locTest.x +1; obj_id objPoliticianEventMaster = createObject(MASTER_OBJECT_TEMPLATE, locTest); - persistObject(objPoliticianEventMaster); + //persistObject(objPoliticianEventMaster); dctScriptVars.put("objMasterObjectId", objPoliticianEventMaster); dctScriptVars.put(VARNAME_ELECTION_STATUS, "electionStarted"); @@ -50,10 +50,12 @@ messageHandler spawnMissingNpc() { obj_id objCapitolLobby = getCellId (self, "lobby"); location locMissingNpcSpawnerLocation = new location (6.10f, 0.30f, -0.49f, "tatooine", objCapitolLobby); - obj_id[] objMissingNpcSpawnerIds = getAllObjectsWithTemplate(locMissingNpcSpawnerLocation, 10, MISSING_NPC_TEMPLATE); - - if ( objMissingNpcSpawnerIds == null || objMissingNpcSpawnerIds.length < 1 ) - obj_id missingNpc = createObject(MISSING_NPC_TEMPLATE, locMissingNpcSpawnerLocation); + obj_id missingNpc = createObject("object/tangible/ground_spawning/area_spawner.iff", locMissingNpcSpawnerLocation); + setObjVar(missingNpc, "spawns", "victor_questn_capitol"); + setObjVar(missingNpc, "quest_script", "conversation.victor_questn_capitol"); + string spawnerObjName = "Trooper Spawner"; + setName(missingNpc, spawnerObjName); + attachScript(missingNpc, "city.bestine.politician_event_spawner"); return SCRIPT_CONTINUE; }