-
[Butterstorm] Save branding (ads_background, ads_mpu_x) 100%
I've coded Save branding for Butterstorm.
Insert to Messages/Requests/Rooms.cs:
Code:
internal void SaveBranding()
{
uint ItemId = Request.PopWiredUInt();
uint Data = Request.PopWiredUInt();
string BrandData = "state" + Convert.ToChar(9) + "0";
for (int i = 1; i <= Data; i++)
{
BrandData = BrandData + Convert.ToChar(9) + Request.PopFixedString();
}
Room Room = Session.GetHabbo().CurrentRoom;
RoomItem Item = Room.GetRoomItemHandler().GetItem(ItemId);
Item.ExtraData = BrandData;
Room.GetRoomItemHandler().SetFloorItem(Session, Item, Item.GetX, Item.GetY, Item.Rot, false, false, true);
}
Insert to Messages/StaticMessageHandlers/SharedPacketLib.cs:
Code:
internal static void SaveBranding(GameClientMessageHandler handler)
{
handler.SaveBranding();
}
Find internal static void RegisterPacketLibary()
{ in StaticClientMessageHandler.cs:
Add after:
Code:
handlers.Add(Incoming.SaveBranding, new StaticRequestHandler(SharedPacketLib.SaveBranding));
Insert to Incoming Events:
Code:
public static int SaveBranding = 358;
Find Message.AppendStringWithBreak(String.Format("{0:0.00}", TextHandling.GetString(mZ))); in RoomItem.cs
Add after:
Code:
if (this.GetBaseItem().Name == "ads_mpu_720" || this.GetBaseItem().Name == "ads_background" || this.GetBaseItem().Name == "ads_mpu_300" || this.GetBaseItem().Name == "ads_mpu_160")
{
Message.AppendInt32(0);
Message.AppendInt32(1);
if (ExtraData != "")
{
Message.AppendInt32(ExtraData.Split(Convert.ToChar(9)).Length / 2);
for (int i = 0; i <= ExtraData.Split(Convert.ToChar(9)).Length - 1; i++)
{
Message.AppendString(ExtraData.Split(Convert.ToChar(9))[i]);
}
}
else
{
Message.AppendInt32(0);
}
}
change if (this.GetBaseItem().InteractionType == InteractionType.gift) to else if (this.GetBaseItem().InteractionType == InteractionType.gift)
Edit items_extradata table in your db and change colum "data" varchar -> text
Screen:
http://i45.tinypic.com/4zz5h3.png
-
Re: [Butterstorm] Save branding (ads_background, ads_mpu_x) 100%
Very nice, do u have this for bfly?
-
Re: [Butterstorm] Save branding (ads_background, ads_mpu_x) 100%
Thanks and Kenneth this is a edit of butterfly r96E
-
Re: [Butterstorm] Save branding (ads_background, ads_mpu_x) 100%
Try to make Mannquin fix :)
-
Re: [Butterstorm] Save branding (ads_background, ads_mpu_x) 100%
Quote:
Originally Posted by
Spot Ify
Thanks and Kenneth this is a edit of butterfly r96E
Yes but is the same packet as r63a? or what and next question:
I can use this code, but euh i cant join the room if i put them in Public rooms <_<
-
Re: [Butterstorm] Save branding (ads_background, ads_mpu_x) 100%
Wow, thanks for the release bro !
-
Re: [Butterstorm] Save branding (ads_background, ads_mpu_x) 100%
Nice release, thanks
Quote:
Originally Posted by
Squashing
Try to make Mannquin fix :)
Ohh a mannequin fix would be amazing.
-
Re: [Butterstorm] Save branding (ads_background, ads_mpu_x) 100%
Quote:
Originally Posted by
Shoelace
Nice release, thanks
Ohh a mannequin fix would be amazing.
I coding now mannequin :)
-
Re: [Butterstorm] Save branding (ads_background, ads_mpu_x) 100%
Ahh this is what you meant, this is nice, thanks :D
-
Re: [Butterstorm] Save branding (ads_background, ads_mpu_x) 100%
Hehe thanks, only needed the saving bit :>
-
Re: [Butterstorm] Save branding (ads_background, ads_mpu_x) 100%
Anyone know how to make it possible to join guest room as public room? :P
-
Re: [Butterstorm] Save branding (ads_background, ads_mpu_x) 100%
-
Re: [Butterstorm] Save branding (ads_background, ads_mpu_x) 100%
Quote:
Originally Posted by
=dj.matias=
I coding now mannequin :)
Any updates on mannequins? :D
-
Re: [Butterstorm] Save branding (ads_background, ads_mpu_x) 100%
Slightly off topic, but does anyone have the talents track packet header? :>
-
Re: [Butterstorm] Save branding (ads_background, ads_mpu_x) 100%
Quote:
Originally Posted by
Kenneth
Anyone know how to make it possible to join guest room as public room? :P
Does nobody knows this? :P
-
Re: [Butterstorm] Save branding (ads_background, ads_mpu_x) 100%
Quote:
Originally Posted by
Kenneth
Does nobody knows this? :P
The put in the internal GetPub
it should work because i coded staff picks and i saw that didn't work guestrooms from public rooms.
-
Re: [Butterstorm] Save branding (ads_background, ads_mpu_x) 100%
What is a mannequin or whatever?
#Edit: A small Google Search, told me the solution. :P
-
Re: [Butterstorm] Save branding (ads_background, ads_mpu_x) 100%
Quote:
Originally Posted by
Huginho98
What is a mannequin or whatever?
#Edit: A small Google Search, told me the solution. :P
A mannequin on habbo is where you can make an outfit and then it puts it on a mannequin then others can copy that outfit by clicking it.
-
Re: [Butterstorm] Save branding (ads_background, ads_mpu_x) 100%
Wow verry nice i like to see people butterstorm better make good work +1 like.
-
Re: [Butterstorm] Save branding (ads_background, ads_mpu_x) 100%
Atom Emulator in the HabboEvents.dll is closed, how do I fix this error in emulator?
(Sorry for my bad english, I'm Brazillian *-*)
-
Re: [Butterstorm] Save branding (ads_background, ads_mpu_x) 100%
Any updates on mannequins?
-
Re: [Butterstorm] Save branding (ads_background, ads_mpu_x) 100%
Thanks, didn't need it but thanks, ^ he's probably working on it, give him time, isn't easy ya know :p
-
Re: [Butterstorm] Save branding (ads_background, ads_mpu_x) 100%
'Insert to incoming events'
Where may I ask is that? :)
-
Re: [Butterstorm] Save branding (ads_background, ads_mpu_x) 100%
Quote:
Originally Posted by
Harmonic
'Insert to incoming events'
Where may I ask is that? :)
Incoming events is HabboEvents.dll ;)
-
Re: [Butterstorm] Save branding (ads_background, ads_mpu_x) 100%
Quote:
Originally Posted by
tweeney
Slightly off topic, but does anyone have the talents track packet header? :>
I allready searched it, but i didn't find it...Does talent track allready exit on this revision?