mIRC Homepage
Posted By: Chris2015 custom look - 12/02/05 03:24 PM
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
Posted By: Mentality Re: custom look - 12/02/05 03:42 PM
if ($nick isop #) { stuff }

Try using that format instead smile

Regards,
Posted By: Chris2015 Re: custom look - 12/02/05 03:50 PM
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
Posted By: ztnaraM Re: custom look - 12/02/05 03:56 PM
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-
} 
Posted By: Mentality Re: custom look - 12/02/05 04:00 PM
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,
Posted By: Chris2015 Re: custom look - 12/02/05 04:03 PM
/echo: insufficient parameters (line 2, script8.mrc)
Posted By: ztnaraM Re: custom look - 12/02/05 04:10 PM
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 }
}  
Posted By: Chris2015 Re: custom look - 12/02/05 04:13 PM
same error..gotta question too..why run it through an alias?
Posted By: ztnaraM Re: custom look - 12/02/05 04:29 PM
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.
Posted By: Chris2015 Re: custom look - 12/02/05 04:35 PM
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.
Posted By: remco25 Re: custom look - 14/02/05 04:25 AM
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)
Posted By: tidy_trax Re: custom look - 14/02/05 04:39 AM
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
}
Posted By: remco25 Re: custom look - 14/02/05 04:45 AM
hrm, weird. I tried it on myself and it returned false eventhough I'm owner (on an Unreal server) ;s
Posted By: tidy_trax Re: custom look - 14/02/05 04:47 AM
I'm not sure how it works but it might be by prefix, it works just fine with the . prefix.
Posted By: remco25 Re: custom look - 14/02/05 04:49 AM
That might be it.. ~ needs manual adding to the nick color-list too.. about time mIRC shows support for it :P
Posted By: Iori Re: custom look - 14/02/05 06:52 AM
"isvo" works too smile
© mIRC Discussion Forums