mIRC Homepage
Posted By: JuZt3r $read help - 03/07/03 02:37 PM
Hi there. need some help with a script that i cant make work
i have
on *:text:*as:?:l*if ($read(asl.txt, w, * $+ $nick $+ * != $null) halt } | /msg nick blablablalbal dont asl me.

if nick is in the asl.txt i will not msg him "blablablalbal dont asl me."
what is wrong with that ?


Posted By: feud Re: $read help - 03/07/03 02:49 PM
on *:text:*asl*:?: { if (!$read(asl.txt, w $+(*,$nick,*))) { msg $nick foo don't asl me | halt } }
Posted By: JuZt3r Re: $read help - 03/07/03 03:04 PM
thanx. didt want to make another thread so i just used this one.

I also want to use inc thing
so i used this

on *:text:*asl*:?: { if (!$read(asl.txt, w $+(*,$nick,*) ) { msg $nick foo don't asl me } } | /set % $+ $nick | /inc % $+ $nick 1

but this dosn`t work.;( so i ask you guys AGAIN. i want the %nick to inc with 1 every time he asl`s me.
Posted By: SladeKraven Re: $read help - 03/07/03 08:15 PM
The /set and /inc % $+ %nick need to be inside the brackets.
You're also one ) short.
Code:
on *:text:*asl*:?: { 
if (!$read(asl.txt, w $+(*,$nick,*))[color:red])[/color]  
query $nick foo don't asl me.
close -m $nick
ignore -u60 $nick 
}
set % $+ $nick
inc % $+ $nick 1
}


* Added SladeKraven!*@* to ignore list for 60 secs
-
* Removed SladeKraven!*@* from the ignore list

You don't have to use close -m $nick or ignore -u60 but I would so you don't actually see the "asl" message. grin
© mIRC Discussion Forums