mIRC Home    About    Download    Register    News    Help

Print Thread
#173794 30/03/07 12:05 PM
Joined: Oct 2006
Posts: 342
L
learn3r Offline OP
Fjord artisan
OP Offline
Fjord artisan
L
Joined: Oct 2006
Posts: 342
Code:
on *:op:#: kick # nick,nick,nick,nick $ord(%kcounter)

that will only return

nick1 (1st)
nick2 (1st)
nick3 (1st)
nick4 (1st)
is it possible to count it 1st 2nd 3rd 4th




learn learn learn
learn3r #173799 30/03/07 01:51 PM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
1) Where are you incrementing %kcounter?
2) To my knowledge (can't test this at the moment), you can't specify multiple nicks in the kick command.
Code:
on *:op:#:{
  if $me isop # {
    var %kick_nicks = nick nick1 nick2 nick3
    var %a = 1, %b = $numtok(%kick_nicks,32)
    while %a <= %b {
      if $gettok(%kick_nicks,%a,32) ison # {
        inc %kcounter
        kick # $v1 $ord(%kcounter)
      }
      inc %a
    }
  }
}

RusselB #173907 31/03/07 07:43 PM
Joined: Oct 2006
Posts: 342
L
learn3r Offline OP
Fjord artisan
OP Offline
Fjord artisan
L
Joined: Oct 2006
Posts: 342
working but i already have a inc %kcounter on the kick event and it over increment the %kcounter

sampleon op kicks 1234
then i'll kick the next nick on join it'll return 6th not 5th
why is that?


learn learn learn
learn3r #173914 31/03/07 08:48 PM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
You only want to increment it in one place or else you'll double your increment.


Invision Support
#Invision on irc.irchighway.net

Link Copied to Clipboard