Exemplo n.º 1
0
        public void Handle(GameClient session, ClientMessage message)
        {
            if (session != null && session.GetHabbo() != null)
            {
                RoomUnitUser roomUser = session.GetHabbo().GetRoomSession().GetRoomUser();
                if (roomUser != null)
                {
                    roomUser.Unidle();

                    int danceId = message.PopWiredInt32();
                    if (danceId < 0 || danceId > 4)
                    {
                        danceId = 0;
                    }

                    if (danceId > 1 && !session.GetHabbo().IsHcOrVIP())
                    {
                        danceId = 0;
                    }

                    roomUser.SetHanditem(0);
                    roomUser.SetDance(danceId);
                }
            }
        }
Exemplo n.º 2
0
        public void Handle(GameClient session, ClientMessage message)
        {
            RoomUnitUser user = session.GetHabbo().GetRoomSession().GetRoomUser();

            if (user != null)
            {
                string type = message.PopStringUntilBreak(null);
                if (type == "CarryItem")
                {
                    user.SetHanditem(0);
                }
                else if (type == "Dance")
                {
                    user.SetDance(0);
                }
            }
        }