mIRC Home    About    Download    Register    News    Help

Print Thread
#109136 26/01/05 05:40 AM
Joined: Nov 2004
Posts: 332
R
Fjord artisan
OP Offline
Fjord artisan
R
Joined: Nov 2004
Posts: 332
im looking to write something that sets the limit 2 higher than the number of people in the room when someone joins it will set it 2 higher than the new total
etc
i have seen it i just dont know how to go about doing it
just go ahead and point me in the right direction.
thanks,


The Kodokan will move you, one way or another.
#109137 26/01/05 06:03 AM
Joined: Dec 2002
Posts: 15
I
idk Offline
Pikka bird
Offline
Pikka bird
I
Joined: Dec 2002
Posts: 15
on !*:join:#channel:mode $chan +l $calc($nick(#channel,0) + 2)

#109138 26/01/05 06:08 AM
Joined: Nov 2004
Posts: 332
R
Fjord artisan
OP Offline
Fjord artisan
R
Joined: Nov 2004
Posts: 332
can i get a explanation of how this works
i mean i have a ball park idea but it wouldnt hurt me to learn a little more about $calc

Last edited by ricky_knuckles; 26/01/05 06:10 AM.

The Kodokan will move you, one way or another.
#109139 26/01/05 06:19 AM
Joined: Dec 2002
Posts: 15
I
idk Offline
Pikka bird
Offline
Pikka bird
I
Joined: Dec 2002
Posts: 15
$nick(#channel,0) returns the total users on #channel, so when a user joins #channel it will /mode #channel +l (total number of users + 2)

$calc does the adding part, type //echo -a $calc(2 + 2), it will return 4, u can do addition,subtraction,multiplication etc.. with $calc

#109140 26/01/05 06:20 AM
Joined: Nov 2004
Posts: 332
R
Fjord artisan
OP Offline
Fjord artisan
R
Joined: Nov 2004
Posts: 332
sets the limit to 2 every time


The Kodokan will move you, one way or another.
#109141 26/01/05 06:21 AM
Joined: Dec 2002
Posts: 15
I
idk Offline
Pikka bird
Offline
Pikka bird
I
Joined: Dec 2002
Posts: 15
replace #channel with the channel u want to use it in

#109142 26/01/05 06:25 AM
Joined: Nov 2004
Posts: 332
R
Fjord artisan
OP Offline
Fjord artisan
R
Joined: Nov 2004
Posts: 332
im aware of that


The Kodokan will move you, one way or another.
#109143 26/01/05 06:27 AM
Joined: Dec 2002
Posts: 15
I
idk Offline
Pikka bird
Offline
Pikka bird
I
Joined: Dec 2002
Posts: 15
works for me

#109144 26/01/05 06:31 AM
Joined: Nov 2004
Posts: 332
R
Fjord artisan
OP Offline
Fjord artisan
R
Joined: Nov 2004
Posts: 332
i got it
on !@*:join:#:{
mode $chan +l $calc($nick($chan,0) + 2)
}


The Kodokan will move you, one way or another.
#109145 26/01/05 10:21 AM
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
There is a script that does exactly this, its a channel join flood protector.

#109146 26/01/05 08:23 PM
Joined: Nov 2004
Posts: 332
R
Fjord artisan
OP Offline
Fjord artisan
R
Joined: Nov 2004
Posts: 332
ok... ?


The Kodokan will move you, one way or another.
#109147 26/01/05 08:41 PM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
You don't need the ! prefix there. It will be cancel it out. It will only trigger if you're an op by which you'll already be on the channel.

#109148 27/01/05 09:13 AM
Joined: May 2004
Posts: 132
N
Vogon poet
Offline
Vogon poet
N
Joined: May 2004
Posts: 132
I was thinking... Is there a place where you can see what all the on !@*^: signs mean? I know there are more than the once i just wrote. I am asking because i allways use if ($nick == op) and that is kind of enoying when you can just type 1 or 2 signs :P

So if you can past me a link or type them yourself that would be nice laugh


if ($me != geek) { $life is $false }
else { $life is $true }
NoPleX
#109149 27/01/05 09:43 AM
Joined: Dec 2002
Posts: 15
I
idk Offline
Pikka bird
Offline
Pikka bird
I
Joined: Dec 2002
Posts: 15
/help access levels

#109150 27/01/05 09:52 AM
Joined: May 2004
Posts: 132
N
Vogon poet
Offline
Vogon poet
N
Joined: May 2004
Posts: 132
aaah Thank you mate laugh


if ($me != geek) { $life is $false }
else { $life is $true }
NoPleX

Link Copied to Clipboard