mIRC Home    About    Download    Register    News    Help

Print Thread
user's IP #61439 22/11/03 03:37 PM
Joined: Nov 2003
Posts: 81
F
FMJ Offline OP
Babel fish
OP Offline
Babel fish
F
Joined: Nov 2003
Posts: 81
how to save user's IP in a var? is possible? thanks

Re: user's IP #61440 22/11/03 04:03 PM
Joined: Apr 2003
Posts: 414
Adrenalin Offline
Fjord artisan
Offline
Fjord artisan
Joined: Apr 2003
Posts: 414
set %Ip = $addtok(%Ip,$address($nick,2),32)
But take care.. The max lengh of a var is ~800 symbols.


mIRC Chm Help 6.16.0.3 Full Anchored!
Re: user's IP #61441 22/11/03 04:07 PM
Joined: Nov 2003
Posts: 81
F
FMJ Offline OP
Babel fish
OP Offline
Babel fish
F
Joined: Nov 2003
Posts: 81
Quote:

But take care.. The max lengh of a var is ~800 symbols.

so? I don't understand...?

Re: user's IP #61442 22/11/03 04:20 PM
Joined: Apr 2003
Posts: 414
Adrenalin Offline
Fjord artisan
Offline
Fjord artisan
Joined: Apr 2003
Posts: 414
In one var you can save max. ~27 ips.
You can write to a file the ip's..
write file.txt $remove($address($nick,2),*!*@)
And to find if the ip exist in the file use $read(file.txt,s,$address($nick,2))


mIRC Chm Help 6.16.0.3 Full Anchored!
Re: user's IP #61443 22/11/03 04:31 PM
Joined: Nov 2003
Posts: 81
F
FMJ Offline OP
Babel fish
OP Offline
Babel fish
F
Joined: Nov 2003
Posts: 81
but it's not the real IP... confused
ip019-11-2.dialup.edisontel.com
ip is for example 180.92.102.29


Last edited by FMJ; 22/11/03 04:44 PM.
Re: user's IP #61444 22/11/03 04:34 PM
Joined: Apr 2003
Posts: 414
Adrenalin Offline
Fjord artisan
Offline
Fjord artisan
Joined: Apr 2003
Posts: 414
Show me the full script where you use that..


mIRC Chm Help 6.16.0.3 Full Anchored!
Re: user's IP #61445 22/11/03 04:53 PM
Joined: Nov 2003
Posts: 81
F
FMJ Offline OP
Babel fish
OP Offline
Babel fish
F
Joined: Nov 2003
Posts: 81
but it's not the real IP...
ip019-11-2.dialup.edisontel.com
real IP is for example 180.92.102.29

Re: user's IP #61446 22/11/03 04:56 PM
Joined: Apr 2003
Posts: 414
Adrenalin Offline
Fjord artisan
Offline
Fjord artisan
Joined: Apr 2003
Posts: 414
Then you need to check if that is ip or not.. If not dns it..
var %host = $remove($address($nick,2),*!*@)
if ($right(%host,1) isletter) {
dns %host
}
else {
write file.tx %host
}t
write
on 1:DNS:{
var %n = $dns(0)
while (%n > 0) {
write file.txt $dns(%n).ip
dec %n
}
}



mIRC Chm Help 6.16.0.3 Full Anchored!
Re: user's IP #61447 22/11/03 05:16 PM
Joined: Nov 2003
Posts: 81
F
FMJ Offline OP
Babel fish
OP Offline
Babel fish
F
Joined: Nov 2003
Posts: 81
there is a syntax error...
but the first part where I put?

Re: user's IP #61448 23/11/03 11:05 AM
Joined: Jun 2003
Posts: 68
D
Dr4g0n Offline
Babel fish
Offline
Babel fish
D
Joined: Jun 2003
Posts: 68
create dns.mrc or whatever put this [censored] in: [and ip.txt]

var %host = $remove($address($nick,2),*!*@)
if ($right(%host,1) isletter) {
dns %host
}
else {
write ip.txt %host
}
write
on 1:DNS:{
var %n = $dns(0)
while (%n > 0) {
write ip.txt $dns(%n).ip
dec %n
}
}

and load the sucker and boom youre pc explodes i should watch out
have you read and improved the script that was posted?

Re: user's IP #61449 23/11/03 01:29 PM
Joined: Nov 2003
Posts: 81
F
FMJ Offline OP
Babel fish
OP Offline
Babel fish
F
Joined: Nov 2003
Posts: 81
I don't understand about dns.mrc but I used:
Code:
on 1:DNS:{
var %n = $dns(0)
while (%n > 0) {
write ip.txt $dns(%n).ip
dec %n
}
}
 

and it works... thanks