mIRC Home    About    Download    Register    News    Help

Print Thread
#187230 01/10/07 09:20 PM
Joined: Sep 2007
Posts: 109
K
kwell Offline OP
Vogon poet
OP Offline
Vogon poet
K
Joined: Sep 2007
Posts: 109
remote listing user levels Example:

command in chan !listing

---- msg Bot in Chan ----

msg $chan Listing
msg $chan Users Level one
msg $chan Juan
msg $chan Pepe
msg $chan Users Level five 5
msg $chan Maria
msg $chan Sofia
msg $chan kwell
msg $chan End list

- Saludos -

Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Where are the names and levels stored?
The main options for this are the User Level, hash table, ini file, text file.

The way of getting your requested output will, in part, be determined by where and how the information is stored.

Joined: Sep 2007
Posts: 109
K
kwell Offline OP
Vogon poet
OP Offline
Vogon poet
K
Joined: Sep 2007
Posts: 109
the code is valid ?

Code:

On *:TEXT:*:#: {
  if ($1 == !listing) {
    msg # listing 
    var %level 1
    var %cont  1
    while ($ulist(*,%level,%cont) != $null) { if (%cont == 1 ) { msg # Users level %level }
      msg #  $ulist(*,%level,%cont)
      inc %cont
    }
    var %level 2
    var %cont  1
    while ($ulist(*,%level,%cont) != $null) { if (%cont == 1 ) { msg # Users level %level }
      msg #  $ulist(*,%level,%cont)
      inc %cont
    }
    msg # End list 
  }
}


Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
presuming your User List is configured correctly, then this code looks to be valid.
If it's not working, then let us know what (if any) error message your're getting, or a sample of the output you are getting. Your first post already contains an example of the output you're wanting.


Link Copied to Clipboard