mIRC Home    About    Download    Register    News    Help

Print Thread
#12440 22/02/03 05:22 PM
Joined: Feb 2003
Posts: 7
T
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
T
Joined: Feb 2003
Posts: 7
Hello readers,

i ned to know of i can send messages from one network
to they other network, when i have multiple serverwindows

If that is possible, how must i do that?

Already thx for thous who knows this

Greets


cool The Eggdrop Freak cool
#12441 22/02/03 06:04 PM
Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
Use this command: //scon -at1 if ($network == <name>) msg nick/#chan ...

The -at1 switch makes a quick loop through any connected server window, finds the target network and sends the message.

#12442 22/02/03 06:47 PM
Joined: Feb 2003
Posts: 7
T
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
T
Joined: Feb 2003
Posts: 7
Thx Online, it's working smile grin


cool The Eggdrop Freak cool
#12443 22/02/03 07:11 PM
Joined: Feb 2003
Posts: 7
T
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
T
Joined: Feb 2003
Posts: 7
Uh, how must i add this in a script ?

like this :

Code:
ON *:NOTICE:*:?:{
  set %tmpmnslserv $$network 
  .... (if all variables are true) ...
  //scon -ast1 if ($$network == %tmpmnslserv) msg %nickservname.network identify somepass
}


then i get this :
-
* /if: invalid format
-


cool The Eggdrop Freak cool
#12444 22/02/03 08:45 PM
Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
For some reason, mIRC thinks the closing bracket - ) - is a part of the variable name, thus producing an error.

Maybe:
Code:

scon -ast1 if ($network == %tmpmnslserv ) msg %nickservname.network identify somepass

(notice the space after the variable name.)

Though, don't put a space before the $network, or you'll have to write $!network instead as the line is being evaluated twice.

If you want to include a more complicated code, it's suggested to put it within an alias, and call it from the /scon line, like this:
Code:

alias do_stuff {
  if ($network == %tmpmnslserv) {
    msg %nickservname.network identify somepass
  }
}
 
and your script will run...
 
scon -ast1 do_stuff


Link Copied to Clipboard