xabbo-scripts/Scripts/ATest.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

23 lines
637 B
C#

var playArea = new Area((7, 11), (12, 15));
var playerPosition = new Point(16, 13);
while (Run) {
var score = GetFloorItem(478005605).State;
Status(score);
if (GetFloorItem(47594472).Direction != 2)
Send(out.EnterOneWayDoor, 47594472);
if (score >= 550) { Delay(500); continue; }
if (Self.XY != playerPosition) { Delay(500); continue; }
var tiles = FloorItems.Inside(playArea).Named("Color Tile").NotOfState(ColorTiles.Red).OrderByDescending(x => x.X);
var selected = tiles.Take(5).ToList();
foreach (var tile in selected) {
Send(out["ClickFurni"], (int)tile.Id, 0);
Delay(120);
}
Delay(10);
}