[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:
http://i51.tinypic.com/2i9s1ap.png
http://i52.tinypic.com/15wnw95.png
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 :D:
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.
Re: [R63] New Ha Message (New Style)
Re: [R63] New Ha Message (New Style)
Quote:
Originally Posted by
Hejula
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
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
Re: [R63] New Ha Message (New Style)
Quote:
Originally Posted by
kiddoidao3d
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.
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.
Re: [R63] New Ha Message (New Style)
Nice rip & simple edit from Bifi2000 :]
Re: [R63] New Ha Message (New Style)
Re: [R63] New Ha Message (New Style)
Re: [R63] New Ha Message (New Style)
Re: [R63] New Ha Message (New Style)
Quote:
Originally Posted by
Žak™
Bifi did this?
Already said that.
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..
Re: [R63] New Ha Message (New Style)
Re: [R63] New Ha Message (New Style)
Quote:
Originally Posted by
Hejula
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.
Re: [R63] New Ha Message (New Style)
Meh it's alright. Thanks for the contribution :)