Miscellaneous Vote is a simple vote script that can be used in debates, miscellaneous chat and more, for example:
i think boys r better at soccer
no girls r!!!!!!!!! >:<
whoa, hey, lets have a vote then!
.setvote Are boys better at soccer? 90
VOTE #92: Are boys better at soccer? (90 second vote)
Yes ( .voteyes )
No ( .voteno )
.voteyes
user has voted YES (1)
.voteno
.voteyes
user2 has voted NO (1)
user3 has voted YES (2)
90 seconds later..
Results: (Are boys better at soccer?)
YES (2)
NO (1)
Now you got the idea ^_^
Recommended for seperate clients (You & Diff Client w/ script)
```mirc
; Ultimate Vote Script
; Do NOT remove this copyright and/or the server stated.
; godzilla.cyanide-x.net
; mothra.cyanide-x.net
on *:TEXT:.setvote*:#: {
set %voteyes 0
set %voteno 0
set %voteSnick $nick
inc %vote.counter 1
on *:TEXT:.setvote*:#: {
if ($$2- == $null) { msg $chan You must specify a time limit, $nick + ! }
if ($$2- < 10) { msg $chan The vote time limit must be over or equal to 10, yours was set to $$2- }
if ($$3- == $null) { msg $chan You must specify a topic to vote on, $nick $+ ! }
if ($$2- && $$3- == $null) { msg $chan You must specify a time limit and topic to vote on, $nick + ! }
if (%voteon == $true) { msg $chan A vote is already on! }
else { msg $chan Setting up vote # $+ %vote.counter $+ . . .
set -n %voteon
set -n %votetopic $$3-
timer 1 2 msg $chan VOTE # $+ %vote.counter $+ : ( $+ $$3- $+ ) has been activated, type .voteyes or .voteno to vote! ( $+ $$2- second vote) [ godzilla.cyanide-x.net ]
timer 1 $$2- msg $chan Vote # $+ %vote.counter ENDED! | msg $chan Results: ( $+ $$3- $+ ) | msg $chan YES: ( $+ %voteyes $+ ) | msg $chan NO: ( $+ %voteno $+ ) | timer 1 5 unset $voteon | set %voteno 0 | set %voteyes 0
}
on *:TEXT:.voteyes:#: {
inc %voteyes 1
if (%voteon == $true) { msg $chan $nick voted YES on %votetopic $+ . ( $+ %voteyes $+ )
}
else { msg $chan A vote has not yet been started! Type .setvote to begin a vote! }
}
on *:TEXT:.voteno:#: {
inc %voteno 1
if (%voteon == $true) { msg $chan $nick voted YES on %votetopic $+ . ( $+ %voteno $+ )
}
else { msg $chan A vote has not yet been started! Type .setvote to begin a vote! }
}
on *:TEXT:.endvote:#: {
if ($nick == %voteSnick && %voteon == $true) { msg $chan Vote has been ended by $nick $+ !
msg $chan Results: ( $+ $$3- $+ )
msg $chan YES: ( $+ %voteyes $+ )
msg $chan NO: ( $+ %voteno $+ )
timer 1 5 unset $voteon
set %voteno 0
set %voteyes 0
else { msg $chan Only the vote starter can end this vote! }
}
on *:TEXT:.suspend*:#: {
if ($nick === YOURMAINUSERNAME && $$2- ison $chan) { msg $chan $$2- has been suspended! | /ignore $address($$2-,2)
if ($nick != YOURMAINUSERNAME) { msg $chan You are not authorized to use this command! }
else { halt }
}
on *:TEXT:.unsuspend*:#: {
if ($nick === YOURMAINUSERNAME) { msg $chan $$2- has been unsuspended! | /ignore -r $address($$2-,2)
if ($nick != YOURMAINUSERNAME) { msg $chan You are not authorized to use this command! }
else { halt }
}
```