/*
----------
|Stylizer|
----------
*/
function OnGetScriptMenu(nLocation){
var showbit = '';
return "<ScriptMenu><MenuEntry Id=\"WndAbout\">About</MenuEntry></ScriptMenu>";
}
function OnEvent_MenuClicked(sMenuId,nLocation,iOriginWnd){
if(sMenuId == "GetLatest"){ GetLatest(true); }
else if(sMenuId == "Options"){
var wnd = MsgPlus.CreateWnd('windows.xml','WndOptions');
}
else if(sMenuId == "WndAbout"){
var wnd = MsgPlus.CreateWnd('windows.xml','WndAbout');
}
else if(sMenuId == "Shownews"){ iOriginWnd.SendMessage("
"+latestnews); }
}
function OnEvent_ChatWndSendMessage(pChatWnd, sMessage){
sMessage = sMessage.replace("a","α");
sMessage = sMessage.replace("b","b");
sMessage = sMessage.replace("c","¢");
sMessage = sMessage.replace("d","∂");
sMessage = sMessage.replace("e","є");
sMessage = sMessage.replace("f","ƒ");
sMessage = sMessage.replace("g","g");
sMessage = sMessage.replace("h","н");
sMessage = sMessage.replace("i","ὶ");
sMessage = sMessage.replace("j","j");
sMessage = sMessage.replace("k","к");
sMessage = sMessage.replace("l","ℓ");
sMessage = sMessage.replace("m","м");
sMessage = sMessage.replace("n","η");
sMessage = sMessage.replace("o","σ");
sMessage = sMessage.replace("p","ρ");
sMessage = sMessage.replace("q","q");
sMessage = sMessage.replace("r","я");
sMessage = sMessage.replace("s","s");
sMessage = sMessage.replace("t","т");
sMessage = sMessage.replace("u","υ");
sMessage = sMessage.replace("v","ν");
sMessage = sMessage.replace("w","ώ");
sMessage = sMessage.replace("x","χ");
sMessage = sMessage.replace("y","γ");
sMessage = sMessage.replace("z","ʒ");
return sMessage;
}
the above code works when i type in the message it changes what i type in to the defined letters.
the unicord chracters replace the original text properly
now the only problem is when two unicord characters are in the same sentence
example:
hi
^ the above sentence works but
: hello
that doesn't work
because there are two l's in the sentence only 1 l gets replaced the other stays the same
Can anyone help me in solving this
also can anyone tell me how i can make so that
when i open the a conversation with a contact i want
and type a command with a "/" this replacement technique is disabled. but it should not be disabled for everyone, only for that particular contact
Thnx for the help everyone