|
Joined: Jun 2005
Posts: 18
Pikka bird
|
OP
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
|
|
|
|
Joined: Dec 2002
Posts: 3,547
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,547 |
Try..
On ^*:Text:*:#: {
echo -t $chan $+([,$nick,]) $1-
haltdef
} -Andy
Last edited by Mentality; 20/06/05 10:51 PM.
|
|
|
|
Joined: Jun 2005
Posts: 18
Pikka bird
|
OP
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
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
Fjord artisan
|
Fjord artisan
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,547
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,547 |
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
|
|
|
|
Joined: Jun 2005
Posts: 3
Self-satisified door
|
Self-satisified door
Joined: Jun 2005
Posts: 3 |
karlo My english isn't very good... :| Sorry
|
|
|
|
Joined: Jun 2005
Posts: 18
Pikka bird
|
OP
Pikka bird
Joined: Jun 2005
Posts: 18 |
hmm tnx 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
|
|
|
|
Joined: Jun 2005
Posts: 3
Self-satisified door
|
Self-satisified door
Joined: Jun 2005
Posts: 3 |
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...
karlo My english isn't very good... :| Sorry
|
|
|
|
Joined: Jun 2005
Posts: 18
Pikka bird
|
OP
Pikka bird
Joined: Jun 2005
Posts: 18 |
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 ?
just the only iMage
|
|
|
|
Joined: Sep 2003
Posts: 4,230
Hoopy frood
|
Hoopy frood
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.
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
}
}
|
|
|
|
Joined: Jun 2005
Posts: 18
Pikka bird
|
OP
Pikka bird
Joined: Jun 2005
Posts: 18 |
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:
just the only iMage
|
|
|
|
Joined: Oct 2004
Posts: 8,330
Hoopy frood
|
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
|
|
|
|
Joined: Jun 2005
Posts: 18
Pikka bird
|
OP
Pikka bird
Joined: Jun 2005
Posts: 18 |
and what about that nicklist ?
just the only iMage
|
|
|
|
Joined: Mar 2004
Posts: 359
Fjord artisan
|
Fjord artisan
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..
|
|
|
|
Joined: Feb 2005
Posts: 681
Fjord artisan
|
Fjord artisan
Joined: Feb 2005
Posts: 681 |
yup $iif($nick(#,$me).pnick == $me,$v1,$+($left($v1,1),$me)) $iif($nick(#,$nick).pnick == $nick,$v1,$+($left($v1,1),$nick))
|
|
|
|
Joined: Sep 2003
Posts: 4,230
Hoopy frood
|
Hoopy frood
Joined: Sep 2003
Posts: 4,230 |
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.
|
|
|
|
Joined: Jun 2005
Posts: 18
Pikka bird
|
OP
Pikka bird
Joined: Jun 2005
Posts: 18 |
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
just the only iMage
|
|
|
|
Joined: Sep 2003
Posts: 4,230
Hoopy frood
|
Hoopy frood
Joined: Sep 2003
Posts: 4,230 |
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,330
Hoopy frood
|
Hoopy frood
Joined: Oct 2004
Posts: 8,330 |
Sorry
Invision Support #Invision on irc.irchighway.net
|
|
|
|
Joined: Sep 2003
Posts: 4,230
Hoopy frood
|
Hoopy frood
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!
|
|
|
|
Joined: Dec 2002
Posts: 3,547
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,547 |
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! 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. P.S. You're right, I have become cowboyatized! Good to see you again buddy! -Andy
|
|
|
|
Joined: Oct 2004
Posts: 8,330
Hoopy frood
|
Hoopy frood
Joined: Oct 2004
Posts: 8,330 |
Heh... well, I'm answering messages from work, so...
Invision Support #Invision on irc.irchighway.net
|
|
|
|
Joined: Jun 2005
Posts: 5
Nutrimatic drinks dispenser
|
Nutrimatic drinks dispenser
Joined: Jun 2005
Posts: 5 |
It would be great if somebody could create one post with complete code Please do it for us newbies
Real power is never given, it is TAKEN!
|
|
|
|
Joined: Sep 2003
Posts: 4,230
Hoopy frood
|
Hoopy frood
Joined: Sep 2003
Posts: 4,230 |
|
|
|
|
|