Viewer count

By jakobLUVSpizza on Sep 04, 2008

i added some color to the message :)
and i added a feature so that even if no one joins you can type /views and it will show you the views

on *:JOIN:#CHANNEL:{
  if (%views [ $+ [ $nick ] ]) { halt }
  inc %views | msg $chan 12>>>4>>>12>>>9 Join count: 7  %views $+  12<<<4<<<12<<<      | set %views [ $+ [ $nick ] ]
}
alias views {
 /say $chan The total viwers on # are 4 %views %+
}

Comments

Sign in to comment.
a careful warchild   -  Sep 22, 2008

LOL

 Respond  
jakobLUVSpizza   -  Sep 06, 2008

lol well yeah, relurks (my old) scripts were crap and this makes more sense and it can be useful

 Respond  
Jonesy44   -  Sep 05, 2008

so...why did you guys hate relurk so much but he makes a new account and there arnt any hate comments?????

Because "Relurk"'s original scripts were crap, and useless. This isn't amazing. but at least it shows a bit more.

 Respond  
EL   -  Sep 05, 2008

Gosh the new firefox makes comment hard to read i concur with steve there with .txt cause vars are very limited or even has tables would be good but for yout level .txt is just fine.`-.-´

 Respond  
napa182   -  Sep 05, 2008

um instead of filling up ur var list with nicks why not use a txt file?

on !*:JOIN:#CHANNEL:{ if (!$read(viewsnick.txt,w,$nick)) { inc %views | msg $chan 12>>>4>>>12>>>9 Join count:7 $+(%views,12<<<4<<<12<<<) | write viewsnick.txt $nick } }

of if you dont want to use $nick cuz people can change nicks and rejoin you can use addy's by replaceing $nick with $address($nick,2)

but w/e

 Respond  
jakobLUVSpizza   -  Sep 04, 2008

so...why did you guys hate relurk so much but he makes a new account and there arnt any hate comments?????

 Respond  
napa182   -  Sep 04, 2008

rofl

 Respond  
jakobLUVSpizza   -  Sep 04, 2008

oops lol

 Respond  
napalm`   -  Sep 04, 2008

lol

 Respond  
guest598594   -  Sep 04, 2008
set %views [ $+ [ $nick ] ]

You're not setting it as anything, make it like set %views [ $+ [ $nick ] ] 1 or something.

I think it'd be better though to write the nick to a txt file and then check if ($read(FILE.TXT,w,$nick)).

Edit: I think you mixed up %acount and %views. Because you inc %acount and don't use it, and %views is never set.

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.