-
[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 :)
-
Re: [R63] New Ha Message (New Style)
Thanks for all comments :D
-
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.
-
Re: [R63] New Ha Message (New Style)
Quote:
Originally Posted by
kiddoidao3d
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:
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
-
Re: [R63] New Ha Message (New Style)
-
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.
-
Re: [R63] New Ha Message (New Style)
-
Re: [R63] New Ha Message (New Style)
Quote:
Originally Posted by
Kouille
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....
-
Re: [R63] New Ha Message (New Style)
My Code C# is correct? is work in your retro?
-
Re: [R63] New Ha Message (New Style)
I think it would be better fully original. Not message of the day turned into :ha
-
Re: [R63] New Ha Message (New Style)
Quote:
Originally Posted by
superdaan44
Exacly what i was saying....
I don't understand, you can repaet write in french plz?
-
Re: [R63] New Ha Message (New Style)
Isn't it for welcome message? :P
This is more a "new style" for customizeable messages:
http://s3.imgimg.de/uploads/rmwn5578069djpg.jpg
:)
-
Re: [R63] New Ha Message (New Style)
-
Re: [R63] New Ha Message (New Style)
Okay,I work on a new style :)
-
Re: [R63] New Ha Message (New Style)
HAHAHAHHAHAHAHAHH, I am laughing in real life, this is such a FAIL!!!!!
-
Re: [R63] New Ha Message (New Style)
This Style is for the Message of Day, and this codeis of Bifi.
EPI FAIL man, this Cod is very simple of create =/
@Privilege
Your Style is Awesome ^^
-
Re: [R63] New Ha Message (New Style)
^. agreed, this is a epic fail. and Privilede can you release your style :D