using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; // ════════════════════════════════════════════════════ // FIXED ROLLER BOT (Ohne Schnickschnack) // ════════════════════════════════════════════════════ // IDs int pillowId = 893412986; int gateId = 2147418143; List rollers = new List { 2147418115, 2147418119, 2147418133, 2147418134, 2147418135, 2147418136 }; // Einstellungen int delay = 130; // Wartezeit auf dem Roller (ms) // Speicher für Koordinaten: Key=ItemID, Value=[x, y] Dictionary coords = new Dictionary(); bool active = false; Log("Bot gestartet. BITTE RAUM NEU LADEN!"); // 1. Alles scannen beim Raum betreten OnIntercept(In.RoomReady, e => { coords.Clear(); active = false; }); OnIntercept(In.Users, e => { coords.Clear(); active = false; }); OnIntercept(In.FloorItems, e => { var p = e.Packet; int n = p.ReadInt(); for(int i=0; i { if (!active) return; var p = e.Packet; int oldX = p.ReadInt(); int oldY = p.ReadInt(); int newX = p.ReadInt(); // Ziel X int newY = p.ReadInt(); // Ziel Y int count = p.ReadInt(); bool pillowMoved = false; for(int i=0; i Hin und Zurück Send(Out.MoveAvatar, cx, cy); await Task.Delay(delay); Send(Out.MoveAvatar, px, py); return; } } } }