PlusEmu - Sayall & Eha command

Page 1 of 3 123 LastLast
Results 1 to 15 of 33
  1. #1
    Member Yadz is offline
    MemberRank
    May 2013 Join Date
    51Posts

    PlusEmu - Sayall, eha, summonall & signall command

    I've always found those commands useful, so I decided to share it with you guys.

    eha;
    Spoiler:
    Code:
    #region Events Hotel Alert (:eha)                
    case "eha":
                        if (Session.GetHabbo().HasCmd("eha"))
                        {
                            string Notice = MergeParams(Params, 1);
    
    
                            ServerMessage HotelAlert = new ServerMessage(Outgoing.BroadcastMessage);
                            HotelAlert.AppendString("Follow " + Session.GetHabbo().Username + " to take part in an official Event! Win prizes! \r\n- " + Session.GetHabbo().Username);
    
    
                            SilverwaveEnvironment.GetGame().GetClientManager().QueueBroadcaseMessage(HotelAlert);
    
    
                            SilverwaveEnvironment.GetGame().GetModerationTool().LogStaffEntry(Session.GetHabbo().Username, string.Empty, "HotelAlert", "Hotel alert [" + Notice + "]");
                            return true;
                        }
                        return true;
    
    
                    #endregion


    sayall;
    Spoiler:

    Code:
    #region Say All (:sayall)                
    case "sayall":
                        if (Session.GetHabbo().HasCmd("sayall"))
                        {
                            Room currentRoom2 = Session.GetHabbo().CurrentRoom;
                            if (currentRoom2 != null)
                            {
                                string Message3 = ChatCommandHandler.MergeParams(Params, 1);
                                if (Message3 != "")
                                {
                                    foreach (RoomUser roomUser2 in currentRoom2.GetRoomUserManager().GetRoomUsers())
                                        roomUser2.Chat(roomUser2.GetClient(), Message3, false, 0);
                                }
                            }
                            return true;
                        }
                        else
                            return true;
    
    
                    #endregion


    :Summonall - Credits to Power69
    Spoiler:

    Code:
    case "summonall":                    
    {
                            Room currentRoom = Session.GetHabbo().CurrentRoom;
                            List<RoomUser> roomUsers = currentRoom.GetRoomUserManager().GetRoomUsers();
                            if (Session.GetHabbo().HasCmd("summonall"))
                            {
                                foreach (GameClients.GameClient c in SilverwaveEnvironment.GetGame().GetClientManager().clients.Values)
                                {
                                    if (c.GetHabbo() != null)
                                    {
                                        if (c.GetHabbo().Username == Session.GetHabbo().Username)
                                        {
                                            Session.SendNotif("You have summoned everyone");
                                        }
                                        else
                                        {
                                            c.GetMessageHandler().PrepareRoomForUser(currentRoom.RoomId, currentRoom.Password);
                                            c.SendNotif(Session.GetHabbo().Username + "Has Summoned you");
                                        }
                                    }
                                }
                            }
    
    
                            return true;
    
                        }


    signall;
    Spoiler:

    Code:
    #region                
    case "signall":
                        if (Session.GetHabbo().HasCmd("signall"))
                        {
                            Room currentRoom2 = Session.GetHabbo().CurrentRoom;
                            if (currentRoom2 != null)
                            {
                                int result = 0;
                                if (int.TryParse(Params[1], out result))
                                {
                                    foreach (RoomUser roomUser2 in currentRoom2.GetRoomUserManager().GetRoomUsers())
                                    {
                                        roomUser2.AddStatus("sign", Convert.ToString(result));
                                        roomUser2.UpdateNeeded = true;
                                    }
                                }
                            }
                            return true;
                        }
                        else
                            return true;
                    #endregion


    :sa fix;
    Spoiler:

    Code:
    #region Staff Alert (:sa)                
    case "sa":
                        {
                            if (Session.GetHabbo().HasCmd("sa"))
                            {
                                string Message = "Message from staff: \n" + MergeParams(Params, 1) + "\n - " + Session.GetHabbo().Username;
                                ServerMessage message = new ServerMessage(Outgoing.BroadcastMessage);
                                message.AppendString(Message);
                                SilverwaveEnvironment.GetGame().GetClientManager().StaffAlert(message);
    
    SilverwaveEnvironment.GetGame().GetModerationTool().LogStaffEntry(Session.GetHabbo().Username, string.Empty, "StaffAlert", "Staff alert [" + Message + "]");
                            }
                            return true;
                        }
                    #endregion


    For those who don't know how to add the commands, the only thing you need to do is copy the code and add it to ChatCommandHandler.cs.

    If you like it just hit the like button, If not just leave the thread and move on.
    Last edited by Yadz; 05-04-14 at 02:36 AM.


  2. #2
    ~|=_=|~ Receiver is offline
    MemberRank
    Sep 2013 Join Date
    PlutoLocation
    624Posts

    Re: PlusEmu - sayall & eha command

    The sayall command is interesting to have but, i'm not sure about that eha command what exactly does it do and whats the difference from it using the ha command?

  3. #3
    Account Upgraded | Title Enabled! streamhotel is offline
    MemberRank
    Apr 2012 Join Date
    EarthLocation
    511Posts

    Re: PlusEmu - sayall & eha command

    Thanks, I've tested it. But is that normal that there not other commands stays in ChatCommandHandler?
    Last edited by streamhotel; 09-03-14 at 03:23 PM.

  4. #4
    Member Yadz is offline
    MemberRank
    May 2013 Join Date
    51Posts

    Re: PlusEmu - sayall & eha command

    Quote Originally Posted by Receiver View Post
    The sayall command is interesting to have but, i'm not sure about that eha command what exactly does it do and whats the difference from it using the ha command?

    Maybe you dont want the mods to have ha, so you could give them eha.
    Last edited by Yadz; 09-03-14 at 03:40 PM.

  5. #5
    Member TexJox is offline
    MemberRank
    Nov 2013 Join Date
    52Posts

    Re: PlusEmu - sayall & eha command

    @Receiver Maybe you don't want to give you're Moderators or Event staff the ha command, So instead you give them the event alert (eha) command :)

  6. #6
    Unspoiled Perfection AKllX is offline
    MemberRank
    Aug 2007 Join Date
    @ akllxprojectLocation
    366Posts

    Re: PlusEmu - sayall & eha command

    Once I coded a cool comand. It was :summon. I just summoned every user to my room ignoring the room users limit (~250). Totally crazy, you should try

  7. #7
    Member TexJox is offline
    MemberRank
    Nov 2013 Join Date
    52Posts

    Re: PlusEmu - sayall & eha command

    Quote Originally Posted by AKllX View Post
    Once I coded a cool comand. It was :summon. I just summoned every user to my room ignoring the room users limit (~250). Totally crazy, you should try
    What u mean? I know you're not talking to be but want to understand lol

  8. #8
    Typescript XOXO LeChris is offline
    MemberRank
    Sep 2011 Join Date
    749Posts

    Re: PlusEmu - Sayall & Eha command

    Is it possible to add these commands to Phoenix, and if it is...how would I go about doing so.

  9. #9
    ~|=_=|~ Receiver is offline
    MemberRank
    Sep 2013 Join Date
    PlutoLocation
    624Posts

    Re: PlusEmu - sayall &amp; eha command

    Quote Originally Posted by Yadz View Post

    Maybe you dont want the mods to have ha, so you could give them eha.
    Oh so it doesn't let you put any message like it gives that message automatically or you still type in something if so then that would be the same thing as a ha

    - - - Updated - - -

    Quote Originally Posted by AKllX View Post
    Once I coded a cool comand. It was :summon. I just summoned every user to my room ignoring the room users limit (~250). Totally crazy, you should try
    That seems very cool. Like is it where you do a command and it summons every user on the hotel to the room you are in? If it is would be nice to share.

  10. #10
    Member Yadz is offline
    MemberRank
    May 2013 Join Date
    51Posts

    Re: PlusEmu - sayall &amp; eha command

    Quote Originally Posted by Receiver View Post
    Oh so it doesn't let you put any message like it gives that message automatically or you still type in something if so then that would be the same thing as a ha

    - - - Updated - - -


    That seems very cool. Like is it where you do a command and it summons every user on the hotel to the room you are in? If it is would be nice to share.
    Na it dosen't let you put any messages, it gives that message automatically.

  11. #11
    Member TexJox is offline
    MemberRank
    Nov 2013 Join Date
    52Posts

    Re: PlusEmu - Sayall & Eha command

    Never mind
    Last edited by TexJox; 09-03-14 at 07:55 PM. Reason: I'm so stupid lol

  12. #12
    Not so spooky... MrSpooks is offline
    MemberRank
    May 2010 Join Date
    Under a rockLocation
    1,068Posts

    Re: PlusEmu - Sayall & Eha command

    I like the idea cheers dude

  13. #13
    The Legend Returns vista4life is offline
    MemberRank
    Mar 2007 Join Date
    The NetherlandsLocation
    843Posts

    Re: PlusEmu - Sayall & Eha command

    #region Events Hotel Alert (:eha)
    case "eha":
    if (Session.GetHabbo().HasCmd("eha"))
    {
    string Notice = MergeParams(Params, 1);

    ServerMessage HotelAlert = new ServerMessage(Outgoing.BroadcastMessage);
    HotelAlert.AppendString(Notice);

    SilverwaveEnvironment.GetGame().GetClientManager().QueueBroadcaseMessage(HotelAlert);

    SilverwaveEnvironment.GetGame().GetModerationTool().LogStaffEntry(Session.GetHabbo().Username, string.Empty, "HotelAlert", "Hotel alert [" + Notice + "]");
    return true;
    }
    return true;

    #endregion

  14. #14
    Member TexJox is offline
    MemberRank
    Nov 2013 Join Date
    52Posts

    Re: PlusEmu - Sayall & Eha command

    Quote Originally Posted by vista4life View Post
    #region Events Hotel Alert (:eha)
    case "eha":
    if (Session.GetHabbo().HasCmd("eha"))
    {
    string Notice = MergeParams(Params, 1);

    ServerMessage HotelAlert = new ServerMessage(Outgoing.BroadcastMessage);
    HotelAlert.AppendString(Notice);

    SilverwaveEnvironment.GetGame().GetClientManager().QueueBroadcaseMessage(HotelAlert);

    SilverwaveEnvironment.GetGame().GetModerationTool().LogStaffEntry(Session.GetHabbo().Username, string.Empty, "HotelAlert", "Hotel alert [" + Notice + "]");
    return true;
    }
    return true;

    #endregion
    It's missing some codes from your's

  15. #15
    Novice Bnar is offline
    MemberRank
    Mar 2014 Join Date
    4Posts

    Re: PlusEmu - Sayall & Eha command

    Thank's for these release!!! keep it up



Page 1 of 3 123 LastLast

Advertisement