Like me if you like this release :D
I was looking around for the mus commands and I want to use some of them.
They aren't working and nobody wanted to help me with this so I fixed them by my self. (Not it's much work or something..)
I'm releasing this fix for people who wan't to use mus commands in their cms :). Here you go.
Replace all using variables with this:
It could be there are unnecessary using variables but that wouldn't make much difference (just for sure) :$.PHP Code:using Butterfly;
using Butterfly.Core;
using Butterfly.HabboHotel.GameClients;
using Butterfly.HabboHotel.Habbo.Users;
using Butterfly.HabboHotel.Items;
using Butterfly.HabboHotel.Rooms;
using Butterfly.HabboHotel.Rooms.RoomIvokedItems;
using Butterfly.Messages;
using Butterfly.Util;
using Database_Manager.Database.Session_Details.Interfaces;
using HabboEvents;
using System;
using System.Collections.Generic;
using System.Data;
using System.Drawing;
using System.IO;
using System.Net.Sockets;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
Go to Butterfly -> Net -> MusConnection.cs
(for people who don't know: the mus command name is the case value between " ")
This is a fix to shutdown your hotel with a mus command.
Add this after the case called 'useralert' who's on line 101:
This is a fix to send a ha with a mus command.PHP Code:case "shutdown":
Logging.LogMessage("Server exiting at " + DateTime.Now);
Logging.DisablePrimaryWriting(true);
Console.WriteLine("The server is saving users furniture, rooms, etc. WAIT FOR THE SERVER TO CLOSE, DO NOT EXIT THE PROCESS IN TASK MANAGER!!");
ButterflyEnvironment.PreformShutDown(true);
return;
Replace the hole case called 'ha' with this:
This is a fix to send one user an alert with a mus command.PHP Code:case "ha":
{
string strucmessage = s;
ServerMessage message = new ServerMessage(Outgoing.BroadcastMessage);
message.AppendString(LanguageLocale.GetValue("hotelallert.notice") + "\r\n" + strucmessage + "\r\n");
ButterflyEnvironment.GetGame().GetClientManager().QueueBroadcaseMessage(message);
return;
}
This command works on an other way. The username and the message must be separated by a ; and not a space.
Replace the hole case called 'useralert' with this:
GreetsPHP Code:case "alert":
{
string str_user = s.Split(new char[] { Convert.ToChar(";") })[0];
string str_message = s.Split(new char[] { Convert.ToChar(";") })[1];
GameClient clientByUsername = null;
clientByUsername = ButterflyEnvironment.GetGame().GetClientManager().GetClientByUsername(str_user);
if (clientByUsername != null)
{
clientByUsername.SendNotif(str_message);
}
return;
}



![[BcStorm] Fix - Mus commands](http://ragezone.com/hyper728.png)


