mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-07-31 00:15:54 -04:00
33 lines
729 B
Plaintext
33 lines
729 B
Plaintext
include library.groundquests;
|
|
include library.utils;
|
|
|
|
|
|
trigger OnAttach()
|
|
{
|
|
createTriggerVolume( "questdude", 10.0f, true );
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
trigger OnTriggerVolumeEntered( string volumeName, obj_id breacher )
|
|
{
|
|
if ( !isPlayer( breacher ) )
|
|
{
|
|
//debugSpeakMsg( self, "you are not a player" );
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
if ( volumeName != "questdude" )
|
|
return SCRIPT_CONTINUE;
|
|
|
|
else
|
|
{
|
|
if (groundquests.isTaskActive(breacher, "npe_journal_quest", "skeleton") && !utils.hasScriptVar(breacher, "heardit"))
|
|
{
|
|
string_id blah = new string_id("npe/han_solo_experience", "npe_journal");
|
|
sendSystemMessage(breacher, blah);
|
|
utils.setScriptVar(breacher, "heardit", 1);
|
|
}
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
} |