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

40 lines
1.3 KiB
C#

/// @name Catalog Item Finder
var targetIdentifier = "xmas_ltd25_frostegg";
var catalog = GetCatalog();
var nodes = catalog.Where(x => x.Id > 0).ToArray();
for (int i = 0; i < nodes.Length; i++) {
var node = nodes[i];
Status($"Searching {i+1}/{nodes.Length}...");
var page = GetCatalogPage(node);
foreach (var offer in page.Offers) {
foreach (var product in offer.Products) {
if (product.Type != ItemType.Floor && product.Type != ItemType.Wall) continue;
if (product.GetIdentifier() != targetIdentifier) continue;
var pointsLabel = offer.ActivityPointType.ToString() == "Diamond"
? "PriceInDiamonds"
: "PriceInActivityPoints";
Log($"Found: {targetIdentifier}\n" +
$" id: {offer.Id}\n" +
$" pageId: {node.Id}\n" +
$" pageName: {node.Name}\n" +
$" furniLine: {offer.FurniLine}\n" +
$" priceInCredits: {offer.PriceInCredits}\n" +
$" {pointsLabel}: {offer.PriceInActivityPoints}\n" +
$" canPurchaseMultiple: {offer.CanPurchaseMultiple}\n" +
$" canPurchaseAsGift: {offer.CanPurchaseAsGift}\n" +
$" type: {product.Type}\n" +
$" isLimited: {product.IsLimited}");
return;
}
}
await Task.Delay(150);
}
Log("Item not found in catalog");