EDIT: Damn, sorry, didn't see that saralk. :( I'll delete mine if you want. :/
It's probably been done in one of the scripts already but sure, here ya go:
code:
function OnEvent_ChatWndSendMessage(pChatWnd,sMessage){
if(sMessage.substr(0,8)=='/altcase'){
sMessage = sMessage.substr(8);
var newmessage = '';
var uppercase = false;
for(i=0;i<sMessage.length;i++){
var charac = sMessage.charAt(i);
if(uppercase){
charac = charac.toUpperCase();
uppercase = false;
}
else{
charac = charac.toLowerCase();
uppercase = true;
}
newmessage+=charac;
}
return newmessage;
}
else{
return sMessage;
}
}
function OnGetScriptCommands()
{
var ScriptCommands = "<ScriptCommands>";
ScriptCommands += "<Command>";
ScriptCommands += "<Name>altcase</Name>";
ScriptCommands += "<Description>Alternates the case of the sent message</Description>";
ScriptCommands += "<Parameters><message></Parameters>";
ScriptCommands += "</Command>";
ScriptCommands += "</ScriptCommands>";
return ScriptCommands;
}
There you go. :)
It uses /altcase command to send a message with annoying cases. :P