mIRC Home    About    Download    Register    News    Help

Print Thread
#15672 16/03/03 09:53 PM
Joined: Mar 2003
Posts: 437
M
MTech Offline OP
Fjord artisan
OP Offline
Fjord artisan
M
Joined: Mar 2003
Posts: 437
im using nicklist.dll and a @window to list th users ina channel, and i want to relace the @%+ with an icon next to the next to the names based on their status (regular op[@] halfop[%] and[+] voice)

im getting the @window in my nicklist but it dont import the users... how do i do that?

#15673 16/03/03 10:22 PM
Joined: Dec 2002
Posts: 1,527
_
Hoopy frood
Offline
Hoopy frood
_
Joined: Dec 2002
Posts: 1,527
ok to put the ppl in channel into ur nicklist this is how i did it ..... but yours wont be like this as ur using a @window so ill try to show u how to do this ,,,,,, and to add the icons u need to also have mdx in ur script directory somewhere and also setup the mdx for using it read up on that as i cant hand u everything ive worked on figuring out for 3 weeks LoL but here the way i did it using a dialog .....

Code:
alias fillnicklist {
  if %nicklist == On {
    %sn = 1
    if $nick($chan($active),%sn,a) isop $chan($active) && $nick($chan($active),%sn,a) == _D3m0n_ { did -ra _nicklist 1 0 + 7 0 0 $nick($chan($active),%sn,a) | goto one }
    if ($istok(%Away.Nicks,$nick($chan($active),%sn,a),32) == $true) { did -ra _nicklist 1 0 + 6 0 0 $nick($chan($active),%sn,a) | goto one }
    if $nick($chan($active),%sn,a) isreg $chan($active) { did -ra _nicklist 1 0 + 1 0 0 $nick($chan($active),%sn,a) }
    if $nick($chan($active),%sn,a) isop $chan($active) { did -ra _nicklist 1 0 + 2 0 0 $nick($chan($active),%sn,a) }
    if $nick($chan($active),%sn,a) ishop $chan($active) { did -ra _nicklist 1 0 + 3 0 0 $nick($chan($active),%sn,a) }
    if $nick($chan($active),%sn,a) isvoice $chan($active) { did -ra _nicklist 1 0 + 4 0 0 $nick($chan($active),%sn,a) }
    if $nick($chan($active),%sn,a) isowner $chan($active) { did -ra _nicklist 1 0 + 5 0 0 $nick($chan($active),%sn,a) }
  }
  :one
  %sn = 2
  while ( $nick($chan($active),%sn,a) != $null ) {
    if $nick($chan($active),%sn,a) isop $chan($active) && $nick($chan($active),%sn,a) == _D3m0n_ { did -a _nicklist 1 0 + 7 0 0 $nick($chan($active),%sn,a) | goto two }
    if ($istok(%Away.Nicks,$nick($chan($active),%sn,a),32) == $true ) { did -a _nicklist 1 0 + 6 0 0 $nick($chan($active),%sn,a) | goto two } 
    if $nick($chan($active),%sn,a) isreg $chan($active) { did -a _nicklist 1 0 + 1 0 0 $nick($chan($active),%sn,a) }
    if $nick($chan($active),%sn,a) isop $chan($active) { did -a _nicklist 1 0 + 2 0 0 $nick($chan($active),%sn,a) }
    if $nick($chan($active),%sn,a) ishop $chan($active) { did -a _nicklist 1 0 + 3 0 0 $nick($chan($active),%sn,a) }
    if $nick($chan($active),%sn,a) isvoice $chan($active) { did -a _nicklist 1 0 + 4 0 0 $nick($chan($active),%sn,a) }
    if $nick($chan($active),%sn,a) isowner $chan($active) { did -a _nicklist 1 0 + 5 0 0 $nick($chan($active),%sn,a) }
    :two
    inc %sn
  }
}

now ud have to change did -a _nicklist to i think aline @window ..... i think thats how ud do it for a custom window instead of a dialog ... not sure havnt read up0 on that part

im going a slightly different route using ktools.dll to dock mine right of mirc ... closing the nicklist and running it that way altho ..... ive been getting an error because of this being docked when i close my mirc using XP pro ..... so i may end up going to a @window myself too as i think the ktools.dll is causing the error ..... anyhow that should give u a small start ... keep in mind u have to have mdx to add these icons and u have to load em on start like it says ...... also my example shows usage of 7 icons ..... Ops halfops voice away regular one for Me if im opped (im kinda arrogant like that cant be like anyone else) and one im trying to work on for Owners ops like on ircx servers where they just gve tha dot ..... but anyhow again hope that helps u

if ud like to veiw mine CLICK HERE


D3m0nnet.com

Link Copied to Clipboard