mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jun 2003
Posts: 10
M
mohawk Offline OP
Pikka bird
OP Offline
Pikka bird
M
Joined: Jun 2003
Posts: 10
ok i am in a channel called #help on this server there is a warez channel mad well some ppl think cause we are a #help we can help unban them from warez or help them with warez i am TIRED of typing over and overon channel cause ppl can't read the topic it says ** Please note we won't be able to assist with any warez related queries! **

here is what i have but it does not work like i want i want it to check var %saywarez if that = 1 then halt else set %saywarez 1 set a 1 time timer for 30 sec to set %saywarez 0 and to say as the TOPIC states ** Please note we won't be able to assist with any warez related queries! **

reason for the timer and the var is so some moron don't come in and type
warez
warez
warez
and i spam the chan
so this is what i have BUT it just types ** Please note we won't be able to assist with any warez related queries! ** every time warez is put in channel even when it is put in chan 2 sec apart can someone help

on 1:TEXT:*warez*:#testingstuff:if %saywarez == 1 halt else /set %saywarez 1 | /timer20 1 30 set %saywarez 0 | /msg #testingstuff as the TOPIC states ** Please note we won't be able to assist with any warez related queries! **

Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Code:
on 1:TEXT:*warez*:#testingstuff: { 
  if (%saywarez == 1)  { halt } 
  else { set %saywarez 1 | timer20 1 30 set %saywarez 0 | msg #testingstuff as the TOPIC states ** Please note we won't be able to assist with any warez related queries! **
  }
}


(18:43) <+SladeKraven> warez
(18:43) <@DarkOne> as the TOPIC states ** Please note we won't be able to assist with any warez related queries! **
(18:43) <+SladeKraven> warez
(18:43) <+SladeKraven> warez
(18:43) <+SladeKraven> warez

Joined: Jun 2003
Posts: 10
M
mohawk Offline OP
Pikka bird
OP Offline
Pikka bird
M
Joined: Jun 2003
Posts: 10
so i forgot the dam brackets DAM

Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
Just a suggestion, usually those kind of scripts are more annoying than good. For example if someone says "I hate warez" your script is going to tell them you don't help with warez. Or if someone else says "we don't help with warez" your script is going to repeat that.

Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
on *:TEXT:*can*help*warez*:#:{


new username: tidy_trax
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
Even still, "sorry we can't help you with warez" matches that.
Or "we can't provide help for warez". There really is no 100% accurate method.

Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
on *:TEXT:*can*help*me*warez*:#:{


new username: tidy_trax
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
Ok this is the last one I'm gonna reply to, simply because you seem to insist you can find an expression that is totally accurate, even though you can't. First off that will generate TONS of false negatives:
"where can I get warez?"
"anyone have warez?"
"and warez fservs here?"
etc.
None of those are matched.

And it also generates false positives:
"well why can't you help me with warez?"
"can you help me? I downloaded some warez and now I have a virus"
etc.

Again, it's much more accurate to just do it by hand.

Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
fine then, you could use mine and various others, but instead of msg,you can use:

on *:TEXT:*help*me*warez*:#:{
/editbox $chan sorry,we dont help with warez.
}

then its up to the person whether to send it or not


new username: tidy_trax
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
What if they get a private message at the exact same time and accidently hit enter. Not very good chances, but it could happen.

Code:
on *:TEXT:*help*me*warez*:#: {
 if ($target(ischan)) {
 editbox $chan sorry,we dont help with warez.
 }
}

Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
when i get a private message i just make it innactive


new username: tidy_trax
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
But you're not the original poster are you?
I was just saying incase the original poster doesn't make it inactive. smile

Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
i was saying that so it might give him the idea to make it innactive grin


new username: tidy_trax
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Quote:

i was saying that so it might give him the idea to make it innactive

I guess we'll never know what the original poster's intentions will be. grin


Link Copied to Clipboard