mIRC Home    About    Download    Register    News    Help

Print Thread
Page 1 of 2 1 2
#39436 03/08/03 04:27 PM
Joined: Jul 2003
Posts: 14
O
Obelisk Offline OP
Pikka bird
OP Offline
Pikka bird
O
Joined: Jul 2003
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

#39437 03/08/03 04:31 PM
Joined: Jul 2003
Posts: 742
Hoopy frood
Offline
Hoopy frood
Joined: Jul 2003
Posts: 742
on *:join:#://write Hostmasks.txt $address($nick,1)

1 can be changed to 1 - someodd # around 5

Last edited by MTec89; 03/08/03 04:31 PM.

http://MTec89Net.com
irc.freenode.net #MTec89Net
#39438 03/08/03 04:33 PM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
[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
#39439 03/08/03 04:36 PM
Joined: Jul 2003
Posts: 742
Hoopy frood
Offline
Hoopy frood
Joined: Jul 2003
Posts: 742
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
#39440 03/08/03 04:39 PM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
write -c $eval($scriptdir $+ %fullfile,2)


new username: tidy_trax
#39441 03/08/03 04:39 PM
Joined: Jul 2003
Posts: 14
O
Obelisk Offline OP
Pikka bird
OP Offline
Pikka bird
O
Joined: Jul 2003
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??

Last edited by Obelisk; 03/08/03 04:41 PM.
#39442 03/08/03 04:40 PM
Joined: Jul 2003
Posts: 742
Hoopy frood
Offline
Hoopy frood
Joined: Jul 2003
Posts: 742
nah that didnt work either


http://MTec89Net.com
irc.freenode.net #MTec89Net
#39443 03/08/03 04:41 PM
Joined: Jul 2003
Posts: 742
Hoopy frood
Offline
Hoopy frood
Joined: Jul 2003
Posts: 742
glad i can help wink


http://MTec89Net.com
irc.freenode.net #MTec89Net
#39444 03/08/03 04:43 PM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
try this.

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


new username: tidy_trax
#39445 03/08/03 04:44 PM
Joined: Jul 2003
Posts: 14
O
Obelisk Offline OP
Pikka bird
OP Offline
Pikka bird
O
Joined: Jul 2003
Posts: 14
BTW...I would like to ping them and write that down too...can u add that somewhere??

#39446 03/08/03 04:45 PM
Joined: Jul 2003
Posts: 742
Hoopy frood
Offline
Hoopy frood
Joined: Jul 2003
Posts: 742
nah.... what about that $+( thing or whatever?


http://MTec89Net.com
irc.freenode.net #MTec89Net
#39447 03/08/03 04:46 PM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
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-
}

Last edited by pheonix; 03/08/03 04:51 PM.

new username: tidy_trax
#39448 03/08/03 04:48 PM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
huh?


new username: tidy_trax
#39449 03/08/03 04:49 PM
Joined: Jul 2003
Posts: 742
Hoopy frood
Offline
Hoopy frood
Joined: Jul 2003
Posts: 742
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
#39450 03/08/03 04:51 PM
Joined: Jul 2003
Posts: 742
Hoopy frood
Offline
Hoopy frood
Joined: Jul 2003
Posts: 742
the $(...) thing, with commas


http://MTec89Net.com
irc.freenode.net #MTec89Net
#39451 03/08/03 04:52 PM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
alias test {
echo -a $+(h,ell,o)
echo -a h $+ ell $+ o
}


new username: tidy_trax
#39452 03/08/03 04:53 PM
Joined: Jul 2003
Posts: 742
Hoopy frood
Offline
Hoopy frood
Joined: Jul 2003
Posts: 742
use /write $nick $1- and not just /write $1-


http://MTec89Net.com
irc.freenode.net #MTec89Net
#39453 03/08/03 04:55 PM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
write -c $eval($+($scriptdir,%fullfile,.txt),2) a
presuming its a text file.

Last edited by pheonix; 03/08/03 04:56 PM.

new username: tidy_trax
#39454 03/08/03 04:56 PM
Joined: Jul 2003
Posts: 742
Hoopy frood
Offline
Hoopy frood
Joined: Jul 2003
Posts: 742
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
#39455 03/08/03 04:57 PM
Joined: Jul 2003
Posts: 742
Hoopy frood
Offline
Hoopy frood
Joined: Jul 2003
Posts: 742
%fullfile has the .html in it


http://MTec89Net.com
irc.freenode.net #MTec89Net
Page 1 of 2 1 2

Link Copied to Clipboard