mIRC Home    About    Download    Register    News    Help

Print Thread
#111031 12/02/05 03:24 PM
Joined: Jan 2005
Posts: 31
C
Ameglian cow
OP Offline
Ameglian cow
C
Joined: Jan 2005
Posts: 31
Code:
 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 smirk

#111032 12/02/05 03:42 PM
Joined: Jun 2003
Posts: 5,024
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Jun 2003
Posts: 5,024
if ($nick isop #) { stuff }

Try using that format instead smile

Regards,


Mentality/Chris
#111033 12/02/05 03:50 PM
Joined: Jan 2005
Posts: 31
C
Ameglian cow
OP Offline
Ameglian cow
C
Joined: Jan 2005
Posts: 31
same result as when i used $chan instead of #..this is my code again..
Code:
  
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! smile~
[11:15:40 am] %colornick-voice<Cerberus> Next question in 30 s

#111034 12/02/05 03:56 PM
Joined: Jan 2005
Posts: 75
Z
Babel fish
Offline
Babel fish
Z
Joined: Jan 2005
Posts: 75
Code:
 
on ^1:text:*:#:{ 
  echo -ti24 $chan $text($1-)
}
alias text {
  if ($nick isop #) return $timestamp %colornick-op $+ &lt; $+ $nick $+ &gt; $1-
  if ($nick ishop #) return $timestamp %colornick-half $+ &lt; $+ $nick $+ &gt; $1-
  if ($nick isreg #) return $timestamp %colornick-voice $+ &lt; $+ $nick $+ &gt; $1
  if ($nick isvo #) return $timestamp %colornick-reg $+ &lt; $+ $nick $+ &gt; $1-
} 

#111035 12/02/05 04:00 PM
Joined: Jun 2003
Posts: 5,024
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Jun 2003
Posts: 5,024
Thanks ztnaraM smile

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
#111036 12/02/05 04:03 PM
Joined: Jan 2005
Posts: 31
C
Ameglian cow
OP Offline
Ameglian cow
C
Joined: Jan 2005
Posts: 31
/echo: insufficient parameters (line 2, script8.mrc)

#111037 12/02/05 04:10 PM
Joined: Jan 2005
Posts: 75
Z
Babel fish
Offline
Babel fish
Z
Joined: Jan 2005
Posts: 75
Ok, i opened up my script editor, lets see

Code:
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 }
}  

#111038 12/02/05 04:13 PM
Joined: Jan 2005
Posts: 31
C
Ameglian cow
OP Offline
Ameglian cow
C
Joined: Jan 2005
Posts: 31
same error..gotta question too..why run it through an alias?

#111039 12/02/05 04:29 PM
Joined: Jan 2005
Posts: 75
Z
Babel fish
Offline
Babel fish
Z
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.

#111040 12/02/05 04:35 PM
Joined: Jan 2005
Posts: 31
C
Ameglian cow
OP Offline
Ameglian cow
C
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.

#111041 14/02/05 04:25 AM
Joined: Feb 2005
Posts: 8
R
Nutrimatic drinks dispenser
Offline
Nutrimatic drinks dispenser
R
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.
#111042 14/02/05 04:39 AM
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
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:

Code:
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
#111043 14/02/05 04:45 AM
Joined: Feb 2005
Posts: 8
R
Nutrimatic drinks dispenser
Offline
Nutrimatic drinks dispenser
R
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

#111044 14/02/05 04:47 AM
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
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
#111045 14/02/05 04:49 AM
Joined: Feb 2005
Posts: 8
R
Nutrimatic drinks dispenser
Offline
Nutrimatic drinks dispenser
R
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

#111046 14/02/05 06:52 AM
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
"isvo" works too smile


Link Copied to Clipboard