BC storm ads_background FIX.

Page 1 of 2 12 LastLast
Results 1 to 25 of 35
  1. #1
    Valued Member GheddoMonsta is offline
    MemberRank
    Feb 2011 Join Date
    127Posts

    BC storm ads_background FIX.

    hello today i'm releasing my Ads Background fix. Screen: background.png

    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
    Attached Thumbnails Attached Thumbnails hotelroom.png  
    Last edited by GheddoMonsta; 14-01-13 at 05:57 PM. Reason: now is working


  2. #2
    son, i am disappointed Squashing is offline
    MemberRank
    Apr 2011 Join Date
    CaliforniaLocation
    683Posts

    Re: BC storm ads_background FIX.

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



    But thanks for releasing <3

  3. #3
    Valued Member smasher1994 is offline
    MemberRank
    Sep 2008 Join Date
    122Posts

    Re: BC storm ads_background FIX.

    Where can I add more official Rooms??

    Quote Originally Posted by Squashing View Post
    It's not 100% there is 1 error <3



    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 by smasher1994; 14-01-13 at 08:14 AM.

  4. #4
    **Danish aZure support** Gilibert is offline
    MemberRank
    Jan 2011 Join Date
    236Posts

    Re: BC storm ads_background FIX.

    Anyone have the image and SQL code for using this in Phoenix (The room and images)

  5. #5
    Banned V for Vendetta is offline
    BannedRank
    Feb 2007 Join Date
    1,809Posts

    Re: BC storm ads_background FIX.

    Thanks for this. this is the best!

    Will use this!

  6. #6
    Valued Member GheddoMonsta is offline
    MemberRank
    Feb 2011 Join Date
    127Posts

    Re: BC storm ads_background FIX.

    Quote Originally Posted by Mixland View Post
    Anyone have the image and SQL code for using this in Phoenix (The room and images)
    http://forum.ragezone.com/f353/habbo...alogue-839322/ << here are all room ads from sulake ;)

  7. #7
    Valued Member Troll Hotel is offline
    MemberRank
    Nov 2012 Join Date
    SlovakiaLocation
    144Posts

    Re: BC storm ads_background FIX.

    I dont have the furni :( for r63b ads

  8. #8
    Valued Member Andre96 is offline
    MemberRank
    Dec 2011 Join Date
    The NetherlandsLocation
    103Posts

    Re: BC storm ads_background FIX.

    how can you change that is phoenix?

  9. #9
    son, i am disappointed Squashing is offline
    MemberRank
    Apr 2011 Join Date
    CaliforniaLocation
    683Posts

    Re: BC storm ads_background FIX.

    I can't save it? I click on 'Opslaan (Save)' and then I restart room and then I get nothing


  10. #10
    Valued Member GheddoMonsta is offline
    MemberRank
    Feb 2011 Join Date
    127Posts

    Re: BC storm ads_background FIX.

    I HAVE UPDATED THE THREAD.. I HAVE FORGOT A CODE.. now is working :D sorry.
    Last edited by GheddoMonsta; 14-01-13 at 03:01 PM.

  11. #11
    son, i am disappointed Squashing is offline
    MemberRank
    Apr 2011 Join Date
    CaliforniaLocation
    683Posts

    Re: BC storm ads_background FIX.

    Quote Originally Posted by GheddoMonsta View Post
    have you the swf revesion RELEASE63-201211141113-913728051 ?! ;D for me its work xD
    OT: What is you're hotel then?

  12. #12
    Valued Member GheddoMonsta is offline
    MemberRank
    Feb 2011 Join Date
    127Posts

    Re: BC storm ads_background FIX.

    I have updated the thread i forgot a code sorry :D now is working.! read the first thread xD

  13. #13
    son, i am disappointed Squashing is offline
    MemberRank
    Apr 2011 Join Date
    CaliforniaLocation
    683Posts

    Re: BC storm ads_background FIX.

    Stil doesn't work bro

  14. #14
    Keep your head up. FlyHotel is offline
    MemberRank
    Apr 2011 Join Date
    The NetherlandsLocation
    570Posts

    Re: BC storm ads_background FIX.

    @Sqaushing,

    How did you add the ads_background furni?

  15. #15
    son, i am disappointed Squashing is offline
    MemberRank
    Apr 2011 Join Date
    CaliforniaLocation
    683Posts

    Re: BC storm ads_background FIX.

    Just make it for urself :)

  16. #16
    Valued Member GheddoMonsta is offline
    MemberRank
    Feb 2011 Join Date
    127Posts

    Re: BC storm ads_background FIX.

    Quote Originally Posted by Squashing View Post
    Just make it for urself :)
    have you the items_extradata table the query data as text? ;D

  17. #17
    son, i am disappointed Squashing is offline
    MemberRank
    Apr 2011 Join Date
    CaliforniaLocation
    683Posts

    Re: BC storm ads_background FIX.

    Quote Originally Posted by GheddoMonsta View Post
    have you the items_extradata table the query data as text? ;D
    No what do you mean? And how can I do it?

    Oh yes it is :)

  18. #18
    Valued Member GheddoMonsta is offline
    MemberRank
    Feb 2011 Join Date
    127Posts

    Re: BC storm ads_background FIX.

    hmm. works for me? o.O

  19. #19
    son, i am disappointed Squashing is offline
    MemberRank
    Apr 2011 Join Date
    CaliforniaLocation
    683Posts

    Re: BC storm ads_background FIX.

    Let we check other people , if the same problem I think it's a useless thread =3

  20. #20
    Valued Member GheddoMonsta is offline
    MemberRank
    Feb 2011 Join Date
    127Posts

    Re: BC storm ads_background FIX.

    i have forgot to handle the packets now its 100% working look on the first page xD

  21. #21
    son, i am disappointed Squashing is offline
    MemberRank
    Apr 2011 Join Date
    CaliforniaLocation
    683Posts

    Re: BC storm ads_background FIX.

    Working people <3 Thanks for this can you try make Mannequin for this?

    http://forum.ragezone.com/f353/butte...orking-897913/

  22. #22
    Valued Member Troll Hotel is offline
    MemberRank
    Nov 2012 Join Date
    SlovakiaLocation
    144Posts

    Re: BC storm ads_background FIX.

    can somebody post the furni SQL and hof furni file please :D

  23. #23
    Valued Member GheddoMonsta is offline
    MemberRank
    Feb 2011 Join Date
    127Posts

    Re: BC storm ads_background FIX.

    Quote Originally Posted by Les View Post
    LOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOL OMG to funny -.- , USE phoenix and u wont have this prob, thank you tho :)
    no problem? XD

  24. #24
    Apprentice TwInniee is offline
    MemberRank
    Nov 2012 Join Date
    15Posts

    Re: BC storm ads_background FIX.

    Doesn't work.. Its fake?

  25. #25
    son, i am disappointed Squashing is offline
    MemberRank
    Apr 2011 Join Date
    CaliforniaLocation
    683Posts

    Re: BC storm ads_background FIX.

    Its worlomg :)



Page 1 of 2 12 LastLast

Advertisement