
Originally Posted by
Tha
You lied over 50! I was expecting 7000 and now I DEMAND 7000!
Hehe, just kidding :P (in what ******* kind of mood am I now? xD)
Good release, I might use this since I'm not sure whether I got all badges and I don't want to find out. I'm sure yours contains most of them (but I don't think all of them, however could be wrong)
Here's the code if you want (it's in Csharp). Once you compile it the console will ask you for hotel code. You just put "com.br" or "nl" (that's for getting the texts file)
Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;
using System.Xml;
using System.Xml.Linq;
using System.Threading.Tasks;
using System.IO;
namespace ItemDownloader
{
class Program
{
static void Main(string[] args)
{
WebClient BadgeDownloader = new WebClient();
Console.WriteLine("Enter hotel code to download its badges.");
string input = Console.ReadLine();
string text = BadgeDownloader.DownloadString("http://www.habbo." + input.ToLower() + "/gamedata/external_flash_texts");
using (StringReader reader = new StringReader(text))
{
string line;
while ((line = reader.ReadLine()) != null)
{
if (line.StartsWith("badge_name_"))
{
string badge = line.Replace("badge_name_", "").Split('=')[0].Replace(" ", "");
string Uri = "http://habboo-a.akamaihd.net/c_images/album1584/" + badge + ".gif";
Console.WriteLine(badge);
try
{
if (!Directory.Exists(@"C:\album1584\"))
{
Directory.CreateDirectory(@"C:\album1584\");
}
BadgeDownloader.DownloadFile(new Uri(Uri), @"C:\album1584\" + badge + ".gif");
}
catch (Exception)
{
}
}
}
}
}
}
}