mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Mar 2003
Posts: 2
S
Bowl of petunias
OP Offline
Bowl of petunias
S
Joined: Mar 2003
Posts: 2
Alright I've been able to do this before and its been awhile since I got my hands inside some scripting. So while my questions may seem stupid bare with me and maybe I'll be able to help you some day.

I'm wanting to do as the topic says. I want to halt the default text when I type something to say make my color always a different color (and various other things). In the example I've made my color red. And it works only the input isn't halting its giving both my red line of text and my default "normal" color text.

on 1:INPUT:#:/msg $chan 4 $1- | halt

I've also tried replacing halt with haltdef and I got the same result.

For the other question I've managed to halt the default join message and show the user joining the channel. But I want to also display their host mask too. So any help here is also appreciated.

Also I have a small bot that people flood sometimes. I'm wanting to cause a ontext event to stop responding to that user after he uses the command say three times. And if possible I just want to see an example of how I could make it kick the user instead of just ignoring them.

Joined: Feb 2003
Posts: 83
L
Babel fish
Offline
Babel fish
L
Joined: Feb 2003
Posts: 83
on 1:INPUT:#:/msg $chan 4 $1- | haltdef

works perfectly fine

take this line, and paste it at the very top of ur first remote file...

ive found the placement in code, pending on what else u have coded, can help.

If this does fix it, usually it means u have another on input remote sumwhere and it halts the text b4 it gets to ur remote.

good luck. smile

as for ur other question,

paste the code here, and maybe i can help furthor. smile

Last edited by LO_KEY; 25/03/03 11:09 PM.

any help would make me happy
Joined: Mar 2003
Posts: 31
G
GBX Offline
Ameglian cow
Offline
Ameglian cow
G
Joined: Mar 2003
Posts: 31
on ^1:INPUT:#:/msg $chan 4 $1- | haltdef
very annoying little character wink

Joined: Dec 2002
Posts: 1,527
_
Hoopy frood
Offline
Hoopy frood
_
Joined: Dec 2002
Posts: 1,527
do u need the ^ when u haltdef as opposed to halt??


D3m0nnet.com
Joined: Dec 2002
Posts: 332
C
Fjord artisan
Offline
Fjord artisan
C
Joined: Dec 2002
Posts: 332
i just use halt in mine ? and i dont have a problem ?
on 1:INPUT:*: { /say 08,01 $+ $1- | halt }

Joined: Dec 2002
Posts: 1,527
_
Hoopy frood
Offline
Hoopy frood
_
Joined: Dec 2002
Posts: 1,527
maybe the 6.03 has it worked that way where u dont need the ^ in the prefix of the event to mark it as a halt the regualr output ...... i always thought it had to be there to work since in the help file thats how it says its needed ... oh well i guess ya learn new things everyday


D3m0nnet.com
Joined: Dec 2002
Posts: 2,985
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 2,985
on 1:INPUT:#:/msg $chan 4 $1- | haltdef

works perfectly fine


...except that it will also send the commands you type to the channel.

Code:
ON *:INPUT:#: {
  if (/* !iswm $1) {
    msg # $1-
    haltdef
  }
}


Link Copied to Clipboard