[R63] New Ha Message (New Style)

Page 1 of 2 12 LastLast
Results 1 to 25 of 31
  1. #1
    Proficient Member Marlon Colhado is offline
    MemberRank
    Jan 2009 Join Date
    BrazilLocation
    178Posts

    [R63] New Ha Message (New Style)

    Hello to all of Ragezone
    First, sorry my English because I'm Brazilian!
    O'que I'll post here has 70% of my credit, because 30% of the new code is the Message of day

    First the prints:



    Now I'll provide the code, please do not remove the credits!
    In GameClient.cs Search:

    public void SendNotif(string Message)

    Replace this:
    Code:
    public void SendNotif(string Message)
            {
                SendNotif(Message, 0);
            }
    
            public void SendNotif(string Message, Boolean Modus)
            {
                SendNotif(Message, UberEnvironment.BoolToEnum(Modus));
            }
    
            public void SendNotif(string Message, int Modus)
            {
                ServerMessage nMessage = new ServerMessage();
    
                switch (Modus)
                {
                    case 0: //Default
                        nMessage.Init(161);
                    break;
    
                    case 1: //From Hotel Manager
                        nMessage.Init(139);
                    break;
    
                    case 2: //Message of the day
                        nMessage.Init(810);
                        nMessage.AppendUInt(1);
                    break;
                }
                nMessage.AppendStringWithBreak(Message);
                GetConnection().SendMessage(nMessage);
            }
    
            public void SendNotif(string Message, string Url)
            {
                ServerMessage nMessage = new ServerMessage(161);
                nMessage.AppendStringWithBreak(Message);
                nMessage.AppendStringWithBreak(Url);
                GetConnection().SendMessage(nMessage);
            }
    In ChatCommandHandler.cs Search:
    case "ha":

    Add the code below:
    Code:
                        case "newha":
                            // Alerta o hotel em novo estilo :newha <mensagem>
                            // Creditos by: Marlon Colhado
                            if (Session.GetHabbo().HasFuse("fuse_admin"))
                            {
                                string Notice = Input.Substring(3);
                                Session.SendNotif(" " + Notice + "\r\n-" + Session.GetHabbo().Username, 2);
    
                                return true;
                            }
                            return false;
    Hope you enjoy, and sorry again for my english, I'm Brazilian

    -Marlon Colhado


  2. #2
    The one and only! Hejula is offline
    MemberRank
    Nov 2008 Join Date
    4,128Posts

    Re: [R63] New Ha Message (New Style)

    What's the point in sending a "Message of the Day" as a hotel alert, the whole point of Message of the Day is that it is changed each day.

  3. #3
    Enthusiast lilhost is offline
    MemberRank
    Oct 2010 Join Date
    31Posts

    Re: [R63] New Ha Message (New Style)

    this is nice ;d

  4. #4
    Proficient Member Marlon Colhado is offline
    MemberRank
    Jan 2009 Join Date
    BrazilLocation
    178Posts

    Re: [R63] New Ha Message (New Style)

    Quote Originally Posted by Hejula View Post
    What's the point in sending a "Message of the Day" as a hotel alert, the whole point of Message of the Day is that it is changed each day.
    In my topic, not about the message of the day, but the new style to the :ha

    -Marlon Colhado

    ---------- Post added at 06:45 PM ---------- Previous post was at 06:44 PM ----------

    Quote Originally Posted by Hejula View Post
    What's the point in sending a "Message of the Day" as a hotel alert, the whole point of Message of the Day is that it is changed each day.
    In my topic, not about the message of the day, but the new style to the :ha

    -Marlon Colhado

  5. #5
    The one and only! Hejula is offline
    MemberRank
    Nov 2008 Join Date
    4,128Posts

    Re: [R63] New Ha Message (New Style)

    Quote Originally Posted by kiddoidao3d View Post
    In my topic, not about the message of the day, but the new style to the :ha

    -Marlon Colhado

    ---------- Post added at 06:45 PM ---------- Previous post was at 06:44 PM ----------



    In my topic, not about the message of the day, but the new style to the :ha

    -Marlon Colhado
    It isn't a new style hotel alert, you are just sending the hotel alert through the message of the day window. Pointless.

  6. #6
    Dirty capitalists. X1M! is offline
    MemberRank
    Dec 2008 Join Date
    450Posts

    Re: [R63] New Ha Message (New Style)

    Hejula has a point, but though it does look nice in some aspects.
    Well done, keep it coming.

  7. #7
    Banned Someuser is offline
    BannedRank
    Aug 2010 Join Date
    466Posts

    Re: [R63] New Ha Message (New Style)

    Nice rip & simple edit from Bifi2000 :]

  8. #8
    Member lars1080 is offline
    MemberRank
    Apr 2010 Join Date
    99Posts

    Re: [R63] New Ha Message (New Style)

    Awsome

  9. #9
    swagggggg Livar is offline
    MemberRank
    Oct 2008 Join Date
    United KingdomLocation
    2,272Posts

    Re: [R63] New Ha Message (New Style)

    Sexy, thanks!

  10. #10
    Alpha Member Zak© is offline
    MemberRank
    Oct 2007 Join Date
    2,693Posts

    Re: [R63] New Ha Message (New Style)

    Bifi did this?

  11. #11
    Banned Someuser is offline
    BannedRank
    Aug 2010 Join Date
    466Posts

    Re: [R63] New Ha Message (New Style)

    Quote Originally Posted by Žak™ View Post
    Bifi did this?
    Already said that.

  12. #12
    Proficient Member superdaan44 is offline
    MemberRank
    Jan 2009 Join Date
    in a chest.Location
    182Posts

    Re: [R63] New Ha Message (New Style)

    You don't have to think so difficult,
    You also could change like this :

    Searh the case "ha" in Chatcommandhandler.cs
    You will see under this

    ServerMessage HotelAlert = new ServerMessage(139);

    Replace the 139 for 810 like this

    ServerMessage HotelAlert = new ServerMessage(810);

    And you will get exacly the same..

  13. #13
    Enthusiast 0cean is offline
    MemberRank
    Sep 2010 Join Date
    35Posts

    Re: [R63] New Ha Message (New Style)

    sweeet :]

  14. #14
    Alpha Member Moogly is offline
    MemberRank
    Feb 2008 Join Date
    Pool LidoLocation
    2,322Posts

    Re: [R63] New Ha Message (New Style)

    Quote Originally Posted by Hejula View Post
    It isn't a new style hotel alert, you are just sending the hotel alert through the message of the day window. Pointless.
    Just because it's called Message Of The Day doesn't mean you have to use it as if that were its only purpose. So stop bitching about it.

  15. #15
    Not active anymore! Winter is offline
    MemberRank
    Aug 2009 Join Date
    AustraliaLocation
    461Posts

    Re: [R63] New Ha Message (New Style)

    Meh it's alright. Thanks for the contribution :)

  16. #16
    Proficient Member Marlon Colhado is offline
    MemberRank
    Jan 2009 Join Date
    BrazilLocation
    178Posts

    Re: [R63] New Ha Message (New Style)

    Thanks for all comments :D

  17. #17
    GreenMaX keven007 is offline
    MemberRank
    Jul 2008 Join Date
    The NetherlandsLocation
    275Posts

    Re: [R63] New Ha Message (New Style)

    First, give credits to Bifi(He coded the sendnotif strings etc.) Second, this is noobisch code. You can too do go to the ha command search for sendNotif([heere is something]) and place ,2 by it.

  18. #18
    Account Upgraded | Title Enabled! MikeDavies is offline
    MemberRank
    Aug 2010 Join Date
    WalesLocation
    629Posts

    Re: [R63] New Ha Message (New Style)

    Quote Originally Posted by kiddoidao3d View Post
    Hello to all of Ragezone
    First, sorry my English because I'm Brazilian!
    O'que I'll post here has 70% of my credit, because 30% of the new code is the Message of day

    First the prints:



    Now I'll provide the code, please do not remove the credits!
    In GameClient.cs Search:

    public void SendNotif(string Message)

    Replace this:
    Code:
    public void SendNotif(string Message)
            {
                SendNotif(Message, 0);
            }
    
            public void SendNotif(string Message, Boolean Modus)
            {
                SendNotif(Message, UberEnvironment.BoolToEnum(Modus));
            }
    
            public void SendNotif(string Message, int Modus)
            {
                ServerMessage nMessage = new ServerMessage();
    
                switch (Modus)
                {
                    case 0: //Default
                        nMessage.Init(161);
                    break;
    
                    case 1: //From Hotel Manager
                        nMessage.Init(139);
                    break;
    
                    case 2: //Message of the day
                        nMessage.Init(810);
                        nMessage.AppendUInt(1);
                    break;
                }
                nMessage.AppendStringWithBreak(Message);
                GetConnection().SendMessage(nMessage);
            }
    
            public void SendNotif(string Message, string Url)
            {
                ServerMessage nMessage = new ServerMessage(161);
                nMessage.AppendStringWithBreak(Message);
                nMessage.AppendStringWithBreak(Url);
                GetConnection().SendMessage(nMessage);
            }
    In ChatCommandHandler.cs Search:
    case "ha":

    Add the code below:
    Code:
                        case "newha":
                            // Alerta o hotel em novo estilo :newha <mensagem>
                            // Creditos by: Marlon Colhado
                            if (Session.GetHabbo().HasFuse("fuse_admin"))
                            {
                                string Notice = Input.Substring(3);
                                Session.SendNotif(" " + Notice + "\r\n-" + Session.GetHabbo().Username, 2);
    
                                return true;
                            }
                            return false;
    Hope you enjoy, and sorry again for my english, I'm Brazilian

    -Marlon Colhado
    Guys, this isnt even a Hotel Message. This is sending a message to the user who typed in the message

    Its not broadcasting it to the hotel

    EPIC FAIL

  19. #19
    Account Upgraded | Title Enabled! Chapo is offline
    MemberRank
    Jul 2010 Join Date
    United StatesLocation
    944Posts

    Re: [R63] New Ha Message (New Style)

    Yeah Epic Fail lolzor!

  20. #20
    Enthusiast Kouille is offline
    MemberRank
    Jun 2010 Join Date
    37Posts

    Re: [R63] New Ha Message (New Style)

    for hotel alert for all players of you're retro use this code

    Code:
    case "hat":
                        case "newha":
                            if (Session.GetHabbo().HasFuse("fuse_hotelalert"))
                            {
                                string Notice = Input.Substring(3);
                                ServerMessage HotelAlert = new ServerMessage(810);
                                HotelAlert.AppendStringWithBreak("AAdosZone.tk \r\nMessage des Staffs - AdosZone:\r\n" + Notice + "\r\n-  Cordialement, " + Session.GetHabbo().Username);
                                NovaEnvironment.GetGame().GetClientManager().BroadcastMessage(HotelAlert);
    
                                return true;
                            }
                            return false;
    Workd 100%100 Just, add a letters after your retro name exemple:

    My retro is BobbaGame, i write BBobbaGame.r (add 1B afterthe Name!)


    Sakuri, C# Dev.

  21. #21
    Member lars1080 is offline
    MemberRank
    Apr 2010 Join Date
    99Posts

    Re: [R63] New Ha Message (New Style)

    Why doesn't work? XD

  22. #22
    Proficient Member superdaan44 is offline
    MemberRank
    Jan 2009 Join Date
    in a chest.Location
    182Posts

    Re: [R63] New Ha Message (New Style)

    Quote Originally Posted by Kouille View Post
    for hotel alert for all players of you're retro use this code

    Code:
    case "hat":
                        case "newha":
                            if (Session.GetHabbo().HasFuse("fuse_hotelalert"))
                            {
                                string Notice = Input.Substring(3);
                                ServerMessage HotelAlert = new ServerMessage(810);
                                HotelAlert.AppendStringWithBreak("AAdosZone.tk \r\nMessage des Staffs - AdosZone:\r\n" + Notice + "\r\n-  Cordialement, " + Session.GetHabbo().Username);
                                NovaEnvironment.GetGame().GetClientManager().BroadcastMessage(HotelAlert);
    
                                return true;
                            }
                            return false;
    Workd 100%100 Just, add a letters after your retro name exemple:

    My retro is BobbaGame, i write BBobbaGame.r (add 1B afterthe Name!)


    Sakuri, C# Dev.
    Exacly what i was saying....

  23. #23
    Enthusiast Kouille is offline
    MemberRank
    Jun 2010 Join Date
    37Posts

    Re: [R63] New Ha Message (New Style)

    My Code C# is correct? is work in your retro?

  24. #24
    Apprentice CoderLewis is offline
    MemberRank
    Dec 2010 Join Date
    24Posts

    Re: [R63] New Ha Message (New Style)

    I think it would be better fully original. Not message of the day turned into :ha

  25. #25
    Enthusiast Kouille is offline
    MemberRank
    Jun 2010 Join Date
    37Posts

    Re: [R63] New Ha Message (New Style)

    Quote Originally Posted by superdaan44 View Post
    Exacly what i was saying....
    I don't understand, you can repaet write in french plz?



Page 1 of 2 12 LastLast

Advertisement