xabbo-scripts/Scripts/Furniture Position Debug.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

60 lines
1.9 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
// ═══════════════════════════════════════════════════════════════════════════════
// DEBUG - ZEIGT ALLE POSITIONEN
// ═══════════════════════════════════════════════════════════════════════════════
const int PILLOW_ID = 893412986;
const int GATE_ID = 2147418143;
HashSet<int> greenRollers = new HashSet<int> {
2147418115, 2147418119, 2147418133,
2147418134, 2147418135, 2147418136
};
int GetId(dynamic item) { try { return (int)item.Id; } catch { return 0; } }
Log("═══════════════════════════════════════");
Log(" DEBUG - POSITIONEN");
Log("═══════════════════════════════════════");
while (Run)
{
Delay(1000);
Log("--- SCAN ---");
// Meine Position
try
{
Log($"ICH: ({Self.Location.X}, {Self.Location.Y})");
}
catch { Log("ICH: nicht gefunden"); }
// Kissen
foreach (var item in FloorItems)
{
if (item == null) continue;
if (GetId(item) == PILLOW_ID)
{
Log($"KISSEN: ({item.Location.X}, {item.Location.Y})");
}
}
// Alle grünen Roller
foreach (var item in FloorItems)
{
if (item == null) continue;
int id = GetId(item);
if (greenRollers.Contains(id))
{
Log($"ROLLER {id}: ({item.Location.X}, {item.Location.Y})");
}
if (id == GATE_ID)
{
Log($"GATE: ({item.Location.X}, {item.Location.Y})");
}
}
}