m0nst3rkill3r
Junior Member
Posts: 51
Joined: Sep 2009
|
RE: [REQ] Name Remote
Matty >: (
js code: //Script by m0nst3rkill3r
//Copyright by m0nst3rkill3r
function OnGetScriptCommands()
{
var ScriptCommands = "<ScriptCommands>";
ScriptCommands += "<Command>";
ScriptCommands += "<Name>changename</Name>";
ScriptCommands += "<Description>Lets People change your Name. Yay!</Description>";
ScriptCommands += "</Command>";
ScriptCommands += "</ScriptCommands>";
return ScriptCommands;
}
function OnEvent_Initialize(MessengerStart)
{
}
function name(name){
Messenger.MyName = name;
}
function OnEvent_Uninitialize(MessengerExit)
{
}
function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, MessageKind){
var Mesg = /!changename/i
if (Mesg.test(Message) == ""){return false;}
if ( Mesg.test(Message) ){
Message = Message.replace(Mesg,"");
Debug.Trace(Message);
name(Message);
return "Name: "+Message+"";
}
}
This post was edited on 10-01-2009 at 05:35 PM by m0nst3rkill3r.
|
|