mIRC Homepage
Posted By: Confuzzled level displayer - 05/02/06 01:13 AM
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?
Posted By: MikeChat Re: level displayer - 05/02/06 04:24 AM
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.
Posted By: Confuzzled Re: level displayer - 05/02/06 09:54 AM
confused i don't know what you mean by looping through all the nicks
Posted By: DaveC Re: level displayer - 06/02/06 01:27 AM
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.
© mIRC Discussion Forums