mIRC Home    About    Download    Register    News    Help

Print Thread
raw messages vs. multi server #63346 08/12/03 02:57 PM
Joined: Dec 2003
Posts: 28
L
LEET Offline OP
Ameglian cow
OP Offline
Ameglian cow
L
Joined: Dec 2003
Posts: 28
i'm having a little problem with my multi server script.
i'm just doing simple things with an away system and i was wondering how to distinguish cid's from raw server msgs.

at the moment i'm connected to 2 different servers, i send '.raw away etc' to each server using //scid connectid .raw away etc.

when i recieved raw 306, i echo $cid and its always the id of my first connection. is there another identifier i should be using to return the specific id number? i also checked the scid loop to see if the commands were being sent properly and they were echoed ...

scid 1 .raw AWAY away
scid 8 .raw AWAY away

i dunno what the probem is, somebody help me! shocked


I R WITH STUPID -> LEET
Re: raw messages vs. multi server #63347 08/12/03 03:53 PM
Joined: Jan 2003
Posts: 3,012
KingTomato Offline
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
Are you looking for $activecid?


-KingTomato
Re: raw messages vs. multi server #63348 08/12/03 03:54 PM
Joined: Dec 2003
Posts: 28
L
LEET Offline OP
Ameglian cow
OP Offline
Ameglian cow
L
Joined: Dec 2003
Posts: 28
i tried $activecid as well but like it still returns the same cid shocked


I R WITH STUPID -> LEET
Re: raw messages vs. multi server #63349 08/12/03 03:57 PM
Joined: Jan 2003
Posts: 3,012
KingTomato Offline
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
cid is always going to give you the id of the connection your executing it on. If you want to associtate, say, a server with its id, loop through $scon or $scid.


-KingTomato
Re: raw messages vs. multi server #63350 08/12/03 04:00 PM
Joined: Dec 2003
Posts: 28
L
LEET Offline OP
Ameglian cow
OP Offline
Ameglian cow
L
Joined: Dec 2003
Posts: 28
yea i'll just have to script around it ;/


I R WITH STUPID -> LEET
Re: raw messages vs. multi server #63351 08/12/03 06:28 PM
Joined: Jan 2003
Posts: 1,063
D
Doqnach Offline
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2003
Posts: 1,063
raw 306:*: echo -a $cid

that gives you only 1 cid?

who not use /scid -a .raw AWAY etc.

btw ?


If it ain't broken, don't fix it!
Re: raw messages vs. multi server #63352 09/12/03 04:27 PM
Joined: Dec 2003
Posts: 28
L
LEET Offline OP
Ameglian cow
OP Offline
Ameglian cow
L
Joined: Dec 2003
Posts: 28
i'm running each server on 127.0.0.1 connected to the specific servers through a proxy of myself by sockets. whatever raw i get returns the 'active' cid whenever. i'm gonna script around the problem i have because scid doesn't work properly for me. if i connected to servers normally then i wouldn't have this problem. but unfortunately i have now because of the way i dodgily connect to servers.

i didn't use scid -a because i set individual variables so i just did a while loop through the connections to do the additional commands. shocked


I R WITH STUPID -> LEET
Re: raw messages vs. multi server #63353 09/12/03 08:38 PM
Joined: Dec 2003
Posts: 28
L
LEET Offline OP
Ameglian cow
OP Offline
Ameglian cow
L
Joined: Dec 2003
Posts: 28
problem sorted. just scripting error... i could explain it but nobody's interested! shocked


I R WITH STUPID -> LEET