Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on *:load: {
- echo -a 9>>> 12Counters v1.2 successfully loaded...
- set %counter.joins 0
- set %counter.parts 0
- set %counter.kicks 0
- set %counter.bans 0
- set %counter.ops 0
- set %counter.deops 0
- set %counter.voices 0
- set %counter.devoices 0
- }
- alias counter { dialog -m counter counter }
- dialog counter {
- title "Counters v2.1"
- size -1 -1 156 170
- option dbu
- text "You have seen:", 1, 6 8 39 8
- box "View counters:", 2, 3 0 151 90
- text "You have seen:", 3, 6 18 39 8
- text "You have seen:", 5, 6 28 39 8
- text "You have seen:", 6, 6 38 39 8
- text "You have seen:", 7, 6 48 39 8
- text "You have seen:", 8, 6 58 39 8
- text "You have seen:", 9, 6 68 39 8
- text "You have seen:", 10, 6 78 39 8
- edit "", 12, 47 7 19 10, read center
- edit "", 13, 47 17 19 10, read center
- edit "", 15, 47 27 19 10, read center
- edit "", 16, 47 37 19 10, read center
- edit "", 17, 47 47 19 10, read center
- edit "", 18, 47 57 19 10, read center
- edit "", 19, 47 67 19 10, read center
- edit "", 20, 47 77 19 10, read center
- text "Joins totally", 11, 67 9 30 8
- text "Parts totally", 21, 67 19 31 8
- text "Kicks totally", 23, 67 29 30 8
- text "Bans totally", 24, 67 39 30 8
- text "OPed totally", 25, 67 49 31 8
- text "Deoped totally", 26, 67 59 36 8
- text "Voiced totally", 27, 67 69 34 8
- text "Devoiced totally", 28, 67 79 40 8
- button "Reset Joins", 29, 110 8 41 9
- button "Reset Parts", 30, 110 18 41 9
- button "Reset Kicks", 32, 110 28 41 9
- button "Reset Bans", 33, 110 38 41 9
- button "Reset Oped", 34, 110 48 41 9
- button "Reset Deoped", 35, 110 58 41 9
- button "Reset Voiced", 36, 110 68 41 9
- button "Reset Devoiced", 37, 110 78 41 9
- tab "Options", 38, 3 92 150 65
- box "On/Off:", 40, 9 108 55 22, tab 38
- radio "On", 41, 13 116 22 10, tab 38, push
- radio "Off", 42, 38 116 22 10, tab 38, push
- box "Reset All:", 54, 75 108 69 22, tab 38
- button "Reset All Counters", 55, 79 116 61 10, tab 38
- box "Unload:", 56, 9 131 69 23, tab 38
- button "Unload Counters v2.1", 57, 12 139 62 10, tab 38
- tab "Display", 39
- box "Display in the active channel:", 43, 7 108 143 46, tab 39
- button "Joins", 44, 14 116 28 10, tab 39
- button "Parts", 45, 47 116 28 10, tab 39
- button "Kicks", 47, 81 116 28 10, tab 39
- button "Bans", 48, 14 128 28 10, tab 39
- button "OPed", 49, 47 128 28 10, tab 39
- button "Deoped", 50, 81 128 28 10, tab 39
- button "Voiced", 51, 114 128 28 10, tab 39
- button "Devoiced", 52, 114 116 28 10, tab 39
- button "Display All Counters", 53, 14 140 61 10, tab 39
- button "Close", 58, 129 160 27 10, cancel
- button "Help", 59, 100 160 27 10
- }
- on *:dialog:counter:init:*: {
- did -a counter 12 %counter.joins
- did -a counter 13 %counter.parts
- did -a counter 15 %counter.kicks
- did -a counter 16 %counter.bans
- did -a counter 17 %counter.ops
- did -a counter 18 %counter.deops
- did -a counter 19 %counter.voices
- did -a counter 20 %counter.devoices
- if (%counter.st == on) { did -c counter 41 }
- elseif (%counter.st == off) { did -c counter 42 }
- }
- on *:dialog:counter:sclick:*: {
- if ($did == 29) { set %counter.joins 0 | did -ra counter 12 %counter.joins | echo -a 9>>> 12Join Counter has been: Reset }
- if ($did == 30) { set %counter.parts 0 | did -ra counter 13 %counter.parts | echo -a 9>>> 12Part Counter has been: Reset }
- if ($did == 32) { set %counter.kicks 0 | did -ra counter 15 %counter.kicks | echo -a 9>>> 12Kick Counter has been: Reset }
- if ($did == 33) { set %counter.bans 0 | did -ra counter 16 %counter.bans | echo -a 9>>> 12Ban Counter has been: Reset }
- if ($did == 34) { set %counter.ops 0 | did -ra counter 17 %counter.ops | echo -a 9>>> 12OP Counter has been: Reset }
- if ($did == 35) { set %counter.deops 0 | did -ra counter 18 %counter.deops | echo -a 9>>> 12Deop Counter has been: Reset }
- if ($did == 36) { set %counter.voices 0 | did -ra counter 19 %counter.voices | echo -a 9>>> 12Voice Counter has been: Reset }
- if ($did == 37) { set %counter.devoices 0 | did -ra counter 20 %counter.devoices | echo -a 9>>> 12Devoice Counter has been: Reset }
- if ($did == 55) { set %counter.joins 0 | did -ra counter 12 %counter.joins | set %counter.parts 0 | did -ra counter 13 %counter.parts | set %counter.kicks 0 | did -ra counter 15 %counter.kicks | set %counter.bans 0 | did -ra counter 16 %counter.bans | set %counter.ops 0 | did -ra counter 17 %counter.ops | set %counter.deops 0 | did -ra counter 18 %counter.deops | set %counter.voices 0 | did -ra counter 19 %counter.voices | set %counter.devoices 0 | did -ra counter 20 %counter.devoices | echo -a 9>>> 12All Counters have been: Reset }
- if ($did == 41) { set %counter.st on | echo -a 9>>> 12Counters are now turned: ON }
- if ($did == 42) { set %counter.st off | echo -a 9>>> 12Counters are now turned: OFF }
- if ($did == 44) { msg $active $color I have seen: %counter.joins Joins, since i started counting... }
- if ($did == 45) { msg $active $color I have seen: %counter.parts Parts, since i started counting... }
- if ($did == 47) { msg $active $color I have seen: %counter.kicks Kicks, since i started counting... }
- if ($did == 52) { msg $active $color I have seen: %counter.bans Bans, since i started counting... }
- if ($did == 48) { msg $active $color I have seen: %counter.ops OPs, since i started counting... }
- if ($did == 49) { msg $active $color I have seen: %counter.deops Deops, since i started counting... }
- if ($did == 50) { msg $active $color I have seen: %counter.voices Voices, since i started counting... }
- if ($did == 51) { msg $active $color I have seen: %counter.devoices Devoices, since i started counting... }
- if ($did == 53) { msg $active $color I have seen: %counter.joins Joins, %counter.parts Parts, %counter.kicks Kicks, %counter.bans Bans, %counter.ops OPs, %counter.deops Deops, %counter.voices Voices and %counter.devoices Devoices so far.. }
- if ($did == 57) { unload -rs $scriptdir\counter.mrc }
- if ($did == 59) { counterhelp }
- }
- on *:join:#: {
- if (%counter.st == on) {
- inc %counter.joins
- }
- }
- on *:part:#: {
- if (%counter.st == on) {
- inc %counter.parts
- }
- }
- on *:kick:#: {
- inc %counter.kicks
- }
- on *:ban:#: {
- if (%counter.st == on) {
- inc %counter.bans
- }
- }
- on *:op:#: {
- if (%counter.st == on) {
- inc %counter.ops
- }
- }
- on *:deop:#: {
- if (%counter.st == on) {
- inc %counter.deops
- }
- }
- on *:voice:#: {
- if (%counter.st == on) {
- inc %counter.voices
- }
- }
- on *:devoice:#: {
- if (%counter.st == on) {
- inc %counter.devoices
- }
- }
- Menu channel,status,menubar {
- Counters:/counter
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement