From e93869c7a785a4f375685ffa33c913033ed1c85a Mon Sep 17 00:00:00 2001 From: Adam Frisby Date: Thu, 21 Jun 2007 17:08:21 +0000 Subject: * Importing Ming's mass test client --- .../Commands/Inventory/GiveAllCommand.cs | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 tools/mass test client/Commands/Inventory/GiveAllCommand.cs (limited to 'tools/mass test client/Commands/Inventory/GiveAllCommand.cs') diff --git a/tools/mass test client/Commands/Inventory/GiveAllCommand.cs b/tools/mass test client/Commands/Inventory/GiveAllCommand.cs new file mode 100644 index 0000000..8890ea0 --- /dev/null +++ b/tools/mass test client/Commands/Inventory/GiveAllCommand.cs @@ -0,0 +1,27 @@ +using System; +using System.Collections.Generic; +using System.Text; +using libsecondlife; +using libsecondlife.Packets; + +namespace libsecondlife.TestClient +{ + public class GiveAllCommand: Command + { + public GiveAllCommand(TestClient testClient) + { + Name = "giveAll"; + Description = "Gives you all it's money."; + } + + public override string Execute(string[] args, LLUUID fromAgentID) + { + if (fromAgentID == null) + return "Unable to send money to console. This command only works when IMed."; + + int amount = Client.Self.Balance; + Client.Self.GiveMoney(fromAgentID, Client.Self.Balance, String.Empty); + return "Gave $" + amount + " to " + fromAgentID; + } + } +} -- cgit v1.1