mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-10-21 12:03:08 -04:00
32 lines
735 B
Plaintext
32 lines
735 B
Plaintext
/***** INCLUDES ********************************************************/
|
|
include library.utils;
|
|
/***** CONSTANTS *******************************************************/
|
|
|
|
trigger OnAttach()
|
|
{
|
|
messageTo(self, "handleChiefInitialize", null, 9, false);
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
messageHandler handleChiefInitialize()
|
|
{
|
|
location here = getLocation(self);
|
|
if ( !here.area.equals("naboo") )
|
|
{
|
|
setName(self, "an Ewok shaman");
|
|
}
|
|
|
|
if ( hasCondition(self, CONDITION_INTERESTING) )
|
|
{
|
|
clearCondition(self, CONDITION_INTERESTING);
|
|
}
|
|
if ( hasCondition(self, CONDITION_SPACE_INTERESTING) )
|
|
{
|
|
clearCondition(self, CONDITION_SPACE_INTERESTING);
|
|
}
|
|
|
|
setCondition(self, CONDITION_HOLIDAY_INTERESTING);
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|