mIRC Home    About    Download    Register    News    Help

Print Thread
#15022 12/03/03 01:30 AM
S
surge
surge
S
ive figured out how to block out the default *** chanserv sets mode: +o $nick and replace it with what i want, using this..

on ^1:OP:#:echo $chan *** 10[Op10] $opnick by $nick | halt

but how would i change the < and > around peoples nicks when the send a msg, to [ and ] ? like...

<surge> hi
to
[surge] hi

thanks smile

#15023 12/03/03 01:40 AM
B
BlackAle
BlackAle
B
Try this...

Code:
 
on *:INPUT:#: {
  echo $color(own text) -t $+($chr(91), $me, $chr(93), $chr(32), $1-)
  haltdef
}

#15024 12/03/03 01:41 AM
Joined: Dec 2002
Posts: 3,015
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,015
This post has a nice bit of code which should help you.

#15025 12/03/03 05:11 AM
B
BlackAle
BlackAle
B
er, forget what I said earlier, I had a moment of insanity. crazy

#15026 12/03/03 10:09 AM
S
ScripTeas
ScripTeas
S
it looks like that link is down so try something like this

on ^*:TEXT:*:#:{
if ($nick isop $chan) { echo -t $chan « $+ @ $+ $nick $+ » $1- | haltdef }
elseif ($nick isvo $chan) { echo -t $chan « $+ + $+ $nick $+ » $1- | haltdef }
else { echo -t $chan « $+ $nick $+ » $1- | haltdef }
}

yo might want to use the on action event also but this is a good example

#15027 12/03/03 11:24 AM
Joined: Dec 2002
Posts: 395
M
Fjord artisan
Offline
Fjord artisan
M
Joined: Dec 2002
Posts: 395
Code:
on ^*:TEXT:*:#:{ 
  echo -tlbfmri2 $chan $+($chr(91),$nick($chan,$nick).pnick,$chr(93)) $1-
  haltdef
}

#15028 12/03/03 01:23 PM
A
acemiles_ed
acemiles_ed
A

#15029 13/03/03 07:47 PM
Joined: Jan 2003
Posts: 1,057
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2003
Posts: 1,057
Code:
;### TEXT CHANGE: TEXT ###;
;# CHANNEL #;
on ^*:TEXT:*:#: {
  echo $color(text) -tmli3 $target (MSG) $+(&lt;,$left($replace($nick($chan,$nick).pnick,$nick,$null),1),$nick,&gt;) $1-
  haltdef
}


this bit of pnick usage will fix the hotlink-bug you get when people have more then 1 mode ;-]

#15030 29/03/03 10:06 PM
N
Nanaki
Nanaki
N
Ok, it seems like you guys know what you are talking about, so I decided to post my problem here:

First off, here's my current code:
Code:
 /back {
  /ame is Back from:  $+ %away $+ 
  /nick %Regnick
  /unset -s %away
  /unset -s %aways
  /away
  halt
}


The problem is, I don't want the text "* Unset %away" and "* Unset %aways" to appear, but it does. The halt and haltdef commands don't affect these messages being seen.

I have a slight feeling this might work if I put this into the remotes, using the alias command... would this affect it? I wouldn't know :-|.
Thanks!

#15031 29/03/03 10:14 PM
Joined: Dec 2002
Posts: 395
M
Fjord artisan
Offline
Fjord artisan
M
Joined: Dec 2002
Posts: 395
Just remove the -s switches, and you don't need 'halt' at all..

#15032 30/03/03 12:02 AM
N
Nanaki
Nanaki
N
Thanks.
I knew it would be something simple, but I didn't know what.
I don't even know why I was using the -s switches in the first place!

#15033 19/09/03 08:27 PM
D
Dylan666
Dylan666
D
Could you explain me how "-s" work? I red about it in mIRC's help file in Aliases section. But there it's only mentioned... Where is the explanation in the help file?

#15034 19/09/03 08:31 PM
R
r0ck0
r0ck0
R
in mIRC type
/set -s %test test
/unset -s %test

then try it without -s
/set %test test
/unset %test

-
* Set %test to test
-
* Unset %test
-


Link Copied to Clipboard