O.P. [Request] Away Talker
Hey.. Me again.
Anyway, I'm trying to get this script to say "Hey" when someone says "Hi".. any ideaS? I tried this:
var IsItOn;
function OnEvent_ChatWndSendMessage(pChatWnd, sMessage)
{
if(sMessage == "*PtalkOn")
{
IsItOn = true;
return "";
}
if(sMessage == "*PtalkOff")
{
IsItOn = false;
return "";
}
}
function OnEvent_ChatWndRecieveMessage(pChatWnd, Origin, sMessage, MessageKind)
{
MessageKind = 1;
if (IsItOn)
{
if (sMessage == "Hi")
SendMessage ("Hey!");
return sMessage;
}
else
return sMessage;
}
No dice.
-Paril
|