Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

BC storm ads_background FIX.

Status
Not open for further replies.
Junior Spellweaver
Joined
Feb 7, 2011
Messages
120
Reaction score
12
hello today i'm releasing my Ads Background fix. Screen: background.PNG - BC storm ads_background FIX. - RaGEZONE Forums

ok..

go to messages/Gameclientmessagehandler.cs and put
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);
            
     

        }

under
Code:
internal void GetInventory()
        {
            QueuedServerMessage message = new QueuedServerMessage(this.Session.GetConnection());
            message.appendResponse(this.Session.GetHabbo().GetInventoryComponent().SerializeFloorItemInventory());
            message.appendResponse(this.Session.GetHabbo().GetInventoryComponent().SerializeWallItemInventory());
            message.sendResponse();
        }

then go to messages/staticmessagehandler/sharedpacketlib.cs and put

Code:
 internal static void SaveBranding(GameClientMessageHandler handler)
        {
            handler.SaveBranding();
        }

under
Code:
 internal static void AddFavorite(GameClientMessageHandler handler)
        {
            handler.AddFavorite();
        }

then go to habboevents/incoming.cs
and put
Code:
public static int SaveBranding;
under
Code:
public static int RemoveGuildFavorite;

and put
Code:
Incoming.SaveBranding = 242;
under
Code:
Incoming.OpenGift = 225;

GO TO roomitem.cs in habbohotel/items

search:
Code:
 Message.AppendString(string.Format("{0:0.00}", TextHandling.GetString(this.mZ)));

and add under this:
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);
                    }
         
                }

and change
Code:
 if ((this.GetBaseItem().SpriteId >= 0xd2c) && (this.GetBaseItem().SpriteId < 0xd36))
to
Code:
 else if ((this.GetBaseItem().SpriteId >= 0xd2c) && (this.GetBaseItem().SpriteId < 0xd36))

then go to StaticClientMessageHandler in messages/staticmessagehandler and put

Code:
handlers.Add(Incoming.SaveBranding, new StaticRequestHandler(SharedPacketLib.SaveBranding));
under
Code:
internal static void RegisterPacketLibary()
        {

finish :D

credits: 60% to =dj.matias= for the old code 29% to Whippet 10% for the packet finding and 11% to me for findig out to put this in the new emulator + changing packets.

when i Help you ;D like + rep

sorry for my bad english i'm german
 

Attachments

You must be registered for see attachments list
Last edited:
Junior Spellweaver
Joined
Sep 2, 2008
Messages
113
Reaction score
27
Where can I add more official Rooms??

It's not 100% there is 1 error <3

GheddoMonsta - BC storm ads_background FIX. - RaGEZONE Forums


But thanks for releasing <3

Edit this;
Code:
public static int Savebranding;

to this;
Code:
public static int SaveBranding;

And it's fixed ;)
 
Last edited:
Experienced Elementalist
Joined
Jan 18, 2011
Messages
210
Reaction score
30
Anyone have the image and SQL code for using this in Phoenix (The room and images)
 
Joined
Apr 27, 2011
Messages
569
Reaction score
80
I can't save it? I click on 'Opslaan (Save)' and then I restart room and then I get nothing

EhnbB - BC storm ads_background FIX. - RaGEZONE Forums
 

Attachments

You must be registered for see attachments list
Junior Spellweaver
Joined
Feb 7, 2011
Messages
120
Reaction score
12
I HAVE UPDATED THE THREAD.. I HAVE FORGOT A CODE.. now is working :D sorry.
 
Last edited:
Junior Spellweaver
Joined
Feb 7, 2011
Messages
120
Reaction score
12
I have updated the thread i forgot a code sorry :D now is working.! read the first thread xD
 
Junior Spellweaver
Joined
Feb 7, 2011
Messages
120
Reaction score
12
i have forgot to handle the packets now its 100% working look on the first page xD
 
Status
Not open for further replies.
Back
Top