mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-07-31 00:15:54 -04:00
35 lines
805 B
Plaintext
35 lines
805 B
Plaintext
|
|
trigger OnAttach()
|
|
{
|
|
//debugSpeakMsg( self, "attached. sending non-persisted zero delay message to handleTest" );
|
|
messageTo( self, "handleTest", null, 0, false);
|
|
|
|
//debugSpeakMsg( self, "attached. sending persisted 20-second delay message to handleOtherTest" );
|
|
messageTo( self, "handleOtherTest", null, 20, true);
|
|
|
|
messageTo( self, "handleLastTest", null, 21, false);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
|
|
messageHandler handleTest()
|
|
{
|
|
debugSpeakMsg( self, "received non-persisted zero-length message" );
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
messageHandler handleOtherTest()
|
|
{
|
|
debugSpeakMsg( self, "received persisted 20-second delay message" );
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
messageHandler handleLastTest()
|
|
{
|
|
debugSpeakMsg( self, "received non-persisted 21-second delay message" );
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
|