Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Server Development
Habbo Retros
Habbo Q&A
Looking for these plusemu commands
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Mrmoseby" data-source="post: 408325" data-attributes="member: 69441"><p>[SPOILER="Long code"][CODE]using System;</p><p>using System.Linq;</p><p>using System.Text;</p><p>using System.Collections.Generic;</p><p>using Plus.Database.Interfaces;</p><p>using Plus.Database.Adapter;</p><p>using Plus.HabboHotel.Users.UserDataManagement;</p><p>using Plus.HabboHotel.Rooms;</p><p>using Plus.HabboHotel.Items;</p><p>using Plus.Communication.Packets.Outgoing.Inventory.Purse;</p><p>using Plus.Communication.Packets.Outgoing.Notifications;</p><p>using Plus.Communication.Packets.Outgoing.Rooms.Notifications;</p><p>using Plus.Communication.Packets.Outgoing.Rooms.Session;</p><p>namespace Plus.HabboHotel.Rooms.Chat.Commands.User</p><p>{</p><p> class setshCommand : IChatCommand</p><p> {</p><p> public string PermissionRequired</p><p> {</p><p> get { return "command_setsh"; }</p><p> }</p><p></p><p> public string Parameters</p><p> {</p><p> get { return "%Stack Height%"; }</p><p> }</p><p></p><p> public string Description</p><p> {</p><p> get { return "Set an override for your stack height, place furniture at any level."; }</p><p> }</p><p></p><p> public void Execute(GameClients.GameClient Session, Rooms.Room CurrentRoom, string[] Params)</p><p> {</p><p> if (Params.Length == 1)</p><p> {</p><p> Session.SendWhisper("Oops, you forgot to mention a stack height (0-40)", 3);</p><p> return;</p><p> }</p><p> double newStack = -1;</p><p> try</p><p> {</p><p> newStack = double.Parse(Params[1]);</p><p> }</p><p> catch</p><p> {</p><p> Session.SendWhisper("Please input a valid stack height (0-40)", 3);</p><p> return;</p><p> }</p><p></p><p> if (newStack < 0 || newStack > 40)</p><p> {</p><p> Session.SendWhisper("Invalid stack height, if you need it outside the range looks like your stacking by hand (0-40)", 3);</p><p> return;</p><p> }</p><p></p><p> Session.GetHabbo().BoolStack = true;</p><p> Session.GetHabbo().DoubleStack = newStack;</p><p> Session.SendWhisper("Stack height set to " + newStack, 3);</p><p> }</p><p></p><p></p><p> }</p><p>}</p><p>[/CODE]</p><p>[CODE]using System;</p><p>using System.Linq;</p><p>using System.Text;</p><p>using System.Collections.Generic;</p><p>using Plus.Database.Interfaces;</p><p>using Plus.Database.Adapter;</p><p>using Plus.HabboHotel.Users.UserDataManagement;</p><p>using Plus.HabboHotel.Rooms;</p><p>using Plus.HabboHotel.Items;</p><p>using Plus.Communication.Packets.Outgoing.Inventory.Purse;</p><p>using Plus.Communication.Packets.Outgoing.Notifications;</p><p>using Plus.Communication.Packets.Outgoing.Rooms.Notifications;</p><p>using Plus.Communication.Packets.Outgoing.Rooms.Session;</p><p>namespace Plus.HabboHotel.Rooms.Chat.Commands.User</p><p>{</p><p> class stopshCommand : IChatCommand</p><p> {</p><p> public string PermissionRequired</p><p> {</p><p> get { return "command_stopsh"; }</p><p> }</p><p></p><p> public string Parameters</p><p> {</p><p> get { return ""; }</p><p> }</p><p></p><p> public string Description</p><p> {</p><p> get { return "Stop the active override stack height."; }</p><p> }</p><p></p><p> public void Execute(GameClients.GameClient Session, Rooms.Room CurrentRoom, string[] Params)</p><p> {</p><p> if (!Session.GetHabbo().BoolStack)</p><p> {</p><p> Session.SendWhisper("Stack Debugging is already OFF", 3);</p><p> return;</p><p> }</p><p></p><p> Session.GetHabbo().BoolStack = false;</p><p> Session.GetHabbo().DoubleStack = 0;</p><p> Session.SendWhisper("Stack Debugging has been turned OFF");</p><p></p><p> }</p><p> }</p><p>}[/CODE]</p><p>[CODE]using System;</p><p>using System.Collections.Generic;</p><p>using System.Linq;</p><p>using System.Text;</p><p>using System.Threading.Tasks;</p><p>using Plus.HabboHotel.GameClients;</p><p>using Plus.Communication.Packets.Outgoing.Inventory.Purse;</p><p>using Plus.Communication.Packets.Outgoing.Rooms.Chat;</p><p></p><p>namespace Plus.HabboHotel.Rooms.Chat.Commands.User.Fun</p><p>{</p><p> class PayCommand : IChatCommand</p><p> {</p><p> public string PermissionRequired</p><p> {</p><p> get { return "command_pay"; }</p><p> }</p><p> public string Parameters</p><p> {</p><p> get { return "%username% %currency% %amount%"; }</p><p> }</p><p> public string Description</p><p> {</p><p> get { return "Pay a user credits/diamonds/duckets"; }</p><p> }</p><p> public void Execute(GameClients.GameClient Session, Rooms.Room Room, string[] Params)</p><p> {</p><p> if (Params.Length == 1)</p><p> {</p><p> Session.SendWhisper("Please enter a currency type! credits/diamonds/duckets.");</p><p> return;</p><p> }</p><p></p><p> GameClient TargetClient = PlusEnvironment.GetGame().GetClientManager().GetClientByUsername(Params[1]);</p><p> if (TargetClient == null)</p><p> {</p><p> Session.SendWhisper("That user cannot be found!");</p><p> return;</p><p> }</p><p></p><p> RoomUser User = Room.GetRoomUserManager().GetRoomUserByHabbo(Session.GetHabbo().Id);</p><p> if (User == null)</p><p> return;</p><p> // Coded by disguised for hobba.</p><p> string Currenices = Params[2];</p><p> switch (Currenices.ToLower())</p><p> {</p><p> case "credits":</p><p> {</p><p> int Amount;</p><p> if (int.TryParse(Params[3], out Amount))</p><p> {</p><p> if (Session.GetHabbo().Credits < Amount)</p><p> return;</p><p> Session.GetHabbo().Credits -= Amount;</p><p> Session.SendMessage(new CreditBalanceComposer(Session.GetHabbo().Credits));</p><p> TargetClient.GetHabbo().Credits += Amount;</p><p> TargetClient.SendMessage(new CreditBalanceComposer(TargetClient.GetHabbo().Credits));</p><p> Session.SendMessage(new ShoutComposer(User.VirtualId, "*Pays " + TargetClient.GetHabbo().Username + " " + Amount + " credits*", 0, 0));</p><p> break;</p><p> }</p><p> else</p><p> {</p><p> Session.SendWhisper("That seems to be an invalid amount!");</p><p> break;</p><p> }</p><p> }</p><p></p><p> case "diamonds":</p><p> {</p><p> int Amount;</p><p> if (int.TryParse(Params[3], out Amount))</p><p> {</p><p> if (Session.GetHabbo().Diamonds < Amount)</p><p> return;</p><p> Session.GetHabbo().Diamonds -= Amount;</p><p> Session.SendMessage(new HabboActivityPointNotificationComposer(Session.GetHabbo().Diamonds, Amount, 5));</p><p> TargetClient.GetHabbo().Diamonds += Amount;</p><p> TargetClient.SendMessage(new HabboActivityPointNotificationComposer(TargetClient.GetHabbo().Diamonds, Amount, 5));</p><p> Session.SendMessage(new ShoutComposer(User.VirtualId, "*Pays " + TargetClient.GetHabbo().Username + " " + Amount + " diamonds*", 0, 0));</p><p> break;</p><p> }</p><p> else</p><p> {</p><p> Session.SendWhisper("That seems to be an invalid amount!");</p><p> break;</p><p> }</p><p> }</p><p></p><p> case "duckets":</p><p> {</p><p> int Amount;</p><p> if (int.TryParse(Params[3], out Amount))</p><p> {</p><p> if (Session.GetHabbo().Duckets < Amount)</p><p> return;</p><p> Session.GetHabbo().Duckets -= Amount;</p><p> Session.SendMessage(new HabboActivityPointNotificationComposer(Session.GetHabbo().Duckets, Amount));</p><p> TargetClient.GetHabbo().Duckets += Amount;</p><p> TargetClient.SendMessage(new HabboActivityPointNotificationComposer(TargetClient.GetHabbo().Duckets, Amount));</p><p> Session.SendMessage(new ShoutComposer(User.VirtualId, "*Pays " + TargetClient.GetHabbo().Username + " " + Amount + " duckets*", 0, 0));</p><p> break;</p><p> }</p><p> else</p><p> {</p><p> Session.SendWhisper("That seems to be an invalid amount!");</p><p> break;</p><p> }</p><p> }</p><p> }</p><p> }</p><p> }</p><p>}[/CODE]</p><p>[/SPOILER]</p></blockquote><p></p>
[QUOTE="Mrmoseby, post: 408325, member: 69441"] [SPOILER="Long code"][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] [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] [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; } } } } } }[/CODE] [/SPOILER] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
Looking for these plusemu commands
Top