Items Packet Upgraded!

Results 1 to 12 of 12
  1. #1
    Elite Member ItachiKM is offline
    Member +Rank
    Jan 2011 Join Date
    133Posts

    Items Packet Upgraded!

    Today, I start coding somethings of the rooms, but i see the items don't work in the last release (I updated it today)...

    When, I review the packet and I fixed it:
    In HabboHotel/Items/RoomItem.cs, at the void
    Code:
    internal void Serialize(ServerMessage Message)
    Replace:
    Code:
    if (IsFloorItem)
                {
                    Message.AppendUInt(Id);
                    Message.AppendInt32(GetBaseItem().SpriteId);
                    Message.AppendInt32(X);
                    Message.AppendInt32(Y);
                    Message.AppendInt32(Rot);
                    Message.AppendStringWithBreak(Z.ToString().Replace(',', '.'));
                    Message.AppendInt32(0);
                    Message.AppendStringWithBreak(ExtraData);
                    Message.AppendInt32(-1);
                }
    For:
    Code:
    if (IsFloorItem)
                {
                    Message.AppendUInt(Id);
                    Message.AppendInt32(GetBaseItem().SpriteId);
                    Message.AppendInt32(X);
                    Message.AppendInt32(Y);
                    Message.AppendInt32(Rot);
                    Message.AppendStringWithBreak(Z.ToString().Replace(',', '.'));
                    Message.AppendInt32(0);
                    Message.AppendStringWithBreak(ExtraData);
                    Message.AppendInt32(-1);
                    if (GetBaseItem().InteractionType.ToLower() == "default")
                        Message.AppendBoolean(false);
                    else
                        Message.AppendBoolean(true);
                }
    Capture:


    Have a nice day!


  2. #2
    Banned PEjump2 is offline
    BannedRank
    Jan 2010 Join Date
    The NetherlandsLocation
    2,838Posts

    Re: Items Packet Upgraded!

    Thanks ;)

  3. #3
    Sorcerer Supreme bartskinu is offline
    Member +Rank
    Dec 2007 Join Date
    320Posts

    Re: Items Packet Upgraded!

    THANKS!

    Do you have the fix for changing clothes to?

  4. #4
    Newbie RaroPixelado is offline
    MemberRank
    Apr 2011 Join Date
    16Posts

    Re: Items Packet Upgraded!

    What that does?

  5. #5
    Member dylanxx34 is offline
    MemberRank
    Jan 2011 Join Date
    HollandLocation
    48Posts

    Re: Items Packet Upgraded!

    nice!(thnx

  6. #6
    Elite Member simoneihg is offline
    Member +Rank
    Dec 2010 Join Date
    PalermoLocation
    243Posts

    Re: Items Packet Upgraded!

    Thanks :P

  7. #7
    Elite Member HabsHotel is offline
    Member +Rank
    Jan 2011 Join Date
    CanadaLocation
    167Posts

    Re: Items Packet Upgraded!

    All this does it make th "use" button work.
    Instead of putting,

    Code:
    if (GetBaseItem().InteractionType.ToLower() == "default")
                        Message.AppendBoolean(false);
                    else
                        Message.AppendBoolean(true);
    You could simply put,

    Code:
    Message.AppendBoolean(true);
    Its basicly the same thing & it what im putting :)

  8. #8
    Newbie WhackAttack is offline
    MemberRank
    Apr 2011 Join Date
    The NetherlandsLocation
    20Posts

    Re: Items Packet Upgraded!

    Already fixed but thanks for this.

  9. #9
    Elite Member ItachiKM is offline
    Member +Rank
    Jan 2011 Join Date
    133Posts

    Re: Items Packet Upgraded!

    Quote Originally Posted by HabsHotel View Post
    All this does it make th "use" button work.
    Instead of putting,

    Code:
    if (GetBaseItem().InteractionType.ToLower() == "default")
                        Message.AppendBoolean(false);
                    else
                        Message.AppendBoolean(true);
    You could simply put,

    Code:
    Message.AppendBoolean(true);
    Its basicly the same thing & it what im putting :)
    U can't view the botton "use" on all of the furnis on the room, and I code 100% all of I make, but I think the else must be elseif with two or three interactions, this is a test...


    Quote Originally Posted by WhackAttack View Post
    Already fixed but thanks for this.
    I think not, the update is on yesterday...


    Quote Originally Posted by RaroPixelado View Post
    What that does?
    It's for the new botton "use"
    Last edited by ItachiKM; 14-05-11 at 06:19 AM.

  10. #10
    Sorcerer Supreme bartskinu is offline
    Member +Rank
    Dec 2007 Join Date
    320Posts

    Re: Items Packet Upgraded!

    Thanks! Do you have the fixes for changing clothing and walk trough each other to? That would me really nice!

  11. #11
    Grand Master wichard is offline
    Grand MasterRank
    Jul 2009 Join Date
    The NetherlandsLocation
    649Posts

    Re: Items Packet Upgraded!

    Heres my code: (better)

    Code:
                        Message.AppendBoolean((GetBaseItem().InteractionType.ToLower() == "default") ? false : true);

  12. #12
    Sorcerer Supreme capostrike93 is offline
    Member +Rank
    Jan 2011 Join Date
    366Posts

    Re: Items Packet Upgraded!

    Quote Originally Posted by wichard View Post
    Heres my code: (better)

    Code:
    Message.AppendBoolean((GetBaseItem().InteractionType.ToLower() == "default") ? false : true);
    is the same shit

    and if you mean small code would be better

    PHP Code:
    Message.AppendBoolean(GetBaseItem().InteractionType.ToLower() != "default"); 

    but is the same shit..



Advertisement