mIRC Home    About    Download    Register    News    Help

Topic Options
#239120 - 23/09/12 08:39 PM user says target text within X-secs of joining
displayname Offline
Pikka bird

Registered: 15/09/12
Posts: 12
This sounds like a simple script, but am I correct in saying that it's impossible to do with just the on-join event? Won't I also need the on-text? Could I get away with simply setting a var then unsetting it in 60secs, then matching that against the target text?
I have quite a few good working scripts that will easily work from 1st instance of text event to multiple times, and so on, but trying to do this "within the first 60 seconds of joining" only has got me stumbled.
More importantly, I want to do this against all joiners individually (except opers obviously) so I don't want one joiner to reset the previous joiner's timer, won't that complicate things or should I not worry about that part? Will using $address($nick,2) be sufficient here?


Edited by displayname (23/09/12 09:27 PM)

Top
#239122 - 23/09/12 10:58 PM Re: user says target text within X-secs of joining [Re: displayname]
Tomao Offline
Hoopy frood

Registered: 07/07/07
Posts: 1129
Loc: United States
Why don't you get to the point of what you're trying to do?

Top
#239123 - 23/09/12 11:02 PM Re: user says target text within X-secs of joining [Re: Tomao]
displayname Offline
Pikka bird

Registered: 15/09/12
Posts: 12
Sorry if that was too vague. I'm trying to K/B a user if they post certain text within 60 secs of joining a room.

Top
#239126 - 24/09/12 12:26 AM Re: user says target text within X-secs of joining [Re: displayname]
pball Offline
Fjord artisan

Registered: 04/11/09
Posts: 295
What about this?

Code:
on *:join:#: set -u60 $+(%,60sec_,$nick) 1

on *:text:*:#: if ($1- == don't ban me) && ($($+(%,60sec_,$nick),2)) kick $chan $nick


Make a variable with the persons nick that is unset after 60 seconds. When something is said check if it's bad and that nicks variable still exists
_________________________
http://scripting.pball.win
My personal site with some scripts I've released.

Top
#239127 - 24/09/12 04:21 AM Re: user says target text within X-secs of joining [Re: pball]
displayname Offline
Pikka bird

Registered: 15/09/12
Posts: 12
Yes, this is exactly what I was trying to say that I needed in the first paragraph at the start of the thread. I thought somehow you could combine the two events. This works perfectly thanks much. smile

Top