lunes, 27 de agosto de 2012

Habbo Development re-started

As a way to have a better understanding of habbo hotel and it's network protocol, I start again with habbo emulator development, with a new emulator of habbo hotel :)!


Habbo Hotel Furnidata

This days i'm working with habbo's swf and the time to analize the furnidata has come :P. As you can see on http://habbo.xx/gamedata/furnidata/ (xx is your hotel, so can be .es in my case or .com/.de/.it/nvm in your case!), every furni are divided in packages [lot of furnis],[lot of furnis]... and in furnis, each furni has got a structure like that:

["s","13","shelves_norja","39635","0","1","1","#ffffff,#F7EBBC","Estanteria","Para colocar tus emociones","some string here","-1","-1","some data here","1"]

So...

s is the furni type (s is floor item, i is wallitem, etc)
13 is the furni id (I think habbo get id from this)
shelves_norja is the furni name (habbo get "furni name.swf")
39635 is the furni season (not exactly, but habbo get furni by groups and get it from dcr/hof_furni/season id/furni name.swf)
0 is start rotation point
1 is width (x positions)
1 is lenght (y positions)
so this item will get 1 x positions and 1 y positions, will get two squares!
#ffffff, #F7EBBC is the color of the furni (possible colors)
Estanteria is the furni name that'll show in the client
Para colocar tus emociones is the furni desc that'll show in the client
some string here is used to change the furni name content, but non used in the furnidata so... not so important!
-1 is the catalogPageId (it's actually on the parser!)
-1 is the offerId, so I suppose has to be relationed with the deals
Some data here are util data to get furni working!
1 is the item category! (a value of the inventory and the roomitem (non used on emulators uh...))

Also you'll find some items with the same furni id that'll be flooritems and wallitems (3002, for example, is the "hween09_chandelier" flooritem and the "floor" wallitem), with that information, I suppose that Habbo use two different instances from wallitems getting it from furnidata and other for flooritems getting it from furnidata (in the catalog it uses the correct id of the item, so i suppose they have this and not other way to get all together (cause habbo separe flooritems and wallitems all the time!)

Maybe they'll not be like that, but I have that idea so it'll be nice if you check that! I wait to your opinions!

Update: I look to the swf and there is actually a FurniDataParser.as, so I update the data!