mIRC Home    About    Download    Register    News    Help

Print Thread
#33797 03/07/03 02:37 PM
Joined: Dec 2002
Posts: 14
J
JuZt3r Offline OP
Pikka bird
OP Offline
Pikka bird
J
Joined: Dec 2002
Posts: 14
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 ?



#33798 03/07/03 02:49 PM
Joined: Dec 2002
Posts: 127
F
Vogon poet
Offline
Vogon poet
F
Joined: Dec 2002
Posts: 127
on *:text:*asl*:?: { if (!$read(asl.txt, w $+(*,$nick,*))) { msg $nick foo don't asl me | halt } }


------
deep down, i'm really superficial.
#33799 03/07/03 03:04 PM
Joined: Dec 2002
Posts: 14
J
JuZt3r Offline OP
Pikka bird
OP Offline
Pikka bird
J
Joined: Dec 2002
Posts: 14
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.

Last edited by JuZt3r; 03/07/03 03:32 PM.
#33800 03/07/03 08:15 PM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
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


Link Copied to Clipboard