mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Dec 2002
Posts: 24
D
Ameglian cow
OP Offline
Ameglian cow
D
Joined: Dec 2002
Posts: 24
I'm trying to write some stuff to work on multiple server, and I think I understand the /scid ($scid/$scon) system pretty well, but I couldn't find in the helpfile at all, how to get server names from $scid.

For example, if I'm connected to 3 servers: $scid(0) returns 3, $scid(1) returns 1, $scid(2) returns 2, $scid(3) returns 3.

I assume that's how it's supposed to work, but is there an alias that will take the connection ID and return the appropriete server address?

Thanks in advance.


-DarkStarX
"If at first you don't succeed, sky diving's not for you."
Joined: Dec 2002
Posts: 164
M
Vogon poet
Offline
Vogon poet
M
Joined: Dec 2002
Posts: 164
Use $scid(1).server - also read /help $scid laugh


DALnet: #HelpDesk, #mIRC, #MISHScript - Undernet: #mIRC, #mIRC-Scripts
Joined: Dec 2002
Posts: 24
D
Ameglian cow
OP Offline
Ameglian cow
D
Joined: Dec 2002
Posts: 24
Thanks...

BTW, i did read the help file on $scid...and if you will check it out, you will see there is no .server property mentioned =\

Thanks again.


-DarkStarX
"If at first you don't succeed, sky diving's not for you."
Joined: Dec 2002
Posts: 774
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 774
/help $scid

If you specify a property which is an identifier, it returns the value of that identifier for that connection. This also works for custom identifiers.


$scid(1).network = network of first connection
$scid(5).nick = nick of fifth connection
etc ....


Code:
//if ( khaled isgod ) echo yes | else echo no

Link Copied to Clipboard