[Butterstorm] Save branding (ads_background, ads_mpu_x) 100%

Page 1 of 3 123 LastLast
Results 1 to 15 of 44
  1. #1
    Account Upgraded | Title Enabled! =dj.matias= is offline
    MemberRank
    Apr 2008 Join Date
    FinlandLocation
    381Posts

    [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:



  2. #2
    Account Upgraded | Title Enabled! Chapo is offline
    MemberRank
    Jul 2010 Join Date
    United StatesLocation
    944Posts

    Re: [Butterstorm] Save branding (ads_background, ads_mpu_x) 100%

    Very nice, do u have this for bfly?

  3. #3
    I (L) Willem Spot Ify is offline
    MemberRank
    Jun 2012 Join Date
    The NetherlandsLocation
    294Posts

    Re: [Butterstorm] Save branding (ads_background, ads_mpu_x) 100%

    Thanks and Kenneth this is a edit of butterfly r96E

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

    Re: [Butterstorm] Save branding (ads_background, ads_mpu_x) 100%

    Try to make Mannquin fix :)

  5. #5
    Account Upgraded | Title Enabled! Chapo is offline
    MemberRank
    Jul 2010 Join Date
    United StatesLocation
    944Posts

    Re: [Butterstorm] Save branding (ads_background, ads_mpu_x) 100%

    Quote Originally Posted by Spot Ify View Post
    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 <_<

  6. #6
    Valued Member iOmvuZ is offline
    MemberRank
    May 2012 Join Date
    104Posts

    Re: [Butterstorm] Save branding (ads_background, ads_mpu_x) 100%

    Wow, thanks for the release bro !

  7. #7
    Super Moderator! Shoelace is offline
    Super ModRank
    Mar 2012 Join Date
    6,579Posts

    Re: [Butterstorm] Save branding (ads_background, ads_mpu_x) 100%

    Nice release, thanks

    Quote Originally Posted by Squashing View Post
    Try to make Mannquin fix :)
    Ohh a mannequin fix would be amazing.

  8. #8
    Account Upgraded | Title Enabled! =dj.matias= is offline
    MemberRank
    Apr 2008 Join Date
    FinlandLocation
    381Posts

    Re: [Butterstorm] Save branding (ads_background, ads_mpu_x) 100%

    Quote Originally Posted by Shoelace View Post
    Nice release, thanks



    Ohh a mannequin fix would be amazing.
    I coding now mannequin :)

  9. #9
    ส็็็็็็็ Bloodraven is offline
    MemberRank
    Sep 2009 Join Date
    AntarcticaLocation
    2,414Posts

    Re: [Butterstorm] Save branding (ads_background, ads_mpu_x) 100%

    Ahh this is what you meant, this is nice, thanks :D

  10. #10
    Demi-God tweeney is offline
    MemberRank
    Aug 2008 Join Date
    888Posts

    Re: [Butterstorm] Save branding (ads_background, ads_mpu_x) 100%

    Hehe thanks, only needed the saving bit :>

  11. #11
    Account Upgraded | Title Enabled! Chapo is offline
    MemberRank
    Jul 2010 Join Date
    United StatesLocation
    944Posts

    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

  12. #12
    Account Upgraded | Title Enabled! Jhonn is offline
    MemberRank
    Jun 2012 Join Date
    257Posts

    Re: [Butterstorm] Save branding (ads_background, ads_mpu_x) 100%

    Very nice! Thanks :D

  13. #13
    Banned Divide is offline
    BannedRank
    Aug 2011 Join Date
    British CoderLocation
    1,013Posts

    Re: [Butterstorm] Save branding (ads_background, ads_mpu_x) 100%

    Quote Originally Posted by =dj.matias= View Post
    I coding now mannequin :)
    Any updates on mannequins? :D

  14. #14
    Demi-God tweeney is offline
    MemberRank
    Aug 2008 Join Date
    888Posts

    Re: [Butterstorm] Save branding (ads_background, ads_mpu_x) 100%

    Slightly off topic, but does anyone have the talents track packet header? :>

  15. #15
    Account Upgraded | Title Enabled! Chapo is offline
    MemberRank
    Jul 2010 Join Date
    United StatesLocation
    944Posts

    Re: [Butterstorm] Save branding (ads_background, ads_mpu_x) 100%

    Quote Originally Posted by Kenneth View Post
    Anyone know how to make it possible to join guest room as public room? :P
    Does nobody knows this? :P



Page 1 of 3 123 LastLast

Advertisement