Skip to content
General IRCX

IRCX nicklist

A TG007 community discussion started by Murda.

Discussion 18 posts
Page 1 of 1
Open
Topic #2981 · 18 published posts · 3,230 views

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.

 

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.

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

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 Feb 27, 2005 9:50 PM by xRhysx

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

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...

aaah no wonder, but does this work for a customized nicklist thought with icons etc

or is there a different code

that is a different code for icons. i haven't tried it, so i'm not sure if i can do it or not

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

gimme after this long weekend and I'll make you one with right click popups as well

omfg there not hard to make

like i said im not the best at doin this part which is why i asked for help from u genius people

thanks brock .. would be much appreciated

hmmm... I will be 15 minutes and have it right here on the spot ready to rock 'n' roll but no garuntee on popups I am afraid

 

P.S.: Anyone know an IRCx Server I can test it on :S I'm an IRCd User lol I aint been on IRCx for 1 year and counting so better tell me one

try the chatsusa server

lol I've been visiting there for [**Counts 2 Fingers**] 2 weeks :S and I totally forgot [**Stings FreedomChat Networks With TheScorpionâ„¢ v1.0**]

 

 

Almost dun

 

why would you be making an ircx script when you dont use it lol

and chatsusa is ircxpro

My code does NOT have bugs. It just develops random features.

you can use ircx modes - command's on ircxpro

Edited Mar 10, 2005 3:43 PM by ik000ike

yes I know lol!