mIRC Home    About    Download    Register    News    Help

Print Thread
#16226 21/03/03 04:02 AM
Joined: Dec 2002
Posts: 27
J
Jon Offline OP
Ameglian cow
OP Offline
Ameglian cow
J
Joined: Dec 2002
Posts: 27
when i do the /whois
it come out like

mily is [email]java@210.245.19.18[/email] * Lisa love you
mily on #loby
mily has been idle 1sec, signed on Thu Mar 20 19:22:25
mily End of /WHOIS list.

Look at the end of the first line had " Lisa love you"

i would like to check every one who join in to #loby with the end of first line included the word Lisa, then auto message "i'm here honey'

is that any way to do with
on *:join:*:
if (lisa isin $fulladdress) { msg $nick i'm here honey }

but it not work because can't use $fulladdress for that .

thanks in advance

#16227 21/03/03 12:04 PM
Joined: Mar 2003
Posts: 272
C
Fjord artisan
Offline
Fjord artisan
C
Joined: Mar 2003
Posts: 272
Code:
On *:JOIN:#Loby:{ .whois $nick | .enable #lisa }

#lisa off
raw 311:*:{
if (lisa isin $gettok($1-,2,42)) { msg $nick I'm here honey! | halt }
else { halt }
}
raw 319:*:{ halt }
raw 312:*:{ halt }
raw 317:*:{ halt }
raw 318:*:{ .disable #lisa | halt }
#lisa end


This basically whoises the user without you knowing (hence all the halts) and looks for the word lisa in their 'realname' field. This code use the RAWs from ConferenceRoom 2.0.2 so if you're on a different network, you might need to change those depending on what custom fields the server admins implemented.

Hope it helps.


- cF
Dedicated helper for rent.
#16228 21/03/03 09:04 PM
Joined: Dec 2002
Posts: 27
J
Jon Offline OP
Ameglian cow
OP Offline
Ameglian cow
J
Joined: Dec 2002
Posts: 27
thanks c0ldfusi0n
that work so good

would you please help me one more
in that script please make that /msg $me $nick is Lisa with ID & IP $nick 2

"$nick 2 " i mean *@210.245.19.18
thanks you c0ldfusi0n

#16229 22/03/03 12:47 AM
Joined: Mar 2003
Posts: 272
C
Fjord artisan
Offline
Fjord artisan
C
Joined: Mar 2003
Posts: 272
Code:
On *:JOIN:#Loby:{ .whois $nick | .enable #lisa }
#lisa off
raw 311:*:{
if (lisa isin $gettok($1-,2,42)) { msg $nick I'm here honey! | echo -a $nick is Lisa with ID & IP $nick $3 | halt }
else { halt }}
raw 319:*:{ halt }
raw 312:*:{ halt }
raw 317:*:{ halt }
raw 318:*:{ .disable #lisa | halt }
#lisa end


- cF
Dedicated helper for rent.
#16230 22/03/03 01:26 AM
Joined: Dec 2002
Posts: 27
J
Jon Offline OP
Ameglian cow
OP Offline
Ameglian cow
J
Joined: Dec 2002
Posts: 27
to c0ldfusi0n
it still can't show the IP
any other way c0ldfusi0n ?

jon

#16231 22/03/03 02:46 AM
Joined: Mar 2003
Posts: 272
C
Fjord artisan
Offline
Fjord artisan
C
Joined: Mar 2003
Posts: 272
It should show the IP, what does it returns?


- cF
Dedicated helper for rent.
#16232 22/03/03 03:22 AM
Joined: Dec 2002
Posts: 332
C
Fjord artisan
Offline
Fjord artisan
C
Joined: Dec 2002
Posts: 332
the ip should be $4 and the realname would be $6- if thats what your asking for ?

something like
echo -a Lisa is $nick $4 $6-
hope that helps

#16233 22/03/03 06:30 AM
Joined: Dec 2002
Posts: 27
J
Jon Offline OP
Ameglian cow
OP Offline
Ameglian cow
J
Joined: Dec 2002
Posts: 27
yahhhhooooooo that work

thanks Cheech & c0ldfusi0n
finnally i use $4 then it come out the IP

it work good now , thanks again for your help .
i wonder how you guy know all that thing smile
that super

jon


Link Copied to Clipboard