Wont send a message |
Author: |
Message: |
Ruwen
Junior Member
Posts: 18
Joined: Jul 2006
|
O.P. Wont send a message
Why wont my script not send a message to the person im speaking with?
Messenger.SendMessage("Okay " + MsgPlus.RemoveFormatCodes(naam) + ".. Personlig Besked er nu blevet ændret! ER DU SÅ TILFRES?");
|
|
07-08-2006 08:48 PM |
|
|
foaly
Senior Member
Posts: 718 Reputation: 20
38 / /
Joined: Jul 2006
|
RE: Wont send a message
ehm... isn't sendmessage a chatwindow object?
so it should be something like:
[code]
function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, Kind)
{
ChatWnd.SendMessage("Okay " + MsgPlus.RemoveFormatCodes(Origin) + ".. Personlig Besked er nu blevet ændret! ER DU SÅ TILFRES?");
}
|
|
07-08-2006 08:53 PM |
|
|
Ruwen
Junior Member
Posts: 18
Joined: Jul 2006
|
O.P. RE: Wont send a message
How do i set it to a new line?
like
"Okay name.. Personlig Besked er nu blevet ændret!
ER DU SÅ TILFREDS?"
|
|
07-08-2006 09:17 PM |
|
|
foaly
Senior Member
Posts: 718 Reputation: 20
38 / /
Joined: Jul 2006
|
RE: Wont send a message
just send a new message i guess....
[code]
function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, Kind)
{
ChatWnd.SendMessage("Okay " + MsgPlus.RemoveFormatCodes(Origin) + ".. Personlig Besked er nu blevet ændret!");
ChatWnd.SendMessage("ER DU SÅ TILFRES?");
}
|
|
07-08-2006 09:55 PM |
|
|
Ezra
Veteran Member
Forgiveness is between them and God
Posts: 1960 Reputation: 31
37 / /
Joined: Mar 2003
|
RE: Wont send a message
no, don't send a new message, that will also write another "%user% says:", just use "\n"
code: function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, Kind)
{
ChatWnd.SendMessage("Okay " + MsgPlus.RemoveFormatCodes(Origin) + ".. Personlig Besked er nu blevet ændret!" + \n\n + "ER DU SÅ TILFRES?");
}
This post was edited on 07-08-2006 at 09:59 PM by Ezra.
|
|
07-08-2006 09:57 PM |
|
|
Ruwen
Junior Member
Posts: 18
Joined: Jul 2006
|
O.P. RE: Wont send a message
quote: Originally posted by Ezra
no, don't send a new message, that will also write another "%user% says:", just use "\n"
code: function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, Kind)
{
ChatWnd.SendMessage("Okay " + MsgPlus.RemoveFormatCodes(Origin) + ".. Personlig Besked er nu blevet ændret!" + \n\n + "ER DU SÅ TILFRES?");
}
It doesnt work The script will not be loaded if i put in " + \n\n + "
|
|
07-09-2006 07:21 AM |
|
|
Dhaya
Junior Member
lala~
Posts: 25 Reputation: 4
38 / / –
Joined: Jul 2006
|
RE: Wont send a message
the \n\n must be placed in the quotes like this :
code: function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, Kind)
{
ChatWnd.SendMessage("Okay " + MsgPlus.RemoveFormatCodes(Origin) + ".. Personlig Besked er nu blevet ændret!\n\nER DU SÅ TILFRES?");
}
Godamn JScript ! I HATE you ! ... but I love you so much <3
|
|
07-09-2006 07:24 AM |
|
|
Ruwen
Junior Member
Posts: 18
Joined: Jul 2006
|
O.P. RE: Wont send a message
quote: Originally posted by Ruwen
quote: Originally posted by Ezra
no, don't send a new message, that will also write another "%user% says:", just use "\n"
code: function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, Kind)
{
ChatWnd.SendMessage("Okay " + MsgPlus.RemoveFormatCodes(Origin) + ".. Personlig Besked er nu blevet ændret!" + \n\n + "ER DU SÅ TILFRES?");
}
It doesnt work The script will not be loaded if i put in " + \n\n + "
It still dont work.. It make my script stop
|
|
07-09-2006 07:40 PM |
|
|
ddunk
Veteran Member
Posts: 1228 Reputation: 51
35 / /
Joined: Mar 2004
|
RE: Wont send a message
quote: Originally posted by Ruwen
It still dont work.. It make my script stop
quote: Originally posted by Dhaya
function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, Kind)
{
ChatWnd.SendMessage("Okay " + MsgPlus.RemoveFormatCodes(Origin) + ".. Personlig Besked er nu blevet ændret!\n\nER DU SÅ TILFRES?");
}
Works fine, except for the fact that it doesn't check the origin so your own messages trigger it and sends it into a flood .
|
|
07-09-2006 07:45 PM |
|
|
Ruwen
Junior Member
Posts: 18
Joined: Jul 2006
|
O.P. RE: Wont send a message
ok.. it works now
This post was edited on 07-09-2006 at 09:05 PM by Ruwen.
|
|
07-09-2006 08:41 PM |
|
|
|