2006-11-22 00:09:31 +00:00
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using libsecondlife;
|
|
|
|
|
using libsecondlife.Packets;
|
|
|
|
|
|
2006-11-24 22:27:15 +00:00
|
|
|
namespace libsecondlife.TestClient
|
2006-11-22 00:09:31 +00:00
|
|
|
{
|
|
|
|
|
public class SayCommand: Command
|
|
|
|
|
{
|
|
|
|
|
public SayCommand()
|
|
|
|
|
{
|
|
|
|
|
Name = "say";
|
|
|
|
|
Description = "Say something.";
|
|
|
|
|
}
|
|
|
|
|
|
2006-11-28 07:48:43 +00:00
|
|
|
public override string Execute(SecondLife Client, string[] args, LLUUID fromAgentID)
|
2006-11-22 00:09:31 +00:00
|
|
|
{
|
|
|
|
|
if (args.Length < 1)
|
|
|
|
|
return "usage: say whatever";
|
|
|
|
|
|
|
|
|
|
string message = String.Empty;
|
|
|
|
|
foreach (string s in args)
|
|
|
|
|
message += s + " ";
|
|
|
|
|
|
|
|
|
|
Client.Self.Chat(message, 0, MainAvatar.ChatType.Normal);
|
|
|
|
|
|
|
|
|
|
return "Said " + message;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|