From 4221d4b9770e4dec4a0d75d4021bf8cf87680922 Mon Sep 17 00:00:00 2001 From: PrisonCamp Date: Tue, 11 Nov 2014 02:02:20 -0800 Subject: [PATCH] *Added Missing NPC Spawner and appropriate Variables --- .../bestine_sean_questp_house_spawner.script | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 sku.0/sys.server/compiled/game/script/theme_park/tatooine/bestine/bestine_sean_questp_house_spawner.script diff --git a/sku.0/sys.server/compiled/game/script/theme_park/tatooine/bestine/bestine_sean_questp_house_spawner.script b/sku.0/sys.server/compiled/game/script/theme_park/tatooine/bestine/bestine_sean_questp_house_spawner.script new file mode 100644 index 000000000..64bbcd334 --- /dev/null +++ b/sku.0/sys.server/compiled/game/script/theme_park/tatooine/bestine/bestine_sean_questp_house_spawner.script @@ -0,0 +1,30 @@ +include library.create; +include library.locations; + +trigger OnInitialize() +{ + messageTo(self, "spawnMissingNpc", null, 2, false); + return SCRIPT_CONTINUE; +} + +trigger OnAttach() +{ + messageTo(self, "spawnMissingNpc", null, 2, false); + return SCRIPT_CONTINUE; +} + +messageHandler spawnMissingNpc() +{ + //Spawns the housemaid for the Bestine Election + obj_id spawnCell = getCellId (self, "livingroom1"); + location locMaidLocation = new location (3.0f, 0.4f, -0.2f, "tatooine", spawnCell); + obj_id template = create.object("object/tangible/ground_spawning/area_spawner.iff", locMaidLocation); + setObjVar(template, "spawns", "sean_questp_house"); + setObjVar(template, "npc_name", "Edaekomeu Ossilei"); + setObjVar(template, "quest_script", "conversation.sean_questp_house"); + string spawnerObjName = "Edaekomeu Ossilei Spawner"; + setName(template, spawnerObjName); + attachScript(template, "city.bestine.politician_event_spawner"); + + return SCRIPT_CONTINUE; +}