Murda Posted February 27, 2005 Report Share Posted February 27, 2005 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. Link to comment Share on other sites More sharing options...
Rhys Posted February 27, 2005 Report Share Posted February 27, 2005 im not sure if this is what your looking for, but you can try it. if you want the whole code, just ask 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 More sharing options...
Murda Posted February 27, 2005 Author Report Share Posted February 27, 2005 i think thats it but have u got the whole code because its hasnt worked as of yet for some reason, but ill work on it thanks Link to comment Share on other sites More sharing options...
Rhys Posted February 27, 2005 Report Share Posted February 27, 2005 (edited) 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 February 27, 2005 by xRhysx Link to comment Share on other sites More sharing options...
Murda Posted February 27, 2005 Author Report Share Posted February 27, 2005 i give up, i cant get it to list in order of admin, sysop, guide, op, halfop, voice/spec ive tried but it wont seem to work, dont know why Link to comment Share on other sites More sharing options...
Rhys Posted March 1, 2005 Report Share Posted March 1, 2005 the code i posted is using the normal mirc nicklist. it reads the first user in the nicklist, which would be an admin, then sysop, etc... Link to comment Share on other sites More sharing options...
Murda Posted March 1, 2005 Author Report Share Posted March 1, 2005 aaah no wonder, but does this work for a customized nicklist thought with icons etc or is there a different code Link to comment Share on other sites More sharing options...
Rhys Posted March 1, 2005 Report Share Posted March 1, 2005 that is a different code for icons. i haven't tried it, so i'm not sure if i can do it or not Link to comment Share on other sites More sharing options...
Murda Posted March 1, 2005 Author Report Share Posted March 1, 2005 ahhh ok no worries, thanks for the help anyway. HEY OZZY OR ERROR OR ANYONE ELSE could anyone else help me out on this one or not Link to comment Share on other sites More sharing options...
Guest Brock Posted March 3, 2005 Report Share Posted March 3, 2005 gimme after this long weekend and I'll make you one with right click popups as well Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now