mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-08-03 03:15:55 -04:00
36 lines
1.2 KiB
Plaintext
36 lines
1.2 KiB
Plaintext
include library.chat;
|
|
include library.ai_lib;
|
|
include library.hue;
|
|
include library.colors;
|
|
|
|
trigger OnAttach ()
|
|
{
|
|
setName (self, "Huff Darklighter");
|
|
ai_lib.setDefaultCalmBehavior( self, ai_lib.BEHAVIOR_SENTINEL );
|
|
obj_id shirt = createObject ("object/tangible/wearables/shirt/shirt_s15.iff", self, "");
|
|
obj_id pants = createObject ("object/tangible/wearables/pants/pants_s12.iff", self, "");
|
|
obj_id shoes = createObject ("object/tangible/wearables/boots/boots_s04.iff", self, "");
|
|
obj_id hair = createObject ("object/tangible/hair/human/hair_human_male_s28.iff", self, "");
|
|
|
|
hue.setColor (shirt, 1, 174);
|
|
hue.setColor (pants, 1, 85);
|
|
hue.setColor (hair, 1, 12);
|
|
attachScript (self, "npc.static_quest.quest_convo");
|
|
setObjVar (self, "quest_table", "huff_darklighter_krayt");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
trigger OnGiveItem (obj_id item, obj_id player)
|
|
{
|
|
string itemName = getTemplateName (item);
|
|
|
|
if (itemName == "object/tangible/loot/quest/rifle_quest_tusken.iff")
|
|
{
|
|
destroyObject (item);
|
|
string_id thatsIt = new string_id ("epic_quest/krayt_skull/huff_darklighter", "thats_it");
|
|
chat.chat (self, thatsIt);
|
|
setObjVar (player, "epic.krayt.rifle", 1);
|
|
}
|
|
return SCRIPT_CONTINUE;
|
|
} |