xabbo-scripts/FindHiddenHeader.csx
Administrator b6c31a7feb Add 165 scripts from desktop collection + update README
Added scripts from C:\Users\ploet\Desktop\Habbo\Xabbo Scripte:
- 39 KI/Chatbot scripts (ChatGPT, Gemini, Grok, DeepSeek, Ollama)
- Game solvers (Domino, Dodgeball, Obsidian Maze, IceBall)
- Collision avoidance bots (5 versions)
- Plant/breeding automation (12 scripts)
- Trading tools, packet debuggers, room utilities
- Navigation & teleport helpers

Removed: 9 files (3 empty, 2 trivial, 4 cross-duplicates)
Updated README with full categorized index of all 230+ scripts.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-16 09:47:56 +01:00

38 lines
1.6 KiB
C#

var outProperties = Out.GetType().GetProperties();
var unknownPacketIds = new List<short>();
for (short i = 0; i <= 4000; i++) {
try {
Header header = null;
if (Messages.TryGetHeaderByValue(Destination.Server, Client, i, out header)) {
string headerName = null;
foreach (var prop in outProperties) {
try {
if (prop.PropertyType.Name.Contains("Header")) {
var outHeader = prop.GetValue(Out);
if (outHeader != null) {
var flashProp = outHeader.GetType().GetProperty("Flash");
if (flashProp != null) {
var flash = flashProp.GetValue(outHeader);
if (flash != null) {
var valueProp = flash.GetType().GetProperty("Value");
if (valueProp != null) {
var value = valueProp.GetValue(flash);
if (value != null && value.ToString() == i.ToString()) {
headerName = prop.Name;
break;
}
}
}
}
}
}
} catch { }
}
if (headerName == null) unknownPacketIds.Add(i);
}
} catch { }
}
foreach (var id in unknownPacketIds) {
Log($"Unknown packet ID: {id}");
}