mIRC Home    About    Download    Register    News    Help

Print Thread
#99259 30/09/04 01:28 AM
Joined: Sep 2004
Posts: 85
G
Babel fish
OP Offline
Babel fish
G
Joined: Sep 2004
Posts: 85
can someone help me out, i got this
on *:SNOTICE:*did a /whois on you.*:{
if ( %whois.number == $null ) {
set %whois.number 1
}
.notice $nick 14%%% 15 You are the 9 %whois.number th 15 person to /whois me. 14%%%
inc %whois.number
}

and what i want it to do is /notice a person if they /whois me with You are the __th person to /whois me. i cant figure this out, also, someone told me before but i lost where it was, how do you silence server notices?

#99260 30/09/04 02:34 AM
Joined: Apr 2003
Posts: 85
K
Babel fish
Offline
Babel fish
K
Joined: Apr 2003
Posts: 85
well first $nick did not trigger the event .. the server did .. so you have to capture the nick from the snotice it's self .. probably $3 or $4.

Second, use haltdef and an upcarrot ^

on ^*:snotice:*: { stuff in here | haltdef }


--

katsklaw
Rather experienced Admin
Rather experienced mIRC Scripter
Amateur C Coder
#99261 30/09/04 02:45 AM
Joined: Sep 2004
Posts: 85
G
Babel fish
OP Offline
Babel fish
G
Joined: Sep 2004
Posts: 85
thx for the help, btw, it was $2, here is the script if anyone else wants to use it:

on ^*:SNOTICE:*did a /whois on you.*:{
if ( %whois.number == $null ) {
set %whois.number 1
}
.notice $2 14%%% 15 You are the 9 %whois.number th 15 person to /whois me. 14%%% | haltdef
inc %whois.number
}

#99262 30/09/04 02:54 AM
Joined: Mar 2004
Posts: 457
D
Fjord artisan
Offline
Fjord artisan
D
Joined: Mar 2004
Posts: 457
you might want to change it to set %whois.number 0 and swap the positions of the notice and inc around, that way it will count properly.

Oh, and you might want to use $ord instead of just using "th".

#99263 30/09/04 10:07 AM
Joined: Sep 2004
Posts: 85
G
Babel fish
OP Offline
Babel fish
G
Joined: Sep 2004
Posts: 85
k, thx for the improvements, also, how could i get it so if someone does a /whois on my 2 or more times every 5 mins, it /kill's them?, but if they do it once a minute, to just gives them that notice?

#99264 30/09/04 09:05 PM
Joined: Apr 2003
Posts: 85
K
Babel fish
Offline
Babel fish
K
Joined: Apr 2003
Posts: 85
ok know I have to ask .. why do you care if someone /whois' you? It's harmless and you can't be flooded by it.


--

katsklaw
Rather experienced Admin
Rather experienced mIRC Scripter
Amateur C Coder
#99265 30/09/04 10:10 PM
Joined: Sep 2004
Posts: 85
G
Babel fish
OP Offline
Babel fish
G
Joined: Sep 2004
Posts: 85
i'm just very curious, and would like to know when someone is wondering something about me(which is why most people would do a /whois on someone, cause they want/need something, and are checking their idle time)

#99266 01/10/04 02:17 AM
Joined: Apr 2003
Posts: 85
K
Babel fish
Offline
Babel fish
K
Joined: Apr 2003
Posts: 85
then why /kill them for doing harmless things?


--

katsklaw
Rather experienced Admin
Rather experienced mIRC Scripter
Amateur C Coder
#99267 01/10/04 02:22 AM
Joined: Sep 2004
Posts: 85
G
Babel fish
OP Offline
Babel fish
G
Joined: Sep 2004
Posts: 85
to let them know that they dont need to /whois me, they can just msg me

#99268 01/10/04 11:57 AM
Joined: Feb 2003
Posts: 3,432
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
If some oper on a network killed me for doing a /whois on him, then i would leav that network faster then u can say /kill .. thats somthing i call power abuse, and if you want users on your server/network, then i should be carefull with how i act to my users.. remember a server/network needs the users, without the users you dont need the server at all.. just somthing i got to think about when i saw this post..


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
#99269 01/10/04 03:27 PM
Joined: Apr 2003
Posts: 85
K
Babel fish
Offline
Babel fish
K
Joined: Apr 2003
Posts: 85
I guess what I'm getting at is that you don't need to know that they are /whois'ing you. /whois is harmless .. and in very worse case the user will flood himself off the server.


--

katsklaw
Rather experienced Admin
Rather experienced mIRC Scripter
Amateur C Coder

Link Copied to Clipboard