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/Commands | |
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/Commands')
-rw-r--r-- | ExportBot/Commands/CloneProfileCommand.cs | 6 | ||||
-rw-r--r-- | ExportBot/Commands/ExportOutfitCommand.cs | 14 |
2 files changed, 11 insertions, 9 deletions
diff --git a/ExportBot/Commands/CloneProfileCommand.cs b/ExportBot/Commands/CloneProfileCommand.cs index d608318..68712ff 100644 --- a/ExportBot/Commands/CloneProfileCommand.cs +++ b/ExportBot/Commands/CloneProfileCommand.cs | |||
@@ -24,20 +24,20 @@ namespace libsecondlife.TestClient | |||
24 | testClient.Avatars.OnAvatarGroups += new AvatarManager.AvatarGroupsCallback(Avatars_OnAvatarGroups); | 24 | testClient.Avatars.OnAvatarGroups += new AvatarManager.AvatarGroupsCallback(Avatars_OnAvatarGroups); |
25 | testClient.Self.OnJoinGroup += new MainAvatar.JoinGroupCallback(Self_OnJoinGroup); | 25 | testClient.Self.OnJoinGroup += new MainAvatar.JoinGroupCallback(Self_OnJoinGroup); |
26 | 26 | ||
27 | testClient.Self.Objects.OnNewAvatar += new ObjectManager.NewAvatarCallback(AvatarSeen); | 27 | // testClient.Self.Objects.OnNewAvatar += new ObjectManager.NewAvatarCallback(AvatarSeen); |
28 | 28 | ||
29 | Name = "cloneprofile"; | 29 | Name = "cloneprofile"; |
30 | Description = "Clones another avatars profile as closely as possible. WARNING: This command will " + | 30 | Description = "Clones another avatars profile as closely as possible. WARNING: This command will " + |
31 | "destroy your existing profile! Usage: cloneprofile [targetuuid]"; | 31 | "destroy your existing profile! Usage: cloneprofile [targetuuid]"; |
32 | } | 32 | } |
33 | 33 | ||
34 | void AvatarSeen(Simulator simulator, Avatar avatar, ulong regionHandle, ushort timeDilation) | 34 | /* void AvatarSeen(Simulator simulator, Avatar avatar, ulong regionHandle, ushort timeDilation) |
35 | { | 35 | { |
36 | lock (Avatars) | 36 | lock (Avatars) |
37 | { | 37 | { |
38 | Avatars.Add(avatar.UUID,avatar.LocalID); | 38 | Avatars.Add(avatar.UUID,avatar.LocalID); |
39 | } | 39 | } |
40 | } | 40 | }*/ |
41 | 41 | ||
42 | public override string Execute(string[] args, LLUUID fromAgentID) | 42 | public override string Execute(string[] args, LLUUID fromAgentID) |
43 | { | 43 | { |
diff --git a/ExportBot/Commands/ExportOutfitCommand.cs b/ExportBot/Commands/ExportOutfitCommand.cs index 6ec2776..5945942 100644 --- a/ExportBot/Commands/ExportOutfitCommand.cs +++ b/ExportBot/Commands/ExportOutfitCommand.cs | |||
@@ -37,16 +37,18 @@ namespace libsecondlife.TestClient | |||
37 | { | 37 | { |
38 | try | 38 | try |
39 | { | 39 | { |
40 | XmlWriterSettings settings = new XmlWriterSettings(); | 40 | StreamWriter Outfile = File.AppendText(args[1]); |
41 | settings.Indent = true; | 41 | |
42 | XmlWriter writer = XmlWriter.Create(args[1], settings); | 42 | |
43 | try | 43 | try |
44 | { | 44 | { |
45 | Client.Appearances[id].ToXml(writer); | 45 | Outfile.Write(Client.Appearances[id].ToString()); |
46 | Console.WriteLine(Client.Appearances[id].ToString()); | ||
47 | //Client.Appearances[id].ToXml(writer); | ||
46 | } | 48 | } |
47 | finally | 49 | finally |
48 | { | 50 | { |
49 | writer.Close(); | 51 | Outfile.Close(); |
50 | } | 52 | } |
51 | } | 53 | } |
52 | catch (Exception e) | 54 | catch (Exception e) |
@@ -63,4 +65,4 @@ namespace libsecondlife.TestClient | |||
63 | } | 65 | } |
64 | } | 66 | } |
65 | } | 67 | } |
66 | } \ No newline at end of file | 68 | } |