xabbo-scripts/Scripts/Wired Message Blocker.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

28 lines
699 B
C#

using Xabbo.Interceptor;
using Xabbo.Messages;
// Funktion zum Prüfen der Nachricht
void BlockWired(Intercept e)
{
try
{
e.Packet.Position = 0;
e.Packet.ReadInt(); // User Index
e.Packet.ReadString(); // Nachricht
e.Packet.ReadInt(); // Geste
// Die Bubble ID lesen
int bubbleStyle = e.Packet.ReadInt();
// 34 ist die Standard-Wired-Bubble.
// Falls dein Retro eine andere ID für Wired nutzt, ändere die 34.
if (bubbleStyle == 34)
{
e.Block();
}
}
catch { }
}
// Intercept nur auf Flüstern (Whisper), da Wireds meistens flüstern
Intercept(In.Whisper, BlockWired);