xabbo-scripts/Snake Debug Watch.csx
Administrator 7bfc390ed6 Initial commit: 68 Xabbo Scripter scripts
Habbo Hotel automation scripts including:
- Game solvers (Snake, Color Puzzle, Tetris, Flappy Bird, Flood-IT)
- Room utilities (Autogate, One-Way Door, Furni Scanner)
- Bot tools (Heal Bot, Pet Trainer, User Collector)
- Trading & economy (Furni-Matic, Seed Trade, Trade Spam)

Cleaned up: removed 5 duplicates and 2 broken scripts,
renamed 37 gibberish filenames to descriptive names.
2026-03-16 09:38:59 +01:00

37 lines
995 B
C#

/// @name Snake Debug Watch
long TARGET_ID = 769407982;
long[] BTN_IDS = { 769407085, 769407116, 769407385, 769406820 };
int tick = 0;
int lastX = int.MinValue, lastY = int.MinValue, lastState = int.MinValue;
Log("Snake Debug Watch started");
while (Run)
{
Delay(100);
tick++;
var target = GetFloorItem(TARGET_ID);
if (target == null)
{
if (tick % 10 == 0)
Log("target missing");
continue;
}
if (target.Location.X != lastX || target.Location.Y != lastY || target.State != lastState)
{
Log($"target: ({target.Location.X},{target.Location.Y}) state={target.State} kind={target.Kind}");
lastX = target.Location.X;
lastY = target.Location.Y;
lastState = target.State;
}
if (tick % 20 == 0)
{
int k7100 = FloorItems.Count(i => i != null && i.Kind == 7100);
int k5068 = FloorItems.Count(i => i != null && i.Kind == 5068);
Log($"k7100={k7100}, k5068={k5068}");
}
}