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

17 lines
340 B
C#

void GetSelectedBadges(InterceptArgs e)
{
try
{
int userId = e.Packet.ReadInt();
var userEntity = Users.FirstOrDefault(u => u.Id == userId);
if (userEntity != null)
{
Log(userEntity.Index);
}
}
catch {}
}
OnIntercept(Out["GetSelectedBadges"], GetSelectedBadges);
Wait();