xabbo-scripts/Scripts/OpenBox.csx
Administrator 7a548130a3 Move all scripts into Scripts/ subfolder
Keeps the repo root clean - only README.md visible on landing page.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-16 09:49:37 +01:00

20 lines
464 B
C#

Send(Out["RequestFurniInventory"]);
Delay(500);
EnsureInventory(5000);
var name = "Mystery Box";
var boxes = Inventory.Where(x => x.GetDescriptor().GetName() == name);
var freeTiles = Heightmap.Where(x => x.IsFree);
foreach (var box in boxes) {
Place(box, Rand(freeTiles).Location);
Delay(150);
}
while (Run) {
foreach (var box in FloorItems.Where(x => x.GetName() == name))
Send(Out["PresentOpen"], (int)box.Id);
Delay(1000);
}
Wait();