mIRC Home    About    Download    Register    News    Help

Print Thread
#61014 19/11/03 12:05 AM
Joined: Sep 2003
Posts: 30
D
DbzDP Offline OP
Ameglian cow
OP Offline
Ameglian cow
D
Joined: Sep 2003
Posts: 30
This is the code:

on *:TEXT:!Peak:#: {
if ($2 == $null) {
/msg $chan %col1 $+ The Peak for: $+ $chr(91) $+ %col2 $+ $chan $+ %col1 $+ $chr(93) is: $+ $chr(91) $+ %col2 $+ $gettok([ % $+ [ max_user $+ [ $chan ] ] ],1,32) $+ %col2 Users $+ 4 $+ $chr(93) set on: $+ $chr(91) $+ %col2 $+ $gettok([ % $+ [ max_user $+ [ $chan ] ] ],2,32) $+ %col1 $+ $chr(93) at: $+ $chr(91) $+ %col2 $+ $gettok([ % $+ [ max_user $+ [ $chan ] ] ],3,32) $+ %col1 $+ $chr(93) GMT: $+ $chr(91) $+ 12 $+ $gmt(z) $+ 4 $+ $chr(93) 4That was: $+ $chr(91) $+ %col2 $+ $duration($calc($ctime - $gettok([ % $+ [ max_user $+ [ $chan ] ] ],4,32))) $+ %col1 $+ $chr(93) ago. Set by: $+ $chr(91) $+ %col2 $+ $gettok([ % $+ [ max_user $+ [ $chan ] ] ],5,32) $+ %col1 $+ $chr(93)
}
if ($2 != $null) {
/msg $chan %col1 $+ The Peak for: $+ $chr(91) $+ %col2 $+ $2 $+ %col1 $+ $chr(93) is: $+ $chr(91) $+%col2 $+ $gettok([ % $+ [ max_user $+ [ $2 ] ] ],1,32) $+ %col2 Users $+ 4 $+ $chr(93) set on: $+ $chr(93) $+ %col2 $+ $gettok([ % $+ [ max_user $+ [ $2 ] ] ],2,32) $+ %col1 $+ $chr(93) at: $+ $chr(91) $+ %col2 $+ $gettok([ % $+ [ max_user $+ [ $2 ] ] ],3,32) $+ %col1 $+ $chr(93) GMT: $+ $chr(91) $+ 12 $+ $gmt(z) $+ 4 $+ $chr(93) That was: $+ $chr(91) $+ %col2 $+ $duration($calc($ctime - $gettok([ % $+ [ max_user $+ [ $2 ] ] ],4,32))) $+ %col1 $+ $chr(93) ago. Set by: $+ $chr(91) $+ %col2 $+ $gettok([ % $+ [ max_user $+ [ $2 ] ] ],5,32) $+ %col1 $+ $chr(93)
}
}

it works fine when some types "!PEAK" but e.g. the peak of the channel is 100. and when the 101 person enters the channel i want it to show they are the 101 person that entered the channel. So they don't have to type "!PEAK".

Last edited by DbzDP; 19/11/03 12:40 AM.
#61015 19/11/03 12:29 AM
Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
Maybe on *:TEXT:!Peak*:#: {

#61016 19/11/03 06:46 AM
Joined: Mar 2003
Posts: 1,271
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Mar 2003
Posts: 1,271
I assume you have some kind of on join check to check if the channel number is larger than the peak? Simply add the following line in the raw event for /names

Code:
if ($nick([color:blue]#channelname[/color],0) > $gettok([ % $+ [ max_user $+ [ $chan ] ] ],1,32)) .notice $nick whatever-goes-here


Check the exact syntax for the raw event to see which token holds the channelname.


DALnet #Helpdesk
I hear and I forget. I see and I remember. I do and I understand. -Confucius
#61017 19/11/03 09:56 AM
Joined: Sep 2003
Posts: 30
D
DbzDP Offline OP
Ameglian cow
OP Offline
Ameglian cow
D
Joined: Sep 2003
Posts: 30
Thanks Lotuousofborg, i think that worked.

#61018 21/11/03 02:28 AM
Joined: Sep 2003
Posts: 30
D
DbzDP Offline OP
Ameglian cow
OP Offline
Ameglian cow
D
Joined: Sep 2003
Posts: 30
I asked someone they told me to chage a lot of stuff with the script (It didn't work at the end), but what "LocutusofBorg" wrote was simple, and works. lol. Now on I will listen to you. Not those people at #mIRC on EFnet.


Thank You.


Link Copied to Clipboard