Simple HL Script (SHLS)

Published  Mar 11, 2011
Updated  Mar 11, 2011
URL  IDK
0  4

Description

When you write "/hl" writes nicknames to channel.
PS: Sometimes not working when nicks bigger than 50+

"
alias hl {
var %i 1
var %x $nick($chan,0)
while ( %i <= %x ) {
var %Nick $nick($chan,%i)
if ( %Nick isop $chan ) {
var %Nicks %Nicks $+(04@,%Nick,)
inc %i
}
if ( %Nick isvoice $chan ) && ( %Nick !isin %Nicks ) {
var %Nicks %Nicks $+(07+,%Nick,)
inc %i
}
if ( %Nick isreg $chan ) && ( %Nick !isin %Nicks ) {
var %Nicks %Nicks $+(15,%Nick,)
inc %i
}
}
msg $chan %Nicks
}
"

Screenshots

Comments

Sign in to comment.
Savage_CL   -  May 15, 2011

and only put a URL in the URL Box. There is no star, so you don't actually need it.

 Respond  
Dicaste   -  Mar 12, 2011

Hmm. I dont know ".pnick". Thats easier than my technic.

 Respond  
sunslayer   -  Mar 11, 2011

http://www.hawkee.com/post_snippet.php or atleast use the code box :/

 Respond  
_Dean_   -  Mar 11, 2011

You didnt explained what this is made for
but this same script can be done using the .pnick property

The pnick property returns the nickname in a .@%+nick format.

from help file

just an advice, you can write the same script using

alias hl {
  msg # $regsubex($str($chr(32),$nick(#,0)),//g,$nick(#,\n).pnick)
}

or

alias hl {
  var %x = 1,%y 
  while ($nick(#,%x)) {
    %y = %y $chr(32) $nick(#,%x).pnick
    inc %x
  }
  msg # %y
}
 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.