[PLUS] Add Button In Toolbar

Status
Not open for further replies.

Karel

Member
May 15, 2019
80
13
Hii

Lately i've been trying to get the helpertool working. I updated to a revision with the helper tool packets in it. It seems to work but now I want the guides to say whether they are on duty or not, but the helpertool button in the bottom toolbar doesn't show/exist. How can I make it appear? If it doesn't exist how do I add it so that it is clickable and can open windows?

Thank you in advance!
 

Karel

Member
May 15, 2019
80
13
Code:
using System;
using System.Collections.Generic;

using Plus.HabboHotel.Users;

namespace Plus.Communication.Packets.Outgoing.Handshake
{
    public class UserPerksComposer : ServerPacket
    {
        public UserPerksComposer(Habbo Habbo)
            : base(ServerPacketHeader.UserPerksMessageComposer)
        {
            base.WriteInteger(15); // Count
            base.WriteString("USE_GUIDE_TOOL");
            base.WriteString("");
            base.WriteBoolean(false);
            base.WriteString("GIVE_GUIDE_TOURS");
            base.WriteString("requirement.unfulfilled.helper_le");
            base.WriteBoolean(false);
            base.WriteString("JUDGE_CHAT_REVIEWS");
            base.WriteString(""); // ??
            base.WriteBoolean(true);
            base.WriteString("VOTE_IN_COMPETITIONS");
            base.WriteString(""); // ??
            base.WriteBoolean(true);
            base.WriteString("CALL_ON_HELPERS");
            base.WriteString(""); // ??
            base.WriteBoolean(false);
            base.WriteString("CITIZEN");
            base.WriteString(""); // ??
            base.WriteBoolean(true);
            base.WriteString("TRADE");
            base.WriteString(""); // ??
            base.WriteBoolean(true);
            base.WriteString("HEIGHTMAP_EDITOR_BETA");
            base.WriteString(""); // ??
            base.WriteBoolean(false);
            base.WriteString("EXPERIMENTAL_CHAT_BETA");
            base.WriteString("requirement.unfulfilled.helper_level_2");
            base.WriteBoolean(true);
            base.WriteString("EXPERIMENTAL_TOOLBAR");
            base.WriteString(""); // ??
            base.WriteBoolean(true);
            base.WriteString("BUILDER_AT_WORK");
            base.WriteString(""); // ??
            base.WriteBoolean(true);
            base.WriteString("NAVIGATOR_PHASE_ONE_2014");
            base.WriteString(""); // ??
            base.WriteBoolean(false);
            base.WriteString("CAMERA");
            base.WriteString(""); // ??
            base.WriteBoolean(false);
            base.WriteString("NAVIGATOR_PHASE_TWO_2014");
            base.WriteString(""); // ??
            base.WriteBoolean(true);
            base.WriteString("MOUSE_ZOOM");
            base.WriteString(""); // ??
            base.WriteBoolean(true);
            base.WriteString("NAVIGATOR_ROOM_THUMBNAIL_CAMERA");
            base.WriteString(""); // ??
            base.WriteBoolean(false);
        }
    }
}
 

Pollak

Active Member
Oct 12, 2017
161
51
Right.

This:
base.WriteString("USE_GUIDE_TOOL");
base.WriteString("");
base.WriteBoolean(false);

Replace with:

C#:
base.WriteString("USE_GUIDE_TOOL");
base.WriteString("");
if (Habbo.Rank > 2 || Habbo._guidelevel > 0)
            {
                base.WriteBoolean(true);
            }
            else
            {
                base.WriteBoolean(false);
            }
 
Status
Not open for further replies.

Users who are viewing this thread

Top