Well, I was bored, and decided to make a script for a bit of fun. Came up with this.
You can use the nicklist to give an invite, or other users can use these text commands:
!chav - Invites you
!chav Nick - Invites Nick
!members - Lists the members, accepts and declines.
Basically on text and timers, but its fun for a while.
On *:load: { set %vote off }
Menu Nicklist {
Chav Club
.Hoodie Invite:/me gives7 $1 a hoody. Come join the chav club :D | /say Type 7Yes to accept, or 7No to reject the invitation. You have 30 seconds to do so. | set %nick $1 | set %chan $chan | set %vote on | .timer 1 30 /endvote
}
on *:TEXT:!chav*:#: {
if (%vote == on) { msg $chan $nick $+ : There is already an invite waiting to be accepted. Please try again later. }
if (!$2) && (%vote == off) {
set %nick $nick
set %chan $chan
describe $chan gives7 $nick a hoody. Come join the Chav Club :D
.timer 1 2 msg $chan Type 7Yes to accept, or 7No to reject the invitation. You have 30 seconds to do so.
set %vote on
.timer 1 30 /endvote
}
if ($2 == $me) && (%vote == off) { msg $chan 7 $+ $nick I am already in the chav club :D
}
if ($2 ison $chan) && ($2 != $me) && (%vote == off) {
set %nick $2
set %chan $chan
describe $chan gives7 $2 a hoody. Come join the Chav Club :D
msg $chan You have been invited into the Chav club by7 $nick $+ . Type 7Yes to accept, or 7No to reject the invitation. You have 30 seconds to do so.
set %vote on
.timer 1 30 /endvote
}
if ($2 !ison $chan) && (%vote == off) {
set %nick $nick
set %chan $chan
describe $chan gives7 $nick a hoody. Come join the Chav Club :D
.timer 1 2 msg $chan I do not see $2 anywhere, so i assume you want to join. Type 7Yes to accept, or 7No to reject the invitation. You have 30 seconds to do so.
set %vote on
.timer 1 30 /endvote
}
}
on *:TEXT:yes:#: {
if (%vote == on) && ($nick == %nick) {
inc %yes
inc %members
.timer 1 2 msg $chan 7 $+ $nick has accepted the invitation to the chav club. The club now has7 %members members.
.timer 1 3 describe $chan gives7 $nick some bling and a can of carling
set %vote off
.timer 1 4 .timers off
else { HALT }
}
}
on *:TEXT:no:#: {
if (%vote == on) && ($nick == %nick) {
inc %no
inc %members
msg $chan 7 $+ $nick $+ : You have no choice in the matter. 4:D
.timer 1 2 describe $chan hits7 $nick with his chav stick. The club now has7 %members members.
set %vote off
.timer 1 4 .timers off
else { HALT }
}
}
alias endvote {
if (%vote == on) {
inc %members
inc %no
msg %chan 7 $+ %nick $+ : Your time is up. Since you failed to respond to my invite, you will be a member the hard way.
.timer 1 2 describe %chan hits7 %nick with his chav stick. The club now has7 %members members.
.timer 1 3 unset %nick
set %vote off
else { HALT }
}
}
on *:TEXT:!members:#: {
msg $chan The Chav Club has7 %members members.
.timer 1 1 msg $chan people have accepted the invitation:7 %yes
.timer 1 2 msg $chan people have joined the hard way:7 %no
}