mIRC Home    About    Download    Register    News    Help

Print Thread
#138022 23/12/05 07:57 AM
Joined: Mar 2005
Posts: 212
N
Fjord artisan
OP Offline
Fjord artisan
N
Joined: Mar 2005
Posts: 212
im considering releasing a script i just wrote.
its about 350 lines.
i usally just do a notepad with the code on it.
i figured i do something a little better this time.
im not at all familiar with distributing things in .ini or .mrc.
so if someone would be willing to explain the pros and cons, and how thats done i would appreciate it.
thanks.
just in case the above isnt clear i need to know how to generate a .ini or .mrc with the code in it and how to go about loading it etc.
thanks again

#138023 23/12/05 08:35 AM
Joined: Aug 2005
Posts: 525
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Aug 2005
Posts: 525
You have essentially answered your own question here. Paste the code to a notepad file and save it with a .mrc extension. Alternatively, you can paste it to a new remotes file and save it that way.

#138024 23/12/05 09:07 AM
Joined: Mar 2005
Posts: 212
N
Fjord artisan
OP Offline
Fjord artisan
N
Joined: Mar 2005
Posts: 212
gotcha
and then have them put it in their script directory
and then i imagine to load it would be /load -rs whatever.mrc
correct?

#138025 23/12/05 09:17 AM
Joined: Aug 2005
Posts: 525
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Aug 2005
Posts: 525
You can do it that way, but I think this is probably safer since it should work regardless of where the file is at as long as it's in the mIRC folder somewhere. Be it the main directory, or a subfolder it should work both ways.

//load -rs $shortfn($findfile($mircdir,filename,1))

#138026 23/12/05 09:20 AM
Joined: Mar 2005
Posts: 212
N
Fjord artisan
OP Offline
Fjord artisan
N
Joined: Mar 2005
Posts: 212
thanks again

#138027 23/12/05 09:27 AM
Joined: Mar 2005
Posts: 212
N
Fjord artisan
OP Offline
Fjord artisan
N
Joined: Mar 2005
Posts: 212
strangely enough testing your way
didnt work
it was especially odd because i did it the way i listed first and it worked
then i went to try it your way didnt work
so then i checked it with an echo and it came back correct

very interesting
i type this
//load -rs $findfile($mircdir,awayscript.mrc,1)
i get
* /load: no such file 'C:\Documents'
i type
//echo -a $findfile($mircdir,awayscript.mrc,1)
i get
C:\Documents and Settings\Owner\Desktop\mircforchris\mircforchris\mirc\awayscript.mrc

thoughts?

#138028 23/12/05 09:33 AM
Joined: Aug 2005
Posts: 525
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Aug 2005
Posts: 525
Sorry, I didn't take the spacing into account with directories. I edited my last post, which will work fine regardless of spacing.

#138029 23/12/05 09:38 AM
Joined: Mar 2005
Posts: 212
N
Fjord artisan
OP Offline
Fjord artisan
N
Joined: Mar 2005
Posts: 212
sucess wink

thanks alot man
now the slightly better packaging will draw peoples attention away from the horrible code


Link Copied to Clipboard