mIRC Homepage
Posted By: s1cK how to change ... - 20/06/05 10:00 PM
i was wondering
how to change this brackets in mirc default
< nick >
to put in sted of < [
Posted By: SladeKraven Re: how to change ... - 20/06/05 10:20 PM
Try..

Code:
On ^*:Text:*:#: {
  echo -t $chan $+([,$nick,]) $1-
  haltdef
}


-Andy
Posted By: s1cK Re: how to change ... - 20/06/05 10:37 PM
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
Code:
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- }
}
Posted By: billythekid Re: how to change ... - 20/06/05 10:52 PM
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
Posted By: SladeKraven Re: how to change ... - 20/06/05 11:02 PM
It can be simplified but I have to go out..

Code:
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
Posted By: k4rL0 Re: how to change ... - 20/06/05 11:11 PM
https://forums.mirc.com/s...p;page=6#128649
smile
Posted By: s1cK Re: how to change ... - 20/06/05 11:27 PM
hmm
tnx smile
on serbian :P
hvala karlo
i lepo od tebe shto si me poslusao i doso na ovaj forum
nece se pokajati
Posted By: k4rL0 Re: how to change ... - 20/06/05 11:52 PM
Ok, but I think that your post is lilttle off topic smile
Anyway, I was on this forum recently, but I didn't registred smile
Greets to all
BTW Did you find something useful in link that I gave you...
Posted By: s1cK Re: how to change ... - 21/06/05 11:36 AM
Code:
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 frown
for example when i want to start mu script dir from script
i type //run $scriptdir
and it doesnt start it
it send that as a message to active channel or window
could that be fixed som how ?
Posted By: DaveC Re: how to change ... - 21/06/05 12:17 PM
He just forgot to allow for them, i always do as well, then have to go back and add this line.

Code:
On *:Input:#: {
  if (!$istok(/ $readini($mircini, text, commandchar), $left($1, 1), 32)) &amp;&amp; (!$ctrlenter) &amp;&amp; (!$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
  }
}
Posted By: s1cK Re: how to change ... - 21/06/05 02:21 PM
ok tnx that work now
but i found another problem smile
when i click on that nick in channel he doesnt selec him in nicklist frown
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 smile
sorry for bothering u frown
like i said im newbie and learning :tongue:
Posted By: Riamus2 Re: how to change ... - 21/06/05 02:22 PM
Replace the # in the on text/on input with * and it will work in private and channel and chat.
Posted By: s1cK Re: how to change ... - 21/06/05 02:24 PM
and what about that nicklist ?
Posted By: LostServ Re: how to change ... - 21/06/05 02:39 PM
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..
Posted By: mIRCManiac Re: how to change ... - 21/06/05 03:20 PM
yup smile

$iif($nick(#,$me).pnick == $me,$v1,$+($left($v1,1),$me))
$iif($nick(#,$nick).pnick == $nick,$v1,$+($left($v1,1),$nick))
Posted By: DaveC Re: how to change ... - 21/06/05 05:50 PM
Quote:
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.
Posted By: s1cK Re: how to change ... - 21/06/05 06:30 PM
so that mean that it cant be done frown
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 smile
i would like to change a litle bit and etc.
im so out of ideas confused and that < and > are bored
plz help crazy
Posted By: DaveC Re: how to change ... - 21/06/05 06:38 PM
Quote:
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.

Code:
on *:INPUT:#:{ input.event $1- }
on *:INPUT:?:{ input.event $1- }
alias -l input.event {
  if (!$istok(/ $readini($mircini, text, commandchar), $left($$1, 1), 32)) &amp;&amp; (!$ctrlenter) &amp;&amp; (!$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
Posted By: Riamus2 Re: how to change ... - 21/06/05 08:04 PM
frown Sorry
Posted By: DaveC Re: how to change ... - 21/06/05 08:18 PM
lol no need to say sorry man, i have no life so sit here and answer any message i read LOL!
Posted By: SladeKraven Re: how to change ... - 21/06/05 08:58 PM
Quote:

He just forgot to allow for them, i always do as well, then have to go back and add this line.


Yep I did, ooops! blush

I did say it wouldn't be too accurate but not in so many words but I was so rushed yesterday, had so many things to do. frown

P.S. You're right, I have become cowboyatized! Good to see you again buddy! smile

-Andy
Posted By: Riamus2 Re: how to change ... - 22/06/05 12:39 PM
Heh... well, I'm answering messages from work, so... laugh
Posted By: Intruder_BG Re: how to change ... - 22/06/05 11:01 PM
It would be great if somebody could create one post with complete code laugh

Please do it for us newbies laugh
Posted By: DaveC Re: how to change ... - 23/06/05 02:40 AM
i did, didnt i ?
© mIRC Discussion Forums