Jump to content

IRCX nicklist


Murda

Recommended Posts

need help. me and a freind are working on a nicklist for an ircx server, now if anyone knows how to get the nicknames in order of status - for example oper then op then half op n then the rest after. at the moment for example we're getting the admin icon first, then the owner icon second then last the sysop service bot. it seems to be going in alphabetical nickname order and not the user status order

is there a code that can sort it out in the user status order

 

sounds confusin but ive tried ma best. poster_stupid.gif

 

Link to comment
Share on other sites

im not sure if this is what your looking for, but you can try it. if you want the whole code, just ask smile.gif

 

alias loadnicks {
 set %n 1
 :start
 inc %n
 if ($nick($active,%n) isowner $active) {
   did -a $dname 3 $nick($active,%n) $chr(9) +q
   goto start
 }
 if ($nick($active,%n) isop $active) {
   did -a $dname 3 $nick($active,%n) $chr(9) +o
   goto start
 }
 if ($nick($active,%n) isvo $active) {
   did -a $dname 3 $nick($active,%n) $chr(9) +v
   goto start
 }
 if ($nick($active,%n) isreg $active) {
   did -a $dname 3 $nick($active,%n) $chr(9) -
   goto start
 }
}

 

it uses a table with 2 columns.

Link to comment
Share on other sites

all you really need to change is the did -a $dname 3 part. also remove the $chr(9) ... bit. heres the whole code anyway. i was just messing around and made this.

 

alias mdx_fullpath { return $+(",C:\Documents and Settings\Rhys\My Documents\script\dll\mdx.dll,") }

alias mdx { dll $mdx_fullpath $1- }

alias mdxinit {
 dll $mdx_fullpath SetMircVersion $version
 dll $mdx_fullpath MarkDialog $dname
}

alias nickl { dialog -m nickl nickl }

dialog nickl {
 size -1 -1 128 355
 title "Cust0m Nicklist"
 button "positioner",1001,0 0 0 0 
 text "Total Users:",1,2 331 64 12
 text "",2,62 332 41 11
 list 3,0 0 131 331,extsel size
;the button below is auto-created.You can remove it
 button "",1000,0 0 0 0,ok hide
}
on *:dialog:nickl:init:*:{
 mdxinit
 mdx SetControlMDX $dname 1001 positioner  minbox > dll\dialog.mdx
 mdx SetControlMDX $dname 3 ListView report nosortheader rowselect single grid >dll\views.mdx
 did -i $dname 3 1 headerdims 80 45
 did -i $dname 3 1 headertext Nickname $chr(9) Op
 loadnicks
 did -a $dname 2 $nick($active,0)
}
alias loadnicks {
 set %n 0
 :start
 inc %n
 if ($nick($active,%n) isowner $active) {
   did -a $dname 3 $nick($active,%n) $chr(9) +q
   goto start
 }
 if ($nick($active,%n) isop $active) {
   did -a $dname 3 $nick($active,%n) $chr(9) +o
   goto start
 }
 if ($nick($active,%n) isvo $active) {
   did -a $dname 3 $nick($active,%n) $chr(9) +v
   goto start
 }
 if ($nick($active,%n) isreg $active) {
   did -a $dname 3 $nick($active,%n) $chr(9) -
   goto start
 }
}

Edited by xRhysx
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...