Files
dsrc/sku.0/sys.server/compiled/game/script/test/remotedebug_test.script
T
2013-09-10 23:17:15 -07:00

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;
}