mIRC Home    About    Download    Register    News    Help

Print Thread
level displayer #141116 05/02/06 01:13 AM
Joined: Oct 2005
Posts: 75
C
Confuzzled Offline OP
Babel fish
OP Offline
Babel fish
C
Joined: Oct 2005
Posts: 75
ok i have this
Code:
On 187:TEXT:$($me $+ *):*: {
  if ($2 == level) { 
    write -c botlist2.txt
    var %i = 1 | %level = $3-
    while ($ulist(*,%level,%i)) {
      msg # .::.::.::.::.::.::.::.::.::Users on Level $3 are::.::.::.::.::.::.::.::.::.
      msg # $v1 
      inc %i
      halt
    }
  }
}

it displays level specified when i type MyBotNick level <level> it displays names of the ppl that are on level specified, but instead of doing that it displays @MyBotNick with that @ infront of MyBotNick instead

like this:
<MyNick> MyBotNick level 777
<MyBotNick> .::.::.::.::.::.::.::.::.::Users on Level 777 are::.::.::.::.::.::.::.::.::.
<MyBotNick> @MyBotNick


what's wrong with it?

Re: level displayer #141117 05/02/06 04:24 AM
Joined: Dec 2002
Posts: 1,245
M
MikeChat Offline
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
open the remotes editor and click the users tab
the users arent sorted by level, but by nick
so what you have to do is loop through all the nicks and see if
the level you want is atached to each nick.

Re: level displayer #141118 05/02/06 09:54 AM
Joined: Oct 2005
Posts: 75
C
Confuzzled Offline OP
Babel fish
OP Offline
Babel fish
C
Joined: Oct 2005
Posts: 75
confused i don't know what you mean by looping through all the nicks

Re: level displayer #141119 06/02/06 01:27 AM
Joined: Sep 2003
Posts: 4,230
D
DaveC Offline
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
I dont really know what ya doing here but I can see why its not doing any more than just your @MyBotNick, basicly its that HALT command HALTing the script! <snicker snicker>

Code:
On 187:TEXT:$($me $+ *):*: {
  if ($2 == level) { 
    write -c botlist2.txt
    var %i = 1, %level = $3-
    if ($ulist(*,%level,%i)) { msg # .::.::.::.::.::.::.::.::.::Users on Level $3 are::.::.::.::.::.::.::.::.::. }
    while ($ulist(*,%level,%i)) {
      msg # $v1 
      inc %i
    }
  }
}


^ that should work, the IF before the while is to display the title BUT only if there well be some users listed.