mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-07-31 00:15:54 -04:00
31 lines
546 B
Plaintext
31 lines
546 B
Plaintext
|
|
trigger OnAttach()
|
|
{
|
|
debugSpeakMsg( self, "attached!" );
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
|
|
trigger OnHearSpeech(obj_id speaker, string text)
|
|
{
|
|
if ( text.equals("done" ))
|
|
{
|
|
debugSpeakMsg( self, "detaching jfreeman.dressnpc");
|
|
detachScript( self, "jfreeman.dressnpc");
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
else if ( text.equals("dress"))
|
|
{
|
|
obj_id thingToWear = getLookAtTarget( speaker );
|
|
if ( thingToWear == null )
|
|
debugSpeakMsg( self, "you aren't looking at anything." );
|
|
else
|
|
equip(thingToWear, self);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
|
|
|