quote:
Originally posted by Yukai
quote:
Originally posted by roflmao456
hmmm... (untested)
code:
var romaji = new Array(
"Just",
"Like",
"This",
"Separated by comma",
"unless if it's the last one."
);
var kanji = new Array(
"Same",
"Goes",
"Here"
);
function OnEvent_ChatWndSendMessage(Chatwnd, Message){
for(i=0;i<romaji.length;i++){
var Word = new RegExp(romaji[i], "gi");
Message = Message.replace(Word, kanji[i]);
}
return Message;
}
function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, MessageKind){
if(Origin != Messenger.MyName && MessageKind == 1){
for(i=0;i<kanji.length;i++){
var Word = new RegExp(kanji[i], "gi");
Message = Message.replace(Word, romaji[i]);
}
return Message;
}
}
Paste that in a new script and ther you go
it might fail in some cases though...
* roflmao456 calls Cookie to explain
Thank you so much for taking time to write that. But I feel kind of dumb since I don't understand what to replace and where.
In this part. Change "FirstWord" to the word in romaji you want.
Then Change "SecondWord" to another word you want in romaji.
and so on.
In the second part change "KanjiWord" to any kanji word you want.. like "feioso" or something (sorry I don't know kanji).
Hope you get it this time!
code:
var romaji = new Array(
"FirstWord",
"SecondWord",
"ThirdWord",
"FourthWord",
"FifthWord."
);
var kanji = new Array(
"KanjiWord",
"SecondKanjiWord",
"ThirdKanjiWord"
);