mIRC Home    About    Download    Register    News    Help

Print Thread
Some script difficulties #117508 16/04/05 05:13 PM
Joined: Jan 2005
Posts: 11
P
PunkDud3 Offline OP
Pikka bird
OP Offline
Pikka bird
P
Joined: Jan 2005
Posts: 11
#######START#########
on *:start:{
.server -m beastie.totalirc.net:9005
.server -m irc.freequest.net
.server -m irc.after-all.org:6000
.server -m irc.totalirc.net
.server -m irc.undermind.net
}

on *:connect:{
if ($network == freequest) {
.nick Kokarda
.msg nickserv identify password
.join #
if ($network == After-All) {
.nick Kokarda
.msg nickserv identify password
.join #
.join #
.join #
if ($network == TotalIRC) {
.nick PunkDude
.msg nickserv identify password
.join #
.join #
if ($network == UnderMind) {
.nick Kokarda
.msg nickserv identify password
.vhost
.join #
}
}
#########END#########

Ok what am I doing wrong ? And btw I have censored name of the channels and passwords. Please help me.

Re: Some script difficulties #117509 16/04/05 05:37 PM
Joined: Apr 2005
Posts: 1,009
raZOR Offline
Hoopy frood
Offline
Hoopy frood
Joined: Apr 2005
Posts: 1,009
try instead
IF
IF
IF

use ELSEIF


IceCapped
Re: Some script difficulties #117510 16/04/05 05:46 PM
Joined: Jan 2005
Posts: 11
P
PunkDud3 Offline OP
Pikka bird
OP Offline
Pikka bird
P
Joined: Jan 2005
Posts: 11
Quote:
try instead
IF
IF
IF

use ELSEIF


Doesn't work. It says:

/if: close bracket not found (line 11, script10.mrc)

confused

Re: Some script difficulties #117511 16/04/05 05:54 PM
Joined: Apr 2005
Posts: 1,009
raZOR Offline
Hoopy frood
Offline
Hoopy frood
Joined: Apr 2005
Posts: 1,009
after each IF or ELSEIF you must close bracket after you open it

so copy/paste this

on *:start:{
.server -m beastie.totalirc.net:9005
.server -m irc.freequest.net
.server -m irc.after-all.org:6000
.server -m irc.totalirc.net
.server -m irc.undermind.net
}

on *:connect:{
if ($network == freequest) {
.nick Kokarda
.msg nickserv identify password
.join #
}
elseif ($network == After-All) {
.nick Kokarda
.msg nickserv identify password
.join #
.join #
.join #
}
elseif ($network == TotalIRC) {
.nick PunkDude
.msg nickserv identify password
.join #
.join #
}
elseif ($network == UnderMind) {
.nick Kokarda
.msg nickserv identify password
.vhost
.join #
}
}

Last edited by raZOR; 16/04/05 05:55 PM.

IceCapped
Re: Some script difficulties #117512 16/04/05 07:33 PM
Joined: Nov 2003
Posts: 257
A
alkahol1k Offline
Fjord artisan
Offline
Fjord artisan
A
Joined: Nov 2003
Posts: 257
Just to add.... on the 2nd line you should have /server and not /server -m. This way you won't have an extra status window open with nothing it relates to.

Re: Some script difficulties #117513 17/04/05 02:27 PM
Joined: Jan 2005
Posts: 11
P
PunkDud3 Offline OP
Pikka bird
OP Offline
Pikka bird
P
Joined: Jan 2005
Posts: 11
Thanks so much for help. Everything works perfect.

cool