Created
May 28, 2022 00:49
-
-
Save scottstamp/e578e58c6430cebd0fb45ddc7296877b to your computer and use it in GitHub Desktop.
Glitched Gift Sender
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// @name Glitched gifter | |
/// @desc Sends a glitched gift | |
/// @author b7 | |
/// @scripter 1.0.0-beta | |
/// @group Utility | |
const string | |
Recipient = "Missing#", | |
Message = "Testing, Testing, 1... 2... 3..."; | |
const string Gift = GiftFurni.WrapMaroon; | |
const GiftBox Box = GiftBox.Glamor; | |
const GiftDecor Decor = GiftDecor.RedSilkKnotRibbon; | |
const int GroupId = 520; // Use an invalid group id | |
var catalog = GetCatalog(); | |
var page = GetCatalogPage(catalog.FindNode("Group Furni")); | |
var offer = page.Offers.First(o => | |
o.PriceInCredits == 1 && | |
o.PriceInActivityPoints == 0 && | |
o.Products.OfKind("gld_stool2").Any() | |
); | |
PurchaseAsGift(offer, Recipient, Message, $"{GroupId}", Gift, Box, Decor); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment