mIRC Home    About    Download    Register    News    Help

Print Thread
Page 1 of 2 1 2
#123151 20/06/05 10:00 PM
Joined: Jun 2005
Posts: 18
s1cK Offline OP
Pikka bird
OP Offline
Pikka bird
Joined: Jun 2005
Posts: 18
i was wondering
how to change this brackets in mirc default
< nick >
to put in sted of < [


just the only iMage
#123152 20/06/05 10:20 PM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Try..

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


-Andy

Last edited by Mentality; 20/06/05 10:51 PM.
#123153 20/06/05 10:37 PM
Joined: Jun 2005
Posts: 18
s1cK Offline OP
Pikka bird
OP Offline
Pikka bird
Joined: Jun 2005
Posts: 18
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- }
}

#123154 20/06/05 10:52 PM
Joined: Mar 2003
Posts: 612
B
Fjord artisan
Offline
Fjord artisan
B
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
#123155 20/06/05 11:02 PM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
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

#123156 20/06/05 11:11 PM
Joined: Jun 2005
Posts: 3
K
Self-satisified door
Offline
Self-satisified door
K
Joined: Jun 2005
Posts: 3


karlo
My english isn't very good... :| Sorry
#123157 20/06/05 11:27 PM
Joined: Jun 2005
Posts: 18
s1cK Offline OP
Pikka bird
OP Offline
Pikka bird
Joined: Jun 2005
Posts: 18
hmm
tnx smile
on serbian :P
hvala karlo
i lepo od tebe shto si me poslusao i doso na ovaj forum
nece se pokajati


just the only iMage
#123158 20/06/05 11:52 PM
Joined: Jun 2005
Posts: 3
K
Self-satisified door
Offline
Self-satisified door
K
Joined: Jun 2005
Posts: 3
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...


karlo
My english isn't very good... :| Sorry
#123159 21/06/05 11:36 AM
Joined: Jun 2005
Posts: 18
s1cK Offline OP
Pikka bird
OP Offline
Pikka bird
Joined: Jun 2005
Posts: 18
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 ?


just the only iMage
#123160 21/06/05 12:17 PM
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
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
  }
}

#123161 21/06/05 02:21 PM
Joined: Jun 2005
Posts: 18
s1cK Offline OP
Pikka bird
OP Offline
Pikka bird
Joined: Jun 2005
Posts: 18
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:


just the only iMage
#123162 21/06/05 02:22 PM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Replace the # in the on text/on input with * and it will work in private and channel and chat.


Invision Support
#Invision on irc.irchighway.net
#123163 21/06/05 02:24 PM
Joined: Jun 2005
Posts: 18
s1cK Offline OP
Pikka bird
OP Offline
Pikka bird
Joined: Jun 2005
Posts: 18
and what about that nicklist ?


just the only iMage
#123164 21/06/05 02:39 PM
Joined: Mar 2004
Posts: 359
L
Fjord artisan
Offline
Fjord artisan
L
Joined: Mar 2004
Posts: 359
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..

#123165 21/06/05 03:20 PM
Joined: Feb 2005
Posts: 681
M
Fjord artisan
Offline
Fjord artisan
M
Joined: Feb 2005
Posts: 681
yup smile

$iif($nick(#,$me).pnick == $me,$v1,$+($left($v1,1),$me))
$iif($nick(#,$nick).pnick == $nick,$v1,$+($left($v1,1),$nick))

#123166 21/06/05 05:50 PM
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
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.

#123167 21/06/05 06:30 PM
Joined: Jun 2005
Posts: 18
s1cK Offline OP
Pikka bird
OP Offline
Pikka bird
Joined: Jun 2005
Posts: 18
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


just the only iMage
#123168 21/06/05 06:38 PM
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
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

#123169 21/06/05 08:04 PM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
frown Sorry


Invision Support
#Invision on irc.irchighway.net
#123170 21/06/05 08:18 PM
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
lol no need to say sorry man, i have no life so sit here and answer any message i read LOL!

Page 1 of 2 1 2

Link Copied to Clipboard