mIRC Home    About    Download    Register    News    Help

Print Thread
Page 1 of 2 1 2
Connect to server and msg #197949 17/04/08 01:35 PM
Joined: Jan 2008
Posts: 21
V
vinnie19 Offline OP
Ameglian cow
OP Offline
Ameglian cow
V
Joined: Jan 2008
Posts: 21
I got a script:

Code:
on *:START:{ 
  server -pfo server1 -j #room1 server1
  server -pfo server1 -j #room2 server1 
  server -pfom server2 -j #room1 server2  
}


But that doenst work correct.
When i now start mirc it connects to:
Server 1 - room2
and to server 2 room 1

How do i make it that it connects to but rooms on server1
And how do i punt a 4th one in (server2 room2)?

Next i want to send on both servers this message on connect:
Code:
/msg Nickserv identify pass

How do i do this?

Re: Connect to server and msg [Re: vinnie19] #197950 17/04/08 02:07 PM
Joined: Dec 2002
Posts: 2,011
R
RoCk Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,011

Code:

on *:START:{ 
  server -pfo server1 -jn #room1,#room2
  server -pfom server2 -jn #room1,#room2
}

on *:CONNECT: {
  if (($server == server1) || ($server == server2)) .msg Nickserv identify pass
}



In the CONNECT event, I would use the network names instead of server names.

if (($network == network1) || ($network == network2)) .msg Nickserv identify pass

Re: Connect to server and msg [Re: RoCk] #197991 18/04/08 01:02 PM
Joined: Jan 2008
Posts: 21
V
vinnie19 Offline OP
Ameglian cow
OP Offline
Ameglian cow
V
Joined: Jan 2008
Posts: 21
Code:
on *:START:{ 
  server -pfo server1 -jn #room1,#room2
  server -pfom server2 -jn #room1,#room2
}


And where do i need to putt the password of the room?
Because when i use this:

Code:
on *:START:{ 
  server -pfo server1 -jn #room1,#room2 pass
  server -pfom server2 -jn #room1 pass,#room2 pass
}


It doenst connect to the second rooms.

Re: Connect to server and msg [Re: vinnie19] #197996 18/04/08 02:15 PM
Joined: Dec 2002
Posts: 2,011
R
RoCk Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,011

Have you considered using perform on connect? If you want to do it with a script, then you would have to put your joins in the CONNECT event if you need to use a password...

Code:

on *:START:{ 
  server -pfo server1
  server -pfom server2
}

on *:CONNECT: {
  if (($server == server1) || ($server == server2)) {
    .msg Nickserv identify pass
    .timer 1 2 join #room1 pass
    .timer 1 3 join #room2 pass
  }
}



Re: Connect to server and msg [Re: RoCk] #198001 18/04/08 06:40 PM
Joined: Jan 2008
Posts: 21
V
vinnie19 Offline OP
Ameglian cow
OP Offline
Ameglian cow
V
Joined: Jan 2008
Posts: 21
but how does it then reconnize on which server he must connect to that room.


Re: Connect to server and msg [Re: vinnie19] #198005 18/04/08 07:38 PM
Joined: Dec 2002
Posts: 2,011
R
RoCk Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,011

Different channels on different servers?

Code:

on *:START:{ 
  server -pfo server1
  server -pfom server2
}

on *:CONNECT: {
  if ($server == server1) {
    .msg Nickserv identify pass
    .timer 1 2 join #room1 pass
    .timer 1 3 join #room2 pass
  }
  elseif ($server == server2) {
    .msg Nickserv identify pass
    .timer 1 2 join #room3 pass
    .timer 1 3 join #room4 pass
  }
}



Correct?

Re: Connect to server and msg [Re: RoCk] #198006 18/04/08 07:55 PM
Joined: Jan 2008
Posts: 21
V
vinnie19 Offline OP
Ameglian cow
OP Offline
Ameglian cow
V
Joined: Jan 2008
Posts: 21
Thx the last one works great.

Thank you very much.

And if i want to sent a message to a room inmeddiatly.

Because i want to send on server1 room2 the message !op if im connected to that room

How do i do that?

Last edited by vinnie19; 18/04/08 07:57 PM.
Re: Connect to server and msg [Re: vinnie19] #198008 18/04/08 08:02 PM
Joined: Dec 2002
Posts: 2,011
R
RoCk Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,011

Code:

on *:START:{ 
  server -pfo server1
  server -pfom server2
}

on *:CONNECT: {
  if ($server == server1) {
    .msg Nickserv identify pass
    .timer 1 2 join #room1 pass
    .timer 1 3 join #room2 pass
  }
  elseif ($server == server2) {
    .msg Nickserv identify pass
    .timer 1 2 join #room3 pass
    .timer 1 3 join #room4 pass
  }
}

on *:JOIN:#: {
  if (($server == server1) && ($chan == #room2)) msg $chan !op
}



Re: Connect to server and msg [Re: RoCk] #198135 21/04/08 05:23 PM
Joined: Jan 2008
Posts: 21
V
vinnie19 Offline OP
Ameglian cow
OP Offline
Ameglian cow
V
Joined: Jan 2008
Posts: 21
Thx for the code. I needed to modify it a little bit so this is my code now

Code:
on *:START:{ 
  server -pfo server1
  server -pfom server2
}

on *:CONNECT: {
  if ($server == server1) {
    .msg Nickserv identify pass
    .timer 1 2 join #room1 pass
    .timer 1 3 join #room2 pass
  }
  elseif ($server == server2) {
    .msg Nickserv identify pass
    .timer 1 2 join #room3 pass
    .timer 1 3 join #room4 pass
  }
}

on *:JOIN:#: {
  if (($server == server1) && ($chan == #room2)) && ($nick == mynick) msg $chan !op
}


But its working great thx very much

Re: Connect to server and msg [Re: vinnie19] #198151 21/04/08 11:15 PM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
you could modify the ON JOIN event to read
Code:
on me:*:join:#room2: if ($server == server1) msg # !op


Re: Connect to server and msg [Re: RusselB] #198466 29/04/08 10:33 AM
Joined: Nov 2006
Posts: 143
X
xyzzy Offline
Vogon poet
Offline
Vogon poet
X
Joined: Nov 2006
Posts: 143
Code:
on *:connect:{
  if ($network == server1) { 
    .ns identify pass1
    .mode $me +B-GTi  { halt }
  }
  elseif ($network == server2) { 
  .ns identify pass2
  .mode $me +B-GTi | halt }}
  }
}

whats the wrong ? cos i got that msg > == Unknown command

Re: Connect to server and msg [Re: xyzzy] #198468 29/04/08 12:13 PM
Joined: Dec 2002
Posts: 2,011
R
RoCk Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,011

Code:

on *:connect: {
  if ($network == server1) { 
    .ns identify pass1
    .mode $me +B-GTi
  }
  elseif ($network == server2) { 
    .ns identify pass2
    .mode $me +B-GTi
  }
}



Re: Connect to server and msg [Re: RoCk] #198470 29/04/08 12:53 PM
Joined: Nov 2006
Posts: 143
X
xyzzy Offline
Vogon poet
Offline
Vogon poet
X
Joined: Nov 2006
Posts: 143
thnx RoCk but the still same also if i use any services command again got the msg
(15:53:27) -NickServ- Syntax: SET option parameters
~
(15:53:27) -NickServ- Type /msg NickServ HELP SET for more information.
~
== Unknown command
~

Re: Connect to server and msg [Re: xyzzy] #198472 29/04/08 01:12 PM
Joined: Dec 2002
Posts: 2,011
R
RoCk Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,011

Well I would say it's another script causing it because you aren't sending the SET command to NickServ in this one. Also, you should be using $server instead of $network in this.

Either this
if ($network == your_network_name)

or this
if ($server == your_server_name)

Re: Connect to server and msg [Re: RoCk] #198474 29/04/08 02:06 PM
Joined: Nov 2006
Posts: 143
X
xyzzy Offline
Vogon poet
Offline
Vogon poet
X
Joined: Nov 2006
Posts: 143
After Connected it work like that
~
== Unknown command
~
(17:02:37) * Xyzzy sets mode: +B-iG
~
(17:02:37) -NickServ- Password accepted -- you are now recognized.
~
(17:02:38) * Xyzzy sets mode: +i
then i try any command it gives always same thing
(17:03:17) -NickServ- Syntax: SET option parameters
~
(17:03:17) -NickServ- Type /msg NickServ HELP SET for more information.
~
== Unknown command
~
(17:04:16) -ChanServ- Password accepted -- you now have founder-level access to #Xyzzy
~
== Unknown command
~

Re: Connect to server and msg [Re: xyzzy] #198477 29/04/08 02:12 PM
Joined: Dec 2002
Posts: 2,011
R
RoCk Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,011

It looks to me like it might be a script error in a NOTICE event.

Re: Connect to server and msg [Re: RoCk] #198478 29/04/08 02:19 PM
Joined: Nov 2006
Posts: 143
X
xyzzy Offline
Vogon poet
Offline
Vogon poet
X
Joined: Nov 2006
Posts: 143
Code:
on *:notice:*:*: {
  if (%notice. [ $+ [ $wildsite ] ] == $null) %%(nick == chanserv) { return } {
    set -u5 %notice. [ $+ [ $wildsite ] ] 1
    return
  }
  else { inc %notice. [ $+ [ $wildsite ] ] }
  if (%notice. [ $+ [ $wildsite ] ] > 5 && %notice.check == $null) {
    set -u6 %notice.check 1
    .ignore -nu10 $wildsite
    echo -s *** Notice flood from $wildsite - Ignoring notices for 15secs...
  }
}

yup i find this after u said if del this code there is not any prob but also i need this notice flood prot too hmmm anything to do use both of them ? also thnx for lucky guess i cant find it without ur that msg.. smirk

Re: Connect to server and msg [Re: xyzzy] #198479 29/04/08 02:31 PM
Joined: Nov 2006
Posts: 1,559
H
Horstl Offline
Hoopy frood
Offline
Hoopy frood
H
Joined: Nov 2006
Posts: 1,559
Code:
%%(nick == chanserv)

I suppose you meant:
Code:
&&  ($nick == chanserv)

Re: Connect to server and msg [Re: Horstl] #198480 29/04/08 02:34 PM
Joined: Nov 2006
Posts: 143
X
xyzzy Offline
Vogon poet
Offline
Vogon poet
X
Joined: Nov 2006
Posts: 143
yup i did try both ($nick / (nick
~
(NICK Unknown command
~
($NICK Unknown command
~ mad codes making me mad lol

Re: Connect to server and msg [Re: xyzzy] #198481 29/04/08 02:41 PM
Joined: Nov 2006
Posts: 1,559
H
Horstl Offline
Hoopy frood
Offline
Hoopy frood
H
Joined: Nov 2006
Posts: 1,559
Code:
on *:notice:*:*: {
  if (!$istok(nickserv chanserv botserv hostserv memoserv ...,$nick,32)) {
    hinc -mu5 noticeflood $wildsite
    if ($hget(noticeflood,$wildsite) > 5) { 
      .ignore -nu15 $wildsite
      echo -s  *** Notice flood from $wildsite - Ignoring notices for 15secs...
    }
  }
}

A quick alternative suggestion for notice floodprotection - maybe you like it smile

Page 1 of 2 1 2