[BcStorm] Fix - Mus commands

Results 1 to 7 of 7
  1. #1
    Developer PremiumEye is offline
    MemberRank
    Nov 2011 Join Date
    NetherlandsLocation
    550Posts

    [BcStorm] Fix - Mus commands

    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:

    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
    It could be there are unnecessary using variables but that wouldn't make much difference (just for sure) :$.

    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:

    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; 
    This is a fix to send a ha with a mus command.
    Replace the hole case called 'ha' with this:

    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 is a fix to send one user an alert with a mus command.
    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:

    PHP 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;
                    } 
    Greets


  2. #2

    Re: [BcStorm] Fix - Mus commands

    Nice fixes! Added to my emulator.

  3. #3
    Enthusiast xLiionel is offline
    MemberRank
    Sep 2010 Join Date
    36Posts

    Re: [BcStorm] Fix - Mus commands

    Quote Originally Posted by Jubatus View Post
    Nice fixes! Added to my emulator.

    Spam, spam, everywhere.

  4. #4

    Re: [BcStorm] Fix - Mus commands

    Quote Originally Posted by xLiionel View Post
    Spam, spam, everywhere.
    That was spam, as well.

    And I wasn't spamming, I was telling him that it was a nice fix and I was adding it to my emulator. Enough with your bullshit.

  5. #5
    ส็็็็็็็ Bloodraven is offline
    MemberRank
    Sep 2009 Join Date
    AntarcticaLocation
    2,414Posts

    Re: [BcStorm] Fix - Mus commands

    Quote Originally Posted by xLiionel View Post
    Spam, spam, everywhere.
    Cough Cough Cough, Bullshit everywhere.

    http://forum.ragezone.com/search.php?searchid=500645

    And more notable:

    http://forum.ragezone.com/f353/r63-s...5/#post6332951

    AND!!!

    http://forum.ragezone.com/f353/anna-...9/#post6314416

    Liars liars EVERYFUCKINGWHERE!

  6. #6
    Run, but I'll find you. Ddos Attack is offline
    MemberRank
    Jan 2011 Join Date
    AustraliaLocation
    908Posts

    Re: [BcStorm] Fix - Mus commands

    Nice fixes. Gonna use these :)

  7. #7
    Banned MistakeDEV is offline
    BannedRank
    Feb 2013 Join Date
    In a RevCMSLocation
    40Posts

    Re: [BcStorm] Fix - Mus commands

    Nice kid!



Advertisement