Looking for these plusemu commands

percocet

Member
Oct 21, 2016
72
16
I know I know, "Do your own research percocet, find these commands yourself or program them yourself duh" give me your best shot, rip me a new asshole for asking this question.

But I swear to you I've spent 3 hours searching on this forum and a rival forum for a :setsh ;pay {user} {currency} x, and :rolldice, :closedice command and I've found nothing.

If you have these commands please feel free to help a brotha out, or give me links to posts with these commands.

Cheers,
 

percocet

Member
Oct 21, 2016
72
16
  • - close dice
  • - stack height
Idk about the other two.
I've tried the "better stack height command". It won't allow stackheight to be updated when a furni is rotated and only moved. And sometimes it doesn't work for some furni to be stacked on one another (e.g. large block ontop of a Blue flower).

And I'll look into the closedice command, thanks
 

Mrmoseby

Active Member
Jul 1, 2016
142
51
Code:
using System;
using System.Linq;
using System.Text;
using System.Collections.Generic;
using Plus.Database.Interfaces;
using Plus.Database.Adapter;
using Plus.HabboHotel.Users.UserDataManagement;
using Plus.HabboHotel.Rooms;
using Plus.HabboHotel.Items;
using Plus.Communication.Packets.Outgoing.Inventory.Purse;
using Plus.Communication.Packets.Outgoing.Notifications;
using Plus.Communication.Packets.Outgoing.Rooms.Notifications;
using Plus.Communication.Packets.Outgoing.Rooms.Session;
namespace Plus.HabboHotel.Rooms.Chat.Commands.User
{
    class setshCommand : IChatCommand
    {
        public string PermissionRequired
        {
            get { return "command_setsh"; }
        }

        public string Parameters
        {
            get { return "%Stack Height%"; }
        }

        public string Description
        {
            get { return "Set an override for your stack height, place furniture at any level."; }
        }

        public void Execute(GameClients.GameClient Session, Rooms.Room CurrentRoom, string[] Params)
        {
            if (Params.Length == 1)
            {
                Session.SendWhisper("Oops, you forgot to mention a stack height (0-40)", 3);
                return;
            }
            double newStack = -1;
            try
            {
                newStack = double.Parse(Params[1]);
            }
            catch
            {
                Session.SendWhisper("Please input a valid stack height (0-40)", 3);
                return;
            }

            if (newStack < 0 || newStack > 40)
            {
                Session.SendWhisper("Invalid stack height, if you need it outside the range looks like your stacking by hand (0-40)", 3);
                return;
            }

            Session.GetHabbo().BoolStack = true;
            Session.GetHabbo().DoubleStack = newStack;
            Session.SendWhisper("Stack height set to " + newStack, 3);
        }


    }
}
Code:
using System;
using System.Linq;
using System.Text;
using System.Collections.Generic;
using Plus.Database.Interfaces;
using Plus.Database.Adapter;
using Plus.HabboHotel.Users.UserDataManagement;
using Plus.HabboHotel.Rooms;
using Plus.HabboHotel.Items;
using Plus.Communication.Packets.Outgoing.Inventory.Purse;
using Plus.Communication.Packets.Outgoing.Notifications;
using Plus.Communication.Packets.Outgoing.Rooms.Notifications;
using Plus.Communication.Packets.Outgoing.Rooms.Session;
namespace Plus.HabboHotel.Rooms.Chat.Commands.User
{
    class stopshCommand : IChatCommand
    {
        public string PermissionRequired
        {
            get { return "command_stopsh"; }
        }

        public string Parameters
        {
            get { return ""; }
        }

        public string Description
        {
            get { return "Stop the active override stack height."; }
        }

        public void Execute(GameClients.GameClient Session, Rooms.Room CurrentRoom, string[] Params)
        {
            if (!Session.GetHabbo().BoolStack)
            {
                Session.SendWhisper("Stack Debugging is already OFF", 3);
                return;
            }

            Session.GetHabbo().BoolStack = false;
            Session.GetHabbo().DoubleStack = 0;
            Session.SendWhisper("Stack Debugging has been turned OFF");

        }
    }
}
Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Plus.HabboHotel.GameClients;
using Plus.Communication.Packets.Outgoing.Inventory.Purse;
using Plus.Communication.Packets.Outgoing.Rooms.Chat;

namespace Plus.HabboHotel.Rooms.Chat.Commands.User.Fun
{
    class PayCommand : IChatCommand
    {
        public string PermissionRequired
        {
            get { return "command_pay"; }
        }
        public string Parameters
        {
            get { return "%username% %currency% %amount%"; }
        }
        public string Description
        {
            get { return "Pay a user credits/diamonds/duckets"; }
        }
        public void Execute(GameClients.GameClient Session, Rooms.Room Room, string[] Params)
        {
            if (Params.Length == 1)
            {
                Session.SendWhisper("Please enter a currency type! credits/diamonds/duckets.");
                return;
            }

            GameClient TargetClient = PlusEnvironment.GetGame().GetClientManager().GetClientByUsername(Params[1]);
            if (TargetClient == null)
            {
                Session.SendWhisper("That user cannot be found!");
                return;
            }

            RoomUser User = Room.GetRoomUserManager().GetRoomUserByHabbo(Session.GetHabbo().Id);
            if (User == null)
                return;
            // Coded by disguised for hobba.
            string Currenices = Params[2];
            switch (Currenices.ToLower())
            {
                case "credits":
                    {
                        int Amount;
                        if (int.TryParse(Params[3], out Amount))
                        {
                            if (Session.GetHabbo().Credits < Amount)
                                return;
                            Session.GetHabbo().Credits -= Amount;
                            Session.SendMessage(new CreditBalanceComposer(Session.GetHabbo().Credits));
                            TargetClient.GetHabbo().Credits += Amount;
                            TargetClient.SendMessage(new CreditBalanceComposer(TargetClient.GetHabbo().Credits));
                            Session.SendMessage(new ShoutComposer(User.VirtualId, "*Pays " + TargetClient.GetHabbo().Username + " " + Amount + " credits*", 0, 0));
                            break;
                        }
                        else
                        {
                            Session.SendWhisper("That seems to be an invalid amount!");
                            break;
                        }
                    }

                case "diamonds":
                    {
                        int Amount;
                        if (int.TryParse(Params[3], out Amount))
                        {
                            if (Session.GetHabbo().Diamonds < Amount)
                                return;
                            Session.GetHabbo().Diamonds -= Amount;
                            Session.SendMessage(new HabboActivityPointNotificationComposer(Session.GetHabbo().Diamonds, Amount, 5));
                            TargetClient.GetHabbo().Diamonds += Amount;
                            TargetClient.SendMessage(new HabboActivityPointNotificationComposer(TargetClient.GetHabbo().Diamonds, Amount, 5));
                            Session.SendMessage(new ShoutComposer(User.VirtualId, "*Pays " + TargetClient.GetHabbo().Username + " " + Amount + " diamonds*", 0, 0));
                            break;
                        }
                        else
                        {
                            Session.SendWhisper("That seems to be an invalid amount!");
                            break;
                        }
                    }

                case "duckets":
                    {
                        int Amount;
                        if (int.TryParse(Params[3], out Amount))
                        {
                            if (Session.GetHabbo().Duckets < Amount)
                                return;
                            Session.GetHabbo().Duckets -= Amount;
                            Session.SendMessage(new HabboActivityPointNotificationComposer(Session.GetHabbo().Duckets, Amount));
                            TargetClient.GetHabbo().Duckets += Amount;
                            TargetClient.SendMessage(new HabboActivityPointNotificationComposer(TargetClient.GetHabbo().Duckets, Amount));
                            Session.SendMessage(new ShoutComposer(User.VirtualId, "*Pays " + TargetClient.GetHabbo().Username + " " + Amount + " duckets*", 0, 0));
                            break;
                        }
                        else
                        {
                            Session.SendWhisper("That seems to be an invalid amount!");
                            break;
                        }
                    }
            }
        }
    }
}
 

percocet

Member
Oct 21, 2016
72
16
This code doesn't work for when i :setsh x, then rotate the furni. I have to move the furni for it to set the stack height higher or lower. How come?
 

MasterJiq

Member
Jul 8, 2016
385
23
  • - close dice
  • - stack height
Idk about the other two.

For the stack height command, it will broke the working ball (the movements only 1 times and can shoot it again)
For the close dice, sometimes it will make the dice just rotating and non-stop following to all dice. I've tested that
 

cammy

Member
May 15, 2014
471
221
Code:
using System;
using System.Linq;
using System.Text;
using System.Collections.Generic;
using Plus.Database.Interfaces;
using Plus.Database.Adapter;
using Plus.HabboHotel.Users.UserDataManagement;
using Plus.HabboHotel.Rooms;
using Plus.HabboHotel.Items;
using Plus.Communication.Packets.Outgoing.Inventory.Purse;
using Plus.Communication.Packets.Outgoing.Notifications;
using Plus.Communication.Packets.Outgoing.Rooms.Notifications;
using Plus.Communication.Packets.Outgoing.Rooms.Session;
namespace Plus.HabboHotel.Rooms.Chat.Commands.User
{
    class setshCommand : IChatCommand
    {
        public string PermissionRequired
        {
            get { return "command_setsh"; }
        }

        public string Parameters
        {
            get { return "%Stack Height%"; }
        }

        public string Description
        {
            get { return "Set an override for your stack height, place furniture at any level."; }
        }

        public void Execute(GameClients.GameClient Session, Rooms.Room CurrentRoom, string[] Params)
        {
            if (Params.Length == 1)
            {
                Session.SendWhisper("Oops, you forgot to mention a stack height (0-40)", 3);
                return;
            }
            double newStack = -1;
            try
            {
                newStack = double.Parse(Params[1]);
            }
            catch
            {
                Session.SendWhisper("Please input a valid stack height (0-40)", 3);
                return;
            }

            if (newStack < 0 || newStack > 40)
            {
                Session.SendWhisper("Invalid stack height, if you need it outside the range looks like your stacking by hand (0-40)", 3);
                return;
            }

            Session.GetHabbo().BoolStack = true;
            Session.GetHabbo().DoubleStack = newStack;
            Session.SendWhisper("Stack height set to " + newStack, 3);
        }


    }
}
Code:
using System;
using System.Linq;
using System.Text;
using System.Collections.Generic;
using Plus.Database.Interfaces;
using Plus.Database.Adapter;
using Plus.HabboHotel.Users.UserDataManagement;
using Plus.HabboHotel.Rooms;
using Plus.HabboHotel.Items;
using Plus.Communication.Packets.Outgoing.Inventory.Purse;
using Plus.Communication.Packets.Outgoing.Notifications;
using Plus.Communication.Packets.Outgoing.Rooms.Notifications;
using Plus.Communication.Packets.Outgoing.Rooms.Session;
namespace Plus.HabboHotel.Rooms.Chat.Commands.User
{
    class stopshCommand : IChatCommand
    {
        public string PermissionRequired
        {
            get { return "command_stopsh"; }
        }

        public string Parameters
        {
            get { return ""; }
        }

        public string Description
        {
            get { return "Stop the active override stack height."; }
        }

        public void Execute(GameClients.GameClient Session, Rooms.Room CurrentRoom, string[] Params)
        {
            if (!Session.GetHabbo().BoolStack)
            {
                Session.SendWhisper("Stack Debugging is already OFF", 3);
                return;
            }

            Session.GetHabbo().BoolStack = false;
            Session.GetHabbo().DoubleStack = 0;
            Session.SendWhisper("Stack Debugging has been turned OFF");

        }
    }
}
Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Plus.HabboHotel.GameClients;
using Plus.Communication.Packets.Outgoing.Inventory.Purse;
using Plus.Communication.Packets.Outgoing.Rooms.Chat;

namespace Plus.HabboHotel.Rooms.Chat.Commands.User.Fun
{
    class PayCommand : IChatCommand
    {
        public string PermissionRequired
        {
            get { return "command_pay"; }
        }
        public string Parameters
        {
            get { return "%username% %currency% %amount%"; }
        }
        public string Description
        {
            get { return "Pay a user credits/diamonds/duckets"; }
        }
        public void Execute(GameClients.GameClient Session, Rooms.Room Room, string[] Params)
        {
            if (Params.Length == 1)
            {
                Session.SendWhisper("Please enter a currency type! credits/diamonds/duckets.");
                return;
            }

            GameClient TargetClient = PlusEnvironment.GetGame().GetClientManager().GetClientByUsername(Params[1]);
            if (TargetClient == null)
            {
                Session.SendWhisper("That user cannot be found!");
                return;
            }

            RoomUser User = Room.GetRoomUserManager().GetRoomUserByHabbo(Session.GetHabbo().Id);
            if (User == null)
                return;
            // Coded by disguised for hobba.
            string Currenices = Params[2];
            switch (Currenices.ToLower())
            {
                case "credits":
                    {
                        int Amount;
                        if (int.TryParse(Params[3], out Amount))
                        {
                            if (Session.GetHabbo().Credits < Amount)
                                return;
                            Session.GetHabbo().Credits -= Amount;
                            Session.SendMessage(new CreditBalanceComposer(Session.GetHabbo().Credits));
                            TargetClient.GetHabbo().Credits += Amount;
                            TargetClient.SendMessage(new CreditBalanceComposer(TargetClient.GetHabbo().Credits));
                            Session.SendMessage(new ShoutComposer(User.VirtualId, "*Pays " + TargetClient.GetHabbo().Username + " " + Amount + " credits*", 0, 0));
                            break;
                        }
                        else
                        {
                            Session.SendWhisper("That seems to be an invalid amount!");
                            break;
                        }
                    }

                case "diamonds":
                    {
                        int Amount;
                        if (int.TryParse(Params[3], out Amount))
                        {
                            if (Session.GetHabbo().Diamonds < Amount)
                                return;
                            Session.GetHabbo().Diamonds -= Amount;
                            Session.SendMessage(new HabboActivityPointNotificationComposer(Session.GetHabbo().Diamonds, Amount, 5));
                            TargetClient.GetHabbo().Diamonds += Amount;
                            TargetClient.SendMessage(new HabboActivityPointNotificationComposer(TargetClient.GetHabbo().Diamonds, Amount, 5));
                            Session.SendMessage(new ShoutComposer(User.VirtualId, "*Pays " + TargetClient.GetHabbo().Username + " " + Amount + " diamonds*", 0, 0));
                            break;
                        }
                        else
                        {
                            Session.SendWhisper("That seems to be an invalid amount!");
                            break;
                        }
                    }

                case "duckets":
                    {
                        int Amount;
                        if (int.TryParse(Params[3], out Amount))
                        {
                            if (Session.GetHabbo().Duckets < Amount)
                                return;
                            Session.GetHabbo().Duckets -= Amount;
                            Session.SendMessage(new HabboActivityPointNotificationComposer(Session.GetHabbo().Duckets, Amount));
                            TargetClient.GetHabbo().Duckets += Amount;
                            TargetClient.SendMessage(new HabboActivityPointNotificationComposer(TargetClient.GetHabbo().Duckets, Amount));
                            Session.SendMessage(new ShoutComposer(User.VirtualId, "*Pays " + TargetClient.GetHabbo().Username + " " + Amount + " duckets*", 0, 0));
                            break;
                        }
                        else
                        {
                            Session.SendWhisper("That seems to be an invalid amount!");
                            break;
                        }
                    }
            }
        }
    }
}
The *Pays x credits* message is client side, how do I make it server side? (It only appears for the person sending the currency, not the whole room.)
 

Users who are viewing this thread

Top