diff options
author | gareth | 2007-05-13 19:46:09 +0000 |
---|---|---|
committer | gareth | 2007-05-13 19:46:09 +0000 |
commit | 9ec87a847edc88339bb4f2fed1462a4dbc3992a6 (patch) | |
tree | 4778bd95b2efc8b6e090ac903721dbc084d7e217 /ExportBot/ClientManager.cs | |
parent | Setting default grid server to DB4o (diff) | |
download | opensim-SC_OLD-9ec87a847edc88339bb4f2fed1462a4dbc3992a6.zip opensim-SC_OLD-9ec87a847edc88339bb4f2fed1462a4dbc3992a6.tar.gz opensim-SC_OLD-9ec87a847edc88339bb4f2fed1462a4dbc3992a6.tar.bz2 opensim-SC_OLD-9ec87a847edc88339bb4f2fed1462a4dbc3992a6.tar.xz |
bla
Diffstat (limited to 'ExportBot/ClientManager.cs')
-rw-r--r-- | ExportBot/ClientManager.cs | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/ExportBot/ClientManager.cs b/ExportBot/ClientManager.cs index 65c01ee..79528ed 100644 --- a/ExportBot/ClientManager.cs +++ b/ExportBot/ClientManager.cs | |||
@@ -42,6 +42,8 @@ namespace libsecondlife.TestClient | |||
42 | 42 | ||
43 | public bool Running = true; | 43 | public bool Running = true; |
44 | 44 | ||
45 | public static SecondLife MainClient; | ||
46 | |||
45 | string contactPerson = String.Empty; | 47 | string contactPerson = String.Empty; |
46 | private LLUUID resolvedMasterKey = LLUUID.Zero; | 48 | private LLUUID resolvedMasterKey = LLUUID.Zero; |
47 | private ManualResetEvent keyResolution = new ManualResetEvent(false); | 49 | private ManualResetEvent keyResolution = new ManualResetEvent(false); |
@@ -71,14 +73,14 @@ namespace libsecondlife.TestClient | |||
71 | } | 73 | } |
72 | } | 74 | } |
73 | 75 | ||
74 | public string ExportAvatarRestMethod( string request, string path, string param ) | 76 | public string ExportAvatarRestMethod( string request, string path, string param ) |
75 | { | 77 | { |
76 | Console.WriteLine("Got a request to export an avatar!"); | 78 | Console.WriteLine("Got a request to export an avatar!"); |
77 | Console.WriteLine("Executing cloneprofile " + param); | 79 | DoCommandAll("Executing exportoutfitcommand " + param + " " + param + ".xml", null, null); |
78 | DoCommandAll("cloneprofile " + param, null, null); | ||
79 | DoCommandAll("say copied avatar, preparing to upload to remote server...", null, null); | ||
80 | return "OK"; | ||
81 | 80 | ||
81 | MainClient.Self.InstantMessage(new LLUUID(param), "(automated bot message) Your avatar has been copied OK, if you wish to use it to create your account please type yes, otherwise ignore this message. Note that you are responsible for obtaining all copyright permissions for textures etc on your avatar", new LLUUID(param)); | ||
82 | |||
83 | return "OK"; | ||
82 | } | 84 | } |
83 | 85 | ||
84 | 86 | ||
@@ -156,7 +158,8 @@ namespace libsecondlife.TestClient | |||
156 | 158 | ||
157 | Clients[client.Network.AgentID] = client; | 159 | Clients[client.Network.AgentID] = client; |
158 | 160 | ||
159 | Console.WriteLine("Logged in " + client.ToString()); | 161 | MainClient = client; |
162 | Console.WriteLine("Logged in " + client.ToString()); | ||
160 | } | 163 | } |
161 | 164 | ||
162 | return client; | 165 | return client; |