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 --- tools/mass test client/Commands/GotoLandmark.cs | 32 +++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 tools/mass test client/Commands/GotoLandmark.cs (limited to 'tools/mass test client/Commands/GotoLandmark.cs') diff --git a/tools/mass test client/Commands/GotoLandmark.cs b/tools/mass test client/Commands/GotoLandmark.cs new file mode 100644 index 0000000..d32047c --- /dev/null +++ b/tools/mass test client/Commands/GotoLandmark.cs @@ -0,0 +1,32 @@ +using System; +using System.Collections.Generic; +using System.Text; +using libsecondlife; +using libsecondlife.Packets; + +namespace libsecondlife.TestClient +{ + public class GotoLandmarkCommand : Command + { + public GotoLandmarkCommand(TestClient testClient) + { + Name = "goto_landmark"; + Description = "Teleports to a Landmark "; + } + + public override string Execute(string[] args, LLUUID fromAgentID) + { + LLUUID landmark = new LLUUID(); + if ( ! LLUUID.TryParse(args[0], out landmark) ) { + return "Invalid LLUID"; + } else { + Console.WriteLine("Teleporting to " + landmark.ToString()); + } + if ( Client.Self.Teleport(landmark) ) { + return "Teleport Succesful"; + } else { + return "Teleport Failed"; + } + } + } +} -- cgit v1.1