|
|
Joined: Jan 2005
Posts: 31
Ameglian cow
|
OP
Ameglian cow
Joined: Jan 2005
Posts: 31 |
on ^*:text:*:#:{
if $nick isop { echo $chan $timestamp %colornick-op < $+ $nick $+ > $1- | haltdef }
if $nick ishop { echo $chan $timestamp %colornick-half11< $+ %colornick-half $nick $+ 11> $1- | haltdef }
if $nick isreg { echo $chan $timestamp %colornick-voice< $+ $nick $+ > $1- | haltdef }
if $nick isvo { echo $chan $timestamp %colornick-reg< $+ $nick $+ > $1- | haltdef }
} ... * /if: invalid format (line 2, script8.mrc) i am probably missing something obvious but i am too tired to think 
|
|
|
|
Joined: Jun 2003
Posts: 5,024
Hoopy frood
|
Hoopy frood
Joined: Jun 2003
Posts: 5,024 |
if ($nick isop #) { stuff }Try using that format instead  Regards,
Mentality/Chris
|
|
|
|
Joined: Jan 2005
Posts: 31
Ameglian cow
|
OP
Ameglian cow
Joined: Jan 2005
Posts: 31 |
same result as when i used $chan instead of #..this is my code again..
on ^*:text:*:#:{
if ($nick isop #) { echo $chan $timestamp %colornick-op $+ < $+ $nick $+ > $1- | haltdef }
elseif ($nick ishop #) { echo $chan $timestamp %colornick-half $+ < $+ $nick $+ > $1- | haltdef }
elseif ($nick isreg #) { echo $chan $timestamp %colornick-voice $+ < $+ $nick $+ > $1- | haltdef }
elseif ($nick isvo #) { echo $chan $timestamp %colornick-reg $+ < $+ $nick $+ > $1- | haltdef }
}
i dont get the error anymore..instead i get this.. [11:15:40 am] %colornick-voice<Cerberus> Ok tvthemeki, to be honest, that had to be a guess!  ~ [11:15:40 am] %colornick-voice<Cerberus> Next question in 30 s
|
|
|
|
Joined: Jan 2005
Posts: 75
Babel fish
|
Babel fish
Joined: Jan 2005
Posts: 75 |
on ^1:text:*:#:{
echo -ti24 $chan $text($1-)
}
alias text {
if ($nick isop #) return $timestamp %colornick-op $+ < $+ $nick $+ > $1-
if ($nick ishop #) return $timestamp %colornick-half $+ < $+ $nick $+ > $1-
if ($nick isreg #) return $timestamp %colornick-voice $+ < $+ $nick $+ > $1
if ($nick isvo #) return $timestamp %colornick-reg $+ < $+ $nick $+ > $1-
}
|
|
|
|
Joined: Jun 2003
Posts: 5,024
Hoopy frood
|
Hoopy frood
Joined: Jun 2003
Posts: 5,024 |
Thanks ztnaraM  As a note, you can colour nicknames in the nicklist using the Address book - press ALT+B and go to the Colors tab. Regards,
Mentality/Chris
|
|
|
|
Joined: Jan 2005
Posts: 31
Ameglian cow
|
OP
Ameglian cow
Joined: Jan 2005
Posts: 31 |
/echo: insufficient parameters (line 2, script8.mrc)
|
|
|
|
Joined: Jan 2005
Posts: 75
Babel fish
|
Babel fish
Joined: Jan 2005
Posts: 75 |
Ok, i opened up my script editor, lets see
on ^1:TEXT:*:#:{
echo -ti $chan $text($nick,$1-)
}
alias text {
if ($nick isowner #) { return 14(13.15 $+ $nick $+ 14) $2- | halt }
elseif ($nick isop #) { return 14(13@15 $+ $nick $+ 14) $2- | halt }
elseif ($nick ishop #) { return 14(13%15 $+ $nick $+ 14) $2- | halt }
elseif ($nick isvo #) { return 14(13+15 $+ $nick $+ 14) $2- | halt }
if ($nick !isop #) { return 14(15 $+ $nick $+ 14) $2- | halt }
}
|
|
|
|
Joined: Jan 2005
Posts: 31
Ameglian cow
|
OP
Ameglian cow
Joined: Jan 2005
Posts: 31 |
same error..gotta question too..why run it through an alias?
|
|
|
|
Joined: Jan 2005
Posts: 75
Babel fish
|
Babel fish
Joined: Jan 2005
Posts: 75 |
Not sure why you're getting that error, i just tried it in a blank mIRC, works ok for me, and the reason i run it through an alias is because i have my own theme system, so i don't have to add the text event everytime i do a new theme.
|
|
|
|
Joined: Jan 2005
Posts: 31
Ameglian cow
|
OP
Ameglian cow
Joined: Jan 2005
Posts: 31 |
thanks for your time, i am going to mess with this for 15 more minutes and then do what i do best.. scrap the code lol. it might be best to start over on it anyways.
|
|
|
|
Joined: Feb 2005
Posts: 8
Nutrimatic drinks dispenser
|
Nutrimatic drinks dispenser
Joined: Feb 2005
Posts: 8 |
elseif ($nick isvo #) <- make this elseif ($nick isvoice #)
and 'isowner' doesn't work, there's no operator for 'owner'
If want to have different colors for owners anyway, try if (~ isin $remove($nick(#,$nick).pnick,$nick)) (asuming ~ is the prefix for owner on your network)
Last edited by remco25; 14/02/05 04:36 AM.
|
|
|
|
Joined: Nov 2003
Posts: 2,327
Hoopy frood
|
Hoopy frood
Joined: Nov 2003
Posts: 2,327 |
isowner works just fine, it's an undocumented operator. Edit: also, you can use prefixes and letters in $nick: if ($nick($chan,$nick,~)) || ($nick($chan,$nick,q)) {
;$Nick is owner
}
Last edited by tidy_trax; 14/02/05 04:42 AM.
New username: hixxy
|
|
|
|
Joined: Feb 2005
Posts: 8
Nutrimatic drinks dispenser
|
Nutrimatic drinks dispenser
Joined: Feb 2005
Posts: 8 |
hrm, weird. I tried it on myself and it returned false eventhough I'm owner (on an Unreal server) ;s
|
|
|
|
Joined: Nov 2003
Posts: 2,327
Hoopy frood
|
Hoopy frood
Joined: Nov 2003
Posts: 2,327 |
I'm not sure how it works but it might be by prefix, it works just fine with the . prefix.
New username: hixxy
|
|
|
|
Joined: Feb 2005
Posts: 8
Nutrimatic drinks dispenser
|
Nutrimatic drinks dispenser
Joined: Feb 2005
Posts: 8 |
That might be it.. ~ needs manual adding to the nick color-list too.. about time mIRC shows support for it :P
|
|
|
|
Joined: Aug 2003
Posts: 1,831
Hoopy frood
|
Hoopy frood
Joined: Aug 2003
Posts: 1,831 |
"isvo" works too 
|
|
|
|
|
|