Users Script
Posted by varunpp
Saturday, June 05, 2004
Description: Not Working properly


on *:text:-users:#:{
.notice $nick Accounts on $me $+ :
var %i 1
var %accounts 0
while (%i <= $hget(0)) {
if ($hget(%i) != users) && ($hget(%i) != seen) && ($hget(%i) != reflex) && ($hget(%i) != myscriptstats) && ($hget(%i) != csd) {
%users =  $+ $hget(%i) $+  ( $+  $+ $hget(%i,access) $+  $+ )
inc %accounts
}
inc %i
}
.notice $nick %users
.notice $nick Totalling  $+ %accounts $+  account(s).
}


The output turns out like this...
¬ 02:20:46pm| @WoC_VT: -users
¬ 02:20:46pm| NOTICE: (WoC_BoT) Accounts on WoC_BoT:
¬ 02:20:47pm| NOTICE: (WoC_BoT) Euro (Clan Member(Assisstant))
¬ 02:20:47pm| NOTICE: (WoC_BoT) Totalling 3 account(s).

I have to fix the %users but no idea how!
add accounts
Posted by Scoobster
Saturday, June 05, 2004 03:46pm PDT
how do you add accounts to it?
no
Posted by varunpp
Saturday, June 05, 2004 08:51pm PDT
n, just list the accounts
fix:
Posted by CrashB
Sunday, June 06, 2004 05:23am PDT
on *:text:-users:#:{
  .notice $nick Accounts on $me $+ :
  var %i 1
  var %accounts 0
  var %users $null
  while (%i <= $hget(0)) {
    if ($hget(%i) != users) && ($hget(%i) != seen) && ($hget(%i) != reflex) && ($hget(%i) != myscriptstats) && ($hget(%i) != csd) {
      var %users %users $hget(%i) $+($chr(40),$hget(%i,access),$chr(41))
      inc %accounts
    }
    inc %i
  }
  if %users != $null { .notice $nick %users }
  .notice $nick Totalling %accounts account(s).
}
Submit a comment
Oops! You need to login or register before you can post a comment!

ebaum's world