From 270f5b284edb2fb06d1dac429fca4ddbd7c2e1d8 Mon Sep 17 00:00:00 2001 From: Redacted by Stellabellum INC Date: Tue, 11 Nov 2014 02:01:47 -0800 Subject: [PATCH] *Added Missing NPC Spawner and appropriate Variables(Note: NPC will not spawn due to possible missing object template) --- .../bestine_pfilbee_jhorn_spawner.script | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 sku.0/sys.server/compiled/game/script/theme_park/tatooine/bestine/bestine_pfilbee_jhorn_spawner.script diff --git a/sku.0/sys.server/compiled/game/script/theme_park/tatooine/bestine/bestine_pfilbee_jhorn_spawner.script b/sku.0/sys.server/compiled/game/script/theme_park/tatooine/bestine/bestine_pfilbee_jhorn_spawner.script new file mode 100644 index 000000000..ed2128d76 --- /dev/null +++ b/sku.0/sys.server/compiled/game/script/theme_park/tatooine/bestine/bestine_pfilbee_jhorn_spawner.script @@ -0,0 +1,28 @@ +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 Imperial NPC for Bestine + obj_id spawnCell = getCellId (self, "room2"); + location locImpLocation = new location (5.3f, 0.1f, -3.7f, "tatooine", spawnCell); + obj_id template = create.object("pfilbee_jhorn", locImpLocation); + setObjVar(template, "quest_table", "pfilbee_jhorn"); + attachScript(template, "npc.static_quest.quest_convo"); + int imp_yaw = -87; + setYaw(template, imp_yaw); + + return SCRIPT_CONTINUE; +}