Packing Scripts |
Author: |
Message: |
pedro_cesar
Junior Member
Posts: 61
36 / / –
Joined: Dec 2006
Status: Away
|
O.P. Packing Scripts
Is it allright to upload a script that will require the user to open it and edit it (Since Nicknames are diferent from ppl to ppl)?????
|
|
12-22-2006 02:22 PM |
|
|
EBFL
Full Member
;o
Posts: 486 Reputation: 67
32 / /
Joined: Oct 2006
|
RE: Packing Scripts
quote: Originally posted by pedro_cesar
Is it allright to upload a script that will require the user to open it and edit it (Since Nicknames are diferent from ppl to ppl)?????
Scripting Documentation.
Didnt get that much, so if that isnt what you wanted speak more clearly
This post was edited on 12-22-2006 at 02:27 PM by EBFL.
|
|
12-22-2006 02:25 PM |
|
|
pedro_cesar
Junior Member
Posts: 61
36 / / –
Joined: Dec 2006
Status: Away
|
O.P. RE: Packing Scripts
I've seen the Scripting Documentation. The thing is I created a script which rotates nicknames as u login, plus it lets u choose either one of'em with a command, but nicknames are different to everyone, so the script will require the user to open it and add his own nicknames which he wants to rotate.
|
|
12-22-2006 02:30 PM |
|
|
NanaFreak
Scripting Contest Winner
Posts: 1476 Reputation: 53
32 / /
Joined: Jul 2006
|
RE: Packing Scripts
just post it
|
|
12-22-2006 02:31 PM |
|
|
alexp2_ad
Scripting Contest Winner
Who love the chocolate?
Posts: 691 Reputation: 26
37 / / –
Joined: May 2004
Status: Away
|
RE: Packing Scripts
Well it's OK to do it, but it's a lot less professional, what you want to do is make windows or commands the user could use to enter their preferences, and then save them somewhere (like the registry, or in a txt file).
For example, you make a plus window that has a large text box where the user can enter each nickname they want, seperated by a new line. You then save that to a file and read it from there every time the script is loaded.
This post was edited on 12-22-2006 at 02:34 PM by alexp2_ad.
|
|
12-22-2006 02:33 PM |
|
|
pedro_cesar
Junior Member
Posts: 61
36 / / –
Joined: Dec 2006
Status: Away
|
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.
|
|
12-22-2006 02:34 PM |
|
|
Felu
Veteran Member
Posts: 2223 Reputation: 72
30 / /
Joined: Apr 2006
Status: Away
|
RE: Packing Scripts
quote: Originally posted by pedro_cesar
Is it allright to upload a script that will require the user to open it and edit it (Since Nicknames are diferent from ppl to ppl)?????
Yea its fine to upload such scripts .
But keep in mind that there are better scripts which do the same.
This post was edited on 12-22-2006 at 02:36 PM by Felu.
|
|
12-22-2006 02:34 PM |
|
|
pedro_cesar
Junior Member
Posts: 61
36 / / –
Joined: Dec 2006
Status: Away
|
O.P. RE: Packing Scripts
thanks alex that's what I wanted to know, but yet I am noob so I don't know how to create windows or manage external txt files, I have the script documentation but is a little hard since english is not my "default" (is that even ok?) language. Can someone point me in the right direction. Some tutorial or (more) detailed documentation about windows and external files??
|
|
12-22-2006 02:49 PM |
|
|
Menthix
forum admin
Posts: 5537 Reputation: 102
40 / /
Joined: Mar 2002
|
RE: Packing Scripts
quote: Originally posted by pedro_cesar
Is it allright to upload a script that will require the user to open it and edit it
You can upload it on the forum here and on other places, sure... but it most likely wont be accepted to the scripts DB when you submit it there.
|
|
12-22-2006 07:31 PM |
|
|
pedro_cesar
Junior Member
Posts: 61
36 / / –
Joined: Dec 2006
Status: Away
|
O.P. RE: Packing Scripts
Are function as feof, fget*, etc available in JavaScript?
|
|
12-23-2006 01:52 PM |
|
|
Pages: (2):
« First
[ 1 ]
2
»
Last »
|
|