Here is the code I am using:
code:
function OnEvent_ChatWndSendMessage(ChatWnd, sMessage)
{
if(sMessage == "hye");
{
strReplace("hye" == "hey");
}
}
This shall be my first useful script (only other one I made was a popup toast that said "hello" lol).
This however, doesn't work
. I have the scripting documentation open, but its sort of confusing me.
I want my script to replace "hye" with "hey". It shouldn't be that hard (I think
), but I have nooo idea what I am doing wrong @_@. Some help
?