mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-08-01 01:15:59 -04:00
*Added Missing NPC Spawner and appropriate Variables(Note: NPC will not spawn due to possible missing object template)
This commit is contained in:
+28
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user