code:
function OnEvent_ChatWndSendMessage(ChatWnd, Message)
{
if (Message == "irritant Hè!")
{
for (var i = 0; i< 14; i++)
{
ChatWnd.SendMessage("irritant Hè!");
return "irritant Hè!";
}
}
else
{
return Message;
}
}
what will happen if you leave out "for (var etc", like this:
code:
function OnEvent_ChatWndSendMessage(ChatWnd, Message)
{
if (Message == "irritant Hè!")
{
ChatWnd.SendMessage("irritant Hè!");
return "irritant Hè!";
}
else
{
return Message;
}
}
then its sending the message one time right?
code:
if (Message == "irritant Hè!")
{
ChatWnd.SendMessage("irritant Hè!");
return "irritant Hè!";
ChatWnd.SendMessage("irritant Hè!");
return "irritant Hè!";
}
does this works too? does it sends 2 messages now (dont have someone to test on
) ?