Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Oct 26th, 2004, 5:18 PM   #1
bulio
Hobbyist Programmer
 
bulio's Avatar
 
Join Date: Jul 2004
Location: Location
Posts: 138
Rep Power: 5 bulio is on a distinguished road
A cool script that I made that says how many people you have control over, how many channels you are opped in and how many chans and networks in total.

Ex: I am opped in 2/5 channels on 4 networks. I have control over 100 users.

on *:load: { 
 .notice hi
}
alias power { 
 set %power.chan.counter 0 
 set %power.powerover 0 
 set %power.opchans 0 
 set %power.totalnetworks $scon(0)
 set %power.totalnetworks.count 0
 set %power.total.channels 0
 set %power.max.chans 0 
 :connectionloop
 inc %power.totalnetworks.count
 if ( %power.totalnetworks.count > %power.totalnetworks ) { goto end }
 scon %power.totalnetworks.count
 set %power.total.channels %power.total.channels + $chan(0)
 set %power.max.chans $chan(0)
 set %power.chan.counter 0
 :loop
 if ( %power.chan.counter > %power.max.chans ) { goto connectionloop }
 set %power.chan.counter $calc( %power.chan.counter + 1 )
 if ( $me isop $chan(%power.chan.counter) ) { 
  set %power.powerover %power.powerover + $nick($chan(%power.chan.counter),0)
  inc %power.opchans
 } 
 goto loop
 :end
 scon -r
 if ( %power.total.channels = 1 ) var %power.chanword channel
 if ( %power.total.channels > 1 ) var %power.chanword channels
 if ( %power.totalnetworks = 1 ) var %power.netword network
 if ( %power.totalnetworks > 1 ) var %power.netword different networks
 msg $active 10,1I am currently oped in (4 %power.opchans $+ / $+ %power.total.channels 4 $+ %power.chanword on104 %power.totalnetworks 10)10 %power.netword $+ . I control10 (4 %power.powerover 410) users.
 unset %power.*
}
alias powerlogo { return 13join me on dalnet #p-addon }
alias website { return 11You can get it at #p-addon or mirc.net }
alias powerversion { return 1.6 }
menu nicklist,channel,menubar,query {
 addons 
 .Power:power
}
bulio is offline   Reply With Quote
Old Oct 27th, 2004, 9:04 AM   #2
Pizentios
Programming Guru
 
Pizentios's Avatar
 
Join Date: May 2004
Location: Brandon, Manitoba, Canada
Posts: 2,023
Rep Power: 7 Pizentios is on a distinguished road
Send a message via ICQ to Pizentios Send a message via MSN to Pizentios
That is a cool script, to bad if i loaded it would show a 0.
__________________
Profanity is the one language that all programmers understand.

Check out my Blog <---updated Nov 30 2007!
Pizentios is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 10:43 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC