From 56f40daf37135ab2f063273c5b22d4c2d9f99ad3 Mon Sep 17 00:00:00 2001 From: Madpeter <57852827+Madpeterz@users.noreply.github.com> Date: Wed, 4 Jun 2025 15:46:50 +0100 Subject: [PATCH] new command SetParcelSnapshot --- SecondBotEvents/Commands/ParcelCommands.cs | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/SecondBotEvents/Commands/ParcelCommands.cs b/SecondBotEvents/Commands/ParcelCommands.cs index ae93a84..243aa70 100644 --- a/SecondBotEvents/Commands/ParcelCommands.cs +++ b/SecondBotEvents/Commands/ParcelCommands.cs @@ -875,6 +875,28 @@ namespace SecondBotEvents.Commands return BasicReply("ok", [amount]); } + [About("Sets the current parcels snapshot")] + [ReturnHints("ok")] + [ReturnHintsFailure("Error not in a sim")] + [ReturnHintsFailure("Parcel data not ready")] + [ReturnHintsFailure("Invaild texture uuid")] + [ArgHints("texture", "The texture uuid to set as the snapshot", "UUID")] + public object SetParcelSnapshot(string texture) + { + KeyValuePair tests = SetupCurrentParcel(); + if (tests.Key == false) + { + return Failure(tests.Value); + } + if (UUID.TryParse(texture, out UUID textureuuid) == false) + { + return Failure("Invaild texture uuid", [texture]); + } + targetparcel.SnapshotID = textureuuid; + targetparcel.Update(GetClient()); + return BasicReply("ok", [texture]); + } + [About("Freezes an avatar")] [ReturnHints("ok")] [ReturnHintsFailure("Invaild avatar UUID")]