Friend Stream

Status
Not open for further replies.
Junior Spellweaver
Joined
Jan 22, 2011
Messages
105
Reaction score
110
Well, i'm working on the new friend stream, but i only founded the request GuA (to activate) and Gu@ (to disable the friend stream), and the packet NvH (I think Nv + Count of Actions + Actions Serialized), please help me with packetlogging and if you got some packets on Habbo with this...

I will release the fix (for x emulator) if you help me with this, please and thank u!

Progess:
ItachiKM - Friend Stream - RaGEZONE Forums


(for get this, only use the last release and:
send a initial "NvH" on the GameClients;
after that, register the request Gu, and finally, register if the string contains @ or A, if contains A, send again the NvH, else not send nothing (at the moment)
 
PHP:
           Response.Initialize(950);
            Response.AppendInt32(1); // 1 = enabled 0 = disiabled
            //Response.Append("[|h");
            //Response.Append("Iv[|hfGH");
            Response.Append("HHK"); // TYPES friends_made,room_liked_achievements_earned,Motto_changed,room_decorated
            Response.AppendString(Session.GetHabbo().Id.ToString()); // YOUR OWN iD
            Response.AppendString(Session.GetHabbo().Username); // YOUR OWN USER
            Response.AppendString(Session.GetHabbo().Gender); // YOUR OWN GENDER
            Response.AppendString("http://www.habbo.com/habbo-imaging/avatar/" + Session.GetHabbo().Look + ".gif"); // NEED to get solution to this
            Response.AppendInt32(0);  // find out what this means
            Response.AppendInt32(0); // find out what this means
            Response.AppendString(Session.GetHabbo().Id.ToString()); // to user habboid
            Response.AppendString("TOUSER");
            SendResponse();

i just did fast this maybe have a wrong structer but i hope it helps


btw i use other output system ;p (AppendString = + chr2 by me)

goodluck
 
PHP:
           Response.Initialize(950);
            Response.AppendInt32(1); // 1 = enabled 0 = disiabled
            //Response.Append("[|h");
            //Response.Append("Iv[|hfGH");
            Response.Append("HHK"); // TYPES friends_made,room_liked_achievements_earned,Motto_changed,room_decorated
            Response.AppendString(Session.GetHabbo().Id.ToString()); // YOUR OWN iD
            Response.AppendString(Session.GetHabbo().Username); // YOUR OWN USER
            Response.AppendString(Session.GetHabbo().Gender); // YOUR OWN GENDER
            Response.AppendString("http://www.habbo.com/habbo-imaging/avatar/" + Session.GetHabbo().Look + ".gif"); // NEED to get solution to this
            Response.AppendInt32(0);  // find out what this means
            Response.AppendInt32(0); // find out what this means
            Response.AppendString(Session.GetHabbo().Id.ToString()); // to user habboid
            Response.AppendString("TOUSER");
            SendResponse();

i just did fast this maybe have a wrong structer but i hope it helps


btw i use other output system ;p (AppendString = + chr2 by me)

goodluck

I can tell you easy some of that is wrong.
 
PHP:
           Response.Initialize(950);
            Response.AppendInt32(1); // 1 = enabled 0 = disiabled
            //Response.Append("[|h");
            //Response.Append("Iv[|hfGH");
            Response.Append("HHK"); // TYPES friends_made,room_liked_achievements_earned,Motto_changed,room_decorated
            Response.AppendString(Session.GetHabbo().Id.ToString()); // YOUR OWN iD
            Response.AppendString(Session.GetHabbo().Username); // YOUR OWN USER
            Response.AppendString(Session.GetHabbo().Gender); // YOUR OWN GENDER
            Response.AppendString("http://www.habbo.com/habbo-imaging/avatar/" + Session.GetHabbo().Look + ".gif"); // NEED to get solution to this
            Response.AppendInt32(0);  // find out what this means
            Response.AppendInt32(0); // find out what this means
            Response.AppendString(Session.GetHabbo().Id.ToString()); // to user habboid
            Response.AppendString("TOUSER");
            SendResponse();

i just did fast this maybe have a wrong structer but i hope it helps


btw i use other output system ;p (AppendString = + chr2 by me)

goodluck

I finished the structure (I think), and I'm working now with the look/badges extra hash, if anyone can help me...

ItachiKM - Friend Stream - RaGEZONE Forums


I think it must be like this:

PHP:
ServerMessage SerializeFriendStream = new ServerMessage("Nv");
                SerializeFriendStream.AddInt(1); // Count of streams

// Serialize:   
                SerializeFriendStream.AddInt(this.Id); // myID maybe?
                SerializeFriendStream.AddInt(2); // Type
                SerializeFriendStream.AddStringWithBreak(User.Id.ToString()); // UserId
                SerializeFriendStream.AddStringWithBreak(User.UserName); // UserName
                SerializeFriendStream.AddStringWithBreak(D.Gender.ToLower()); // Gender
                SerializeFriendStream.AddStringWithBreak("http://www.habbo.com/habbo-imaging/badge/ACH_RespectEarned1cac0bb4e40fef936b80a44dc12e5cf8d.png"); // Badge or Look
                SerializeFriendStream.AddInt(0); // Minutes ago!
                SerializeFriendStream.AddInt(3); // Type
                // Extra information (id on stringwithbreak + name on stringwithbreak for rooms, motto + stringwithbreak for motto, achievement name + stringwithbreak for achievements)
 
Last edited:
PHP:
public HabboServerPacket serialize(HabboServerPacket msg){
		
		// Init the message, including it's type
		msg.appendInt(this.id);
		msg.appendInt(this.type);
		
		// Append User data
		msg.appendIntWithDelim(user.ID, (byte)2);
		msg.appendStringWithDelim(user.name, (byte)2);
		msg.appendStringWithDelim(String.valueOf(user.sex), (byte)2);
		
		// Check the image that we have to append.
		if(this.type != FriendStreamEnum.ACHIEVEMENT_UNLOCK){
			msg.appendStringWithDelim((
					(user.sex == 'm') ? "http://127.0.0.1/c_images/friendstream/male.gif" : 
						"http://127.0.0.1/c_images/friendstream/female.gif"), 
							(byte)2);
		}else{
			msg.appendStringWithDelim(
					"http://127.0.0.1/c_images/album1584/" + this.streamData + ".gif", 
						(byte)2);
		}
		
		// Append Time
		appendGetMinutesSinceStreamStart(msg);
		
		// append Event of message.
		appendEventSettings(msg, this.type);
		
		// Append primary data.
		msg.appendStringWithDelim(this.streamData, (byte)2);
		
		// Append extra data if some exists.
		if(this.extraStreamData != null){
			msg.appendStringWithDelim(this.extraStreamData, (byte)2);
		}
		
		// Send the msg
		return msg;
	}
 
Last edited:
i only need the Avatar picture then i got it done :D
You can create a (relatively) simple avatarimage script with PHP, clothes from Shockwave Habbo are ok, but for Flash Habbo you would need to extract the images and declare their sprites' registry point.
 
Status
Not open for further replies.
Back