mIRC Home    About    Download    Register    News    Help

Page 1 of 2 1 2 >
Topic Options
#39436 - 03/08/03 05:27 PM help with /write
Obelisk Offline
Pikka bird

Registered: 28/07/03
Posts: 14
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

Top
#39437 - 03/08/03 05:31 PM Re: help with /write
MTec89 Offline
Hoopy frood

Registered: 25/07/03
Posts: 742
Loc: Ohio, U.S.A.
on *:join:#://write Hostmasks.txt $address($nick,1)

1 can be changed to 1 - someodd # around 5


Edited by MTec89 (03/08/03 05:31 PM)
_________________________
http://MTec89Net.com
irc.freenode.net #MTec89Net

Top
#39438 - 03/08/03 05:33 PM Re: help with /write
pheonix Offline
Hoopy frood

Registered: 06/05/03
Posts: 2265
[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-
}
}
_________________________
new username: tidy_trax

Top
#39439 - 03/08/03 05:36 PM Re: help with /write
MTec89 Offline
Hoopy frood

Registered: 25/07/03
Posts: 742
Loc: Ohio, U.S.A.
i dont mean to steal this post but i have a problem with write too

write -c $scriptdir $+ %fullfile

it dont write to $scriptdir
_________________________
http://MTec89Net.com
irc.freenode.net #MTec89Net

Top
#39440 - 03/08/03 05:39 PM Re: help with /write
pheonix Offline
Hoopy frood

Registered: 06/05/03
Posts: 2265
write -c $eval($scriptdir $+ %fullfile,2)
_________________________
new username: tidy_trax

Top
#39441 - 03/08/03 05:39 PM Re: help with /write
Obelisk Offline
Pikka bird

Registered: 28/07/03
Posts: 14
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??


Edited by Obelisk (03/08/03 05:41 PM)

Top
#39442 - 03/08/03 05:40 PM Re: help with /write
MTec89 Offline
Hoopy frood

Registered: 25/07/03
Posts: 742
Loc: Ohio, U.S.A.
nah that didnt work either
_________________________
http://MTec89Net.com
irc.freenode.net #MTec89Net

Top
#39443 - 03/08/03 05:41 PM Re: help with /write
MTec89 Offline
Hoopy frood

Registered: 25/07/03
Posts: 742
Loc: Ohio, U.S.A.
glad i can help wink
_________________________
http://MTec89Net.com
irc.freenode.net #MTec89Net

Top
#39444 - 03/08/03 05:43 PM Re: help with /write
pheonix Offline
Hoopy frood

Registered: 06/05/03
Posts: 2265
try this.

Code:
write -c $eval($scriptdir $+ %fullfile,2) a
_________________________
new username: tidy_trax

Top
#39445 - 03/08/03 05:44 PM Re: help with /write
Obelisk Offline
Pikka bird

Registered: 28/07/03
Posts: 14
BTW...I would like to ping them and write that down too...can u add that somewhere??

Top
#39446 - 03/08/03 05:45 PM Re: help with /write
MTec89 Offline
Hoopy frood

Registered: 25/07/03
Posts: 742
Loc: Ohio, U.S.A.
nah.... what about that $+( thing or whatever?
_________________________
http://MTec89Net.com
irc.freenode.net #MTec89Net

Top
#39447 - 03/08/03 05:46 PM Re: help with /write
pheonix Offline
Hoopy frood

Registered: 06/05/03
Posts: 2265
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-
}


Edited by pheonix (03/08/03 05:51 PM)
_________________________
new username: tidy_trax

Top
#39448 - 03/08/03 05:48 PM Re: help with /write
pheonix Offline
Hoopy frood

Registered: 06/05/03
Posts: 2265
huh?
_________________________
new username: tidy_trax

Top
#39449 - 03/08/03 05:49 PM Re: help with /write
MTec89 Offline
Hoopy frood

Registered: 25/07/03
Posts: 742
Loc: Ohio, U.S.A.
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
_________________________
http://MTec89Net.com
irc.freenode.net #MTec89Net

Top
#39450 - 03/08/03 05:51 PM Re: help with /write
MTec89 Offline
Hoopy frood

Registered: 25/07/03
Posts: 742
Loc: Ohio, U.S.A.
the $(...) thing, with commas
_________________________
http://MTec89Net.com
irc.freenode.net #MTec89Net

Top
#39451 - 03/08/03 05:52 PM Re: help with /write
pheonix Offline
Hoopy frood

Registered: 06/05/03
Posts: 2265
alias test {
echo -a $+(h,ell,o)
echo -a h $+ ell $+ o
}
_________________________
new username: tidy_trax

Top
#39452 - 03/08/03 05:53 PM Re: help with /write
MTec89 Offline
Hoopy frood

Registered: 25/07/03
Posts: 742
Loc: Ohio, U.S.A.
use /write $nick $1- and not just /write $1-
_________________________
http://MTec89Net.com
irc.freenode.net #MTec89Net

Top
#39453 - 03/08/03 05:55 PM Re: help with /write
pheonix Offline
Hoopy frood

Registered: 06/05/03
Posts: 2265
write -c $eval($+($scriptdir,%fullfile,.txt),2) a
presuming its a text file.


Edited by pheonix (03/08/03 05:56 PM)
_________________________
new username: tidy_trax

Top
#39454 - 03/08/03 05:56 PM Re: help with /write
MTec89 Offline
Hoopy frood

Registered: 25/07/03
Posts: 742
Loc: Ohio, U.S.A.
ok, this is reeeally annoying...why doesnt this work for me??
write -c $+( $scriptdir , %fullfile )

i tried with and w/o spaces
_________________________
http://MTec89Net.com
irc.freenode.net #MTec89Net

Top
#39455 - 03/08/03 05:57 PM Re: help with /write
MTec89 Offline
Hoopy frood

Registered: 25/07/03
Posts: 742
Loc: Ohio, U.S.A.
%fullfile has the .html in it
_________________________
http://MTec89Net.com
irc.freenode.net #MTec89Net

Top
Page 1 of 2 1 2 >