mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-07-28 22:15:54 -04:00
41 lines
707 B
Plaintext
41 lines
707 B
Plaintext
void end(obj_id self)
|
|
{
|
|
debugSpeakMsg(self, "Testing of RemoteDebug messages has finished");
|
|
}
|
|
|
|
void start(obj_id self)
|
|
{
|
|
debugSpeakMsg(self, "Testing of RemoteDebug messages has begun");
|
|
}
|
|
|
|
trigger OnAttach()
|
|
{
|
|
start(self);
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
trigger OnDetach()
|
|
{
|
|
end(self);
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
trigger OnHearSpeech(obj_id speaker, string text)
|
|
{
|
|
string[] words = split( text, ' ' );
|
|
|
|
if ( words[0].equals("sendhi" ))
|
|
{
|
|
printChannelMessage("GameServer", "hi");
|
|
}
|
|
if ( words[0].equals("sendyo" ))
|
|
{
|
|
printChannelMessage("GameServer\\Script", "yo");
|
|
}
|
|
if (words[0].equals("sendsup" ))
|
|
{
|
|
printChannelMessage("GameServer\\Script\\Sup", "sup");
|
|
}
|
|
return SCRIPT_CONTINUE;
|
|
}
|