|
s1cK
|
s1cK
|
i was wondering how to change this brackets in mirc default < nick > to put in sted of < [
|
|
|
|
Joined: Dec 2002
Posts: 3,534
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,534 |
Try..
On ^*:Text:*:#: {
echo -t $chan $+([,$nick,]) $1-
haltdef
} -Andy
Last edited by Mentality; 20/06/05 10:51 PM.
|
|
|
|
s1cK
|
s1cK
|
whel it wors some part but when i type my text it it looks like nothing was changed why that ? allso i get then 2 same message one with regular mIRC brackets < and > and one with replaced and one more thing when nick is op i would like to look like this [@ nick ] is this good then
on ^*:text:*:#: {
if ($nick isop $chan) { echo -t $chan $+([4@,$nick,]) $1- }
if ($nick ishop $chan) { echo -t $chan $+([4%,$nick,]) $1- }
if ($nick isvoice $chan) { echo -t $chan $+([4+,$nick,]) $1- }
if ($nick isreg $chan) { echo -t $chan $+([,$nick,]) $1- }
}
|
|
|
|
Joined: Mar 2003
Posts: 612
Pan-dimensional mouse
|
Pan-dimensional mouse
Joined: Mar 2003
Posts: 612 |
yeah, also you need an on input section for text that you type, this isnt "caught" by the on text event. dont forget your haltdef either.
btk
billythekid
|
|
|
|
Joined: Dec 2002
Posts: 3,534
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,534 |
It can be simplified but I have to go out..
on ^*:text:*:#: {
if ($nick isop $chan) { echo -t $chan $+([,$chr(3), 04, @, $chr(3),$nick) $1- }
if ($nick ishop $chan) { echo -t $chan $+([,$+($chr(3), 04, %, $chr(3)),$nick,]) $1- }
if ($nick isvoice $chan) { echo -t $chan $+([,$+($chr(3), 04, +, $chr(3)),$nick,]) $1- }
if ($nick isreg $chan) { echo -t $chan $+([,$nick,]) $1- }
haltdef
}
On *:Input:#: {
.msg $chan $1-
if ($me isop $chan) { echo -t $chan $+([,$chr(3), 04, @, $chr(3),$me) $1- }
if ($me ishop $chan) { echo -t $chan $+([,$+($chr(3), 04, %, $chr(3)),$me,]) $1- }
if ($me isvoice $chan) { echo -t $chan $+([,$+($chr(3), 04, +, $chr(3)),$me,]) $1- }
if ($me isreg $chan) { echo -t $chan $+([,$me,]) $1- }
halt
}
-Andy
|
|
|
|
s1cK
|
s1cK
|
hmm tnx  on serbian :P hvala karlo i lepo od tebe shto si me poslusao i doso na ovaj forum nece se pokajati
|
|
|
|
k4rL0
|
k4rL0
|
Ok, but I think that your post is lilttle off topic  Anyway, I was on this forum recently, but I didn't registred  Greets to all BTW Did you find something useful in link that I gave you...
|
|
|
|
s1cK
|
s1cK
|
on ^*:text:*:#: {
if ($nick isop $chan) { echo -t $chan $+([,$chr(3), 04, @, $chr(3),$nick) $1- }
if ($nick ishop $chan) { echo -t $chan $+([,$+($chr(3), 04, %, $chr(3)),$nick,]) $1- }
if ($nick isvoice $chan) { echo -t $chan $+([,$+($chr(3), 04, +, $chr(3)),$nick,]) $1- }
if ($nick isreg $chan) { echo -t $chan $+([,$nick,]) $1- }
haltdef
}
On *:Input:#: {
.msg $chan $1-
if ($me isop $chan) { echo -t $chan $+([,$chr(3), 04, @, $chr(3),$me) $1- }
if ($me ishop $chan) { echo -t $chan $+([,$+($chr(3), 04, %, $chr(3)),$me,]) $1- }
if ($me isvoice $chan) { echo -t $chan $+([,$+($chr(3), 04, +, $chr(3)),$me,]) $1- }
if ($me isreg $chan) { echo -t $chan $+([,$me,]) $1- }
halt
}
this is good SladeKraven but i found some error  for example when i want to start mu script dir from script i type //run $scriptdirand it doesnt start it it send that as a message to active channel or window could that be fixed som how ?
|
|
|
|
DaveC
|
DaveC
|
He just forgot to allow for them, i always do as well, then have to go back and add this line.
On *:Input:#: {
if (!$istok(/ $readini($mircini, text, commandchar), $left($1, 1), 32)) && (!$ctrlenter) && (!$inpaste) {
.msg $chan $1-
if ($me isop $chan) { echo -t $chan $+([,$chr(3), 04, @, $chr(3),$me) $1- }
if ($me ishop $chan) { echo -t $chan $+([,$+($chr(3), 04, %, $chr(3)),$me,]) $1- }
if ($me isvoice $chan) { echo -t $chan $+([,$+($chr(3), 04, +, $chr(3)),$me,]) $1- }
if ($me isreg $chan) { echo -t $chan $+([,$me,]) $1- }
halt
}
}
|
|
|
|
s1cK
|
s1cK
|
ok tnx that work now but i found another problem  when i click on that nick in channel he doesnt selec him in nicklist  an one more thing whem im chating on private those brackets are like default mIRC < and > they arn`t changed can u wite that script allso  sorry for bothering u  like i said im newbie and learning :tongue:
|
|
|
|
Joined: Oct 2004
Posts: 8,061
Hoopy frood
|
Hoopy frood
Joined: Oct 2004
Posts: 8,061 |
Replace the # in the on text/on input with * and it will work in private and channel and chat.
|
|
|
|
s1cK
|
s1cK
|
and what about that nicklist ?
|
|
|
|
Joined: Mar 2004
Posts: 358
Fjord artisan
|
Fjord artisan
Joined: Mar 2004
Posts: 358 |
just a tiny suggestion instead of all those if's why not use $nick(#,$nick).pnick for the on text and $nick(#,$me).pnick for the on input..
|
|
|
|
mIRCManiac
|
mIRCManiac
|
yup  $iif($nick(#,$me).pnick == $me,$v1,$+($left($v1,1),$me)) $iif($nick(#,$nick).pnick == $nick,$v1,$+($left($v1,1),$nick))
|
|
|
|
DaveC
|
DaveC
|
and what about that nicklist ? Your outa luck with that, it cant be done with the way you want the nicks appearing. Mirc matches nicks based apon the text your over, [BOB] or [@BOB] well not find well search for [BOB] and maybe BOB] as the nicks becuase [ & ] and valid nick characters, mirc cant tell that your using them to surround the nick, that is why it uses < > i guess sicne you cant have them in a nick.
|
|
|
|
s1cK
|
s1cK
|
so that mean that it cant be done  danm i saw some similar stuf in other script but i couldnt rip it it was to complicated to rip and now if anyone have some thing like this ih hes script plz give it to me  i would like to change a litle bit and etc. im so out of ideas  and that < and > are bored plz help 
|
|
|
|
DaveC
|
DaveC
|
Replace the # in the on text/on input with * and it will work in private and channel and chat. well fail becuase $chan is all over the script. on *:INPUT:#:{ input.event $1- }
on *:INPUT:?:{ input.event $1- }
alias -l input.event {
if (!$istok(/ $readini($mircini, text, commandchar), $left($$1, 1), 32)) && (!$ctrlenter) && (!$inpaste) {
echo -itlbfmrc normal $target $+([,$chr(3), 04, $remove($nick($chan,$me).pnick,$me), $chr(3),$me,]) $1-
.msg $target $1-
halt
}
}
;
on ^*:TEXT:*:#,?: {
echo -itlbfmrc normal $target $+([,$chr(3), 04, $remove($nick($chan,$nick).pnick,$nick), $chr(3),$nick,]) $1-
halt
} Just tested this seems to work ok. There are two INPUT events becuase for what ever reason mirc wont deal with #,? in the ON INPUT Ill also recant what i said about [ ] not letting you select in the nick list, seems to work fine
|
|
|
|
Joined: Oct 2004
Posts: 8,061
Hoopy frood
|
Hoopy frood
Joined: Oct 2004
Posts: 8,061 |
 Sorry
|
|
|
|
DaveC
|
DaveC
|
lol no need to say sorry man, i have no life so sit here and answer any message i read LOL!
|
|
|
|
|