mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-10-18 09:02:56 -04:00
55 lines
1.4 KiB
Plaintext
55 lines
1.4 KiB
Plaintext
/**
|
|
* Copyright (c) ©2000,2001 Sony Online Entertainment Inc.
|
|
* All Rights Reserved
|
|
*
|
|
* Title: pirate.script
|
|
* Description: script for pirates: POI = factoryliberation
|
|
* @author $Author: breinhart $
|
|
* @version $Revision: #1 $
|
|
*/
|
|
|
|
//------------------------------------------------
|
|
// Includes
|
|
//------------------------------------------------
|
|
|
|
//------------------------------------------------
|
|
// Constants
|
|
//------------------------------------------------
|
|
|
|
const string pirateEmotes[] = { "scratch", "yawn", "fidget", "cough" };
|
|
|
|
//------------------------------------------------
|
|
// Methods
|
|
//------------------------------------------------
|
|
|
|
//------------------------------------------------
|
|
// OnLoiterWaiting
|
|
//------------------------------------------------
|
|
|
|
trigger OnLoiterWaiting( modifiable_float time )
|
|
{
|
|
stop( self );
|
|
messageTo( self, "emotePirate", null, 4, false );
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//------------------------------------------------
|
|
// emotePirate
|
|
//------------------------------------------------
|
|
|
|
messageHandler emotePirate()
|
|
{
|
|
// There is a chance we'll do a social.
|
|
int dosocial = rand( 1, 4 );
|
|
if ( dosocial == 1 )
|
|
{
|
|
// Perform a social.
|
|
int whichsocial = rand( 0, 3 );
|
|
queueCommand( self, ##"social", null, pirateEmotes[whichsocial], COMMAND_PRIORITY_DEFAULT );
|
|
}
|
|
|
|
messageTo( self, "resumeDefaultCalmBehavior", null, 3, false );
|
|
|
|
return SCRIPT_CONTINUE;
|
|
} |