From 3ea445758c246c0776b244ada14fa4161abd6b65 Mon Sep 17 00:00:00 2001 From: Redacted by Stellabellum INC Date: Tue, 11 Nov 2014 02:01:16 -0800 Subject: [PATCH] *Added Missing NPC Spawner and appropriate Variables --- .../bestine_melios_purl_spawner.script | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 sku.0/sys.server/compiled/game/script/theme_park/tatooine/bestine/bestine_melios_purl_spawner.script diff --git a/sku.0/sys.server/compiled/game/script/theme_park/tatooine/bestine/bestine_melios_purl_spawner.script b/sku.0/sys.server/compiled/game/script/theme_park/tatooine/bestine/bestine_melios_purl_spawner.script new file mode 100644 index 000000000..aec95952c --- /dev/null +++ b/sku.0/sys.server/compiled/game/script/theme_park/tatooine/bestine/bestine_melios_purl_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 Doctor NPC for Bestine + obj_id spawnCell = getCellId (self, "mainroom"); + location locDocLocation = new location (-1.4f, 0.2f, 0.6f, "tatooine", spawnCell); + obj_id template = create.object("melios_purl", locDocLocation); + setObjVar(template, "quest_table", "melios_purl"); + attachScript(template, "npc.static_quest.quest_convo"); + int doc_yaw = 60; + setYaw(template, doc_yaw); + + return SCRIPT_CONTINUE; +}