mIRC Home    About    Download    Register    News    Help

Print Thread
#97692 15/09/04 12:53 PM
Joined: Feb 2004
Posts: 24
R
Ameglian cow
OP Offline
Ameglian cow
R
Joined: Feb 2004
Posts: 24
I'm still a major n00b when it comes to this. I want to make a script that tells me what the number of people are when a person joins

for example

blah has joined the room (3)

bleh has joined the room (4)

bluh has joined the room (1)

#97693 15/09/04 05:24 PM
Joined: Dec 2002
Posts: 145
G
Vogon poet
Offline
Vogon poet
G
Joined: Dec 2002
Posts: 145
;This will update your IAL when you join your channel.
on me:*:JOIN:#your_chan_name: who $chan

On !*:join:#your_chan_name: echo -at $nick has joined the room $+($chr(40),$nick($chan,0),$chr(41))

#97694 15/09/04 05:48 PM
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
There's really no need to update the IAL for this. mIRC will still know the number of people in the channel without it.

#97695 16/09/04 05:23 AM
Joined: Mar 2003
Posts: 1,271
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Mar 2003
Posts: 1,271
Actually, in the on JOIN event, mIRC doesn't know. Not until all the names have been read. As for manually updating the IAL like gemeau suggested - that's not needed. When you join a channel and the IAL is on, it will be automatically updated. All you need to do is change the script to be trigered by the raw event that indicates the /End of names. Don'ty recall the numeric atm.

raw number:*: echo -a You have joined $2 with $nick($2,0)users.

PS: since I'm not at home, I can't test it, but if I recall correctly, $2 is the channel.


DALnet #Helpdesk
I hear and I forget. I see and I remember. I do and I understand. -Confucius
#97696 16/09/04 07:36 AM
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
But that isn't what he asked for.

What he asked for was a count for when other people joined the room, not for when he joined the room, mIRC most certainly does know the number of people then.

#97697 18/09/04 02:01 AM
Joined: Aug 2004
Posts: 101
D
Vogon poet
Offline
Vogon poet
D
Joined: Aug 2004
Posts: 101
In this case $nick(#channel,0) should do the trick.
Or in the case of an on join event: $nick($chan,0)


Maybe I wake up one day to notice that all my life was just a dream!

Link Copied to Clipboard