mIRC Homepage
Posted By: Obelisk help with /write - 03/08/03 04:27 PM
i need help, wut i wanna do is have the visitors to my channel, have their .hmsk written to a file...here is wut i have please help me if you can...


on !1:join:#: /write Hostmasks.txt /dns $nick
Posted By: MTec89 Re: help with /write - 03/08/03 04:31 PM
on *:join:#://write Hostmasks.txt $address($nick,1)

1 can be changed to 1 - someodd # around 5
Posted By: pheonix Re: help with /write - 03/08/03 04:33 PM
[untested]
(never used on dns, im just guessing thats how its done.)
Code:
on *:JOIN:#:{
/dns $nick
}
on *:DNS:{
if ($read(hostmask.txt,$+(*,$1-,*),*,w) == $null) {
/write hostmask.txt $nick - $1-
}
}
Posted By: MTec89 Re: help with /write - 03/08/03 04:36 PM
i dont mean to steal this post but i have a problem with write too

write -c $scriptdir $+ %fullfile

it dont write to $scriptdir
Posted By: pheonix Re: help with /write - 03/08/03 04:39 PM
write -c $eval($scriptdir $+ %fullfile,2)
Posted By: Obelisk Re: help with /write - 03/08/03 04:39 PM
MTec89- Its okay, steal it..you helped me and its done now! /me bows down, "IM NOT WORTHY!" lol

Phoenix- I had that script b4 but it didnt work for some reason...


BTW...I would like to ping them and write that down too...can u add that somewhere??
Posted By: MTec89 Re: help with /write - 03/08/03 04:40 PM
nah that didnt work either
Posted By: MTec89 Re: help with /write - 03/08/03 04:41 PM
glad i can help wink
Posted By: pheonix Re: help with /write - 03/08/03 04:43 PM
try this.

Code:
write -c $eval($scriptdir $+ %fullfile,2) a
Posted By: Obelisk Re: help with /write - 03/08/03 04:44 PM
BTW...I would like to ping them and write that down too...can u add that somewhere??
Posted By: MTec89 Re: help with /write - 03/08/03 04:45 PM
nah.... what about that $+( thing or whatever?
Posted By: pheonix Re: help with /write - 03/08/03 04:46 PM
Code:
on *:JOIN:#:{
.ping $nick
.write hostmask.txt $address($nick,1)
}
on *:PONG:*:{
echo -at $1-
}


or

Code:
on *:JOIN:#:{
.write hostmasks.txt $address($nick,1)
.ctcp ping $nick
}
on *:CTCPREPLY:PING:{
.echo -at $1-
}
Posted By: pheonix Re: help with /write - 03/08/03 04:48 PM
huh?
Posted By: MTec89 Re: help with /write - 03/08/03 04:49 PM
on 1:CTCPREPLY:PING*:/write pings.txt $1-

or somthing like that --[untested]--
just put a ping command below the original write, in the other script
Posted By: MTec89 Re: help with /write - 03/08/03 04:51 PM
the $(...) thing, with commas
Posted By: pheonix Re: help with /write - 03/08/03 04:52 PM
alias test {
echo -a $+(h,ell,o)
echo -a h $+ ell $+ o
}
Posted By: MTec89 Re: help with /write - 03/08/03 04:53 PM
use /write $nick $1- and not just /write $1-
Posted By: pheonix Re: help with /write - 03/08/03 04:55 PM
write -c $eval($+($scriptdir,%fullfile,.txt),2) a
presuming its a text file.
Posted By: MTec89 Re: help with /write - 03/08/03 04:56 PM
ok, this is reeeally annoying...why doesnt this work for me??
write -c $+( $scriptdir , %fullfile )

i tried with and w/o spaces
Posted By: MTec89 Re: help with /write - 03/08/03 04:57 PM
%fullfile has the .html in it
Posted By: pheonix Re: help with /write - 03/08/03 04:58 PM
try this then.
.write -c $eval($+(",$scriptdir,%fullfile,"),2)
Posted By: Obelisk Re: help with /write - 03/08/03 04:59 PM
thanks guys.../me bows down..."I'm not worthy!" ...again, thanks, till my next question...! and im sorry, but im not good at scripting yet so i really cant help you, sorry MT
Posted By: MTec89 Re: help with /write - 03/08/03 04:59 PM
im using /download by some dude on ms.org and im trying to make it write to $scriptdir instead of just %fullfile
Posted By: pheonix Re: help with /write - 03/08/03 05:00 PM
in that case, ask the author.
Posted By: MTec89 Re: help with /write - 03/08/03 05:01 PM
Obelisk, thats alrightsomeone out there can help, im sure of that much...just need to find them
Posted By: MTec89 Re: help with /write - 03/08/03 05:02 PM
rofl.... i never though of that! thanks tho...
Posted By: MTec89 Re: help with /write - 03/08/03 05:08 PM
thats no good, i checked his profile on ms.org...
oMri^^ was last seen on the front page 251 days 21 hours 21 minutes 45 seconds ago

;/

if it can be done, can you IM it to me??
yahoo & AIM s/n: MTec89
msn s/n: mtec89@hotmail.com
and icq #: 209976426
Posted By: pheonix Re: help with /write - 03/08/03 05:10 PM
posting the script would be a great help :tongue:
Posted By: MTec89 Re: help with /write - 03/08/03 05:12 PM
well, i didnt say you cant post it, but im going to be doing some scripting, so i wount be checking the site for a while
Posted By: pheonix Re: help with /write - 03/08/03 05:14 PM
i meant you post the script you are trying to fix.
Posted By: MTec89 Re: help with /write - 03/08/03 05:16 PM
rotf...why didnt ya say so?
http://mtec89.cjb.net/scripts.html
click the Threat Level script link, on line 39 there is the write command
Posted By: pheonix Re: help with /write - 03/08/03 06:43 PM
sorry i dont download any "untrusted" files any more.
Posted By: Obelisk Re: help with /write - 03/08/03 07:11 PM
lol,i have another question, lol, now i put a whois on and it wont write, lol, HELP! i know u guys can, cuz ur good...
Posted By: MTec89 Re: help with /write - 03/08/03 07:19 PM
pheonix...chill man, i check all my files, all the time.

and what is it you want to write from the whois?
Posted By: Obelisk Re: help with /write - 03/08/03 07:24 PM
everything, lol, so that way i can get rid of the Hostmask part of the script
Posted By: MTec89 Re: help with /write - 03/08/03 07:34 PM
on *:raw:311://write whois.txt $1-
on *:raw:319://write whois.txt $1-
on *:raw:312://write whois.txt $1-
on *:raw:301://write whois.txt $1-
on *:raw:313://write whois.txt $1-
on *:raw:317://write whois.txt $1-
on *:raw:318://write whois.txt $1-

just whois the nick

http://www.zkelvin.net/script/whois.html
© mIRC Discussion Forums