O.P. RE: Packing Scripts
This is my script, I want to upload it as plsc. so ppl can download and import it, so i wanna know if it's ok it has to be edited:
var old_DP = "N/A";
var old_NN = "N/A";
var old_PM = "N/A";
var nck_ckc = "N/A";
var nick0 = "[c=2](.•'\\_ Pêd®o çë$å® _/'•_) Imposible means you haven't FOUND a solution[/c=4]";
var nick1 = "[c=2](.•'\\_ Pêd®o çë$å® _/'•_) Adobe Photoshop CS3 v.10 Must Rock[/c=21]";
var nick2 = "[c=2](.•'\\_ Pêd®o çë$å® _/'•_) Only the Deads have seen the END OF WAR![/c=1]";
///////////////INICIO DE FUNCIONES DE CAMBIO DE NICK Y BACKUPS////////////////////////
function nck_ver () {
if (Messenger.MyName == nick0) { nck_ckc = 0; }
if (Messenger.MyName == nick1) { nck_ckc = 1; }
if (Messenger.MyName == nick2) { nck_ckc = 2; }
}
function SwitchNick () {
nck_ver ()
if (nck_ckc == 0) { Messenger.MyName = nick1; }
if (nck_ckc == 1) { Messenger.MyName = nick2; }
if (nck_ckc == 2) { Messenger.MyName = nick0; }
}
function backup () {
old_DP = Messenger.MyDisplayPicture;
old_NN = Messenger.MyName;
old_PM = Messenger.MyPersonalMessage;
}
/////////////FIN DE FUNCIONES DE CAMBIO DE NICK Y BACKUPS///////////////
function OnEvent_Signin(Email) {
SwitchNick ()
}
function OnEvent_SigninReady(Email){
backup ()
}
function dp_toast (whois) {
whois = MsgPlus.RemoveFormatCodes(whois);
whois = "You've become " + whois;
MsgPlus.DisplayToast ("Script stared", whois)
}
function OnEvent_ChatWndSendMessage (ChatWnd, Message) {
if (Message == "/clone") {
var e = new Enumerator(ChatWnd.Contacts);
var Cnt = e.item();
Messenger.MyName = Cnt.Name;
Messenger.MyDisplayPicture = Cnt.DisplayPicture;
Messenger.MyPersonalMessage = Cnt.PersonalMessage;
dp_toast (Cnt.Email)
return '';
}
if (Message == "/unclone") {
Messenger.MyName = old_NN;
Messenger.MyDisplayPicture = old_DP;
Messenger.MyPersonalMessage = old_PM;
dp_toast ("Yourself")
return '';
}
if (Message == "/swnick") {
SwitchNick ()
return '';
}
if (Message == "/backup") {
backup ()
return '';
}
if (Message == "/nick0") {
Messenger.MyName = nick0;
return '';
}
if (Message == "/nick1") {
Messenger.MyName = nick1;
return '';
}
if (Message == "/nick2") {
Messenger.MyName = nick2;
return '';
}
}
function OnGetScriptCommands() {
var ScriptCommands = '<ScriptCommands>';
ScriptCommands += '<Command>';
ScriptCommands += '<Name>clone</Name>';
ScriptCommands += '<Description>Clones Active CntWnd</Description>';
ScriptCommands += '</Command>';
ScriptCommands += '<Command>';
ScriptCommands += '<Name>unclone</Name>';
ScriptCommands += '<Description>Roll back the cloning</Description>';
ScriptCommands += '</Command>';
ScriptCommands += '<Command>';
ScriptCommands += '<Name>swnick</Name>';
ScriptCommands += '<Description>Switches the current nick</Description>';
ScriptCommands += '</Command>';
ScriptCommands += '<Command>';
ScriptCommands += '<Name>backup</Name>';
ScriptCommands += '<Description>Stores Your Info so you can roll back</Description>';
ScriptCommands += '</Command>';
ScriptCommands += '<Command>';
ScriptCommands += '<Name>nick0</Name>';
ScriptCommands += '<Description>Changes the nick to the number 1</Description>';
ScriptCommands += '</Command>';
ScriptCommands += '<Command>';
ScriptCommands += '<Name>nick1</Name>';
ScriptCommands += '<Description>Changes the nick to the number 2</Description>';
ScriptCommands += '</Command>';
ScriptCommands += '<Command>';
ScriptCommands += '<Name>nick2</Name>';
ScriptCommands += '<Description>Changes the nick to the number 3</Description>';
ScriptCommands += '</Command>';
ScriptCommands += '</ScriptCommands>';
return ScriptCommands;
}
This post was edited on 12-23-2006 at 01:51 PM by pedro_cesar.
|