Wheel of Dis-Fortune

By Nachos on Dec 24, 2006

It's not that hard. It's just a little 'game'. I wouldn't even really call it a game, but more of a... fun little gadget. You can waste hours with it if you want to, but I don't think you'll do that. Just load it into your remotes (Alt + R), then type /setnick yournick to make sure you don't get kicked whenever the Wheel picks you. Also, type /setchan channel. As where channel stands for the channel you want the script to operate in.

[Upgrade #1]
Added two aliases to quickly, set the scripts' channel and your nick. Which you can't do wrong, also ;)

[Upgrade #2]
Added a random kick message. You can download the file here: http://www.megaupload.com/?d=070YFYUH
After you've downloaded the file, you simply put it in the same folder where you've also placed the Wheel of dis-fortune script. Whenever it kicks people, it will now give a random kick message. And oh, feel free to edit or add the messages.

[Upgrade #3]
Added a little menu, and fixed the script from kicking the safe nick you've set. The menu; just right click, click "Wheel of dis-Fortune", click "Set protect nick", and enter the nick you want to be protected from being kicked. To set the scripts' active channel, again, go to "Wheel of dis-Fortune", but this time, click "Set active channel", and enter the channel you wish the script to be active in.

Menu * {
  Wheel of dis-Fortune
  .Set protect nick: set %wof.mynick $?"What nick would you like to be protected from being kicked?" | echo Safe nick set to %wof.mynick
  .Set active channel: set %wof.channel $?"In what channel would you like to use the Wheel of dis-Fortune?" | echo Channel use set to %wof.channel
}

on *:TEXT:.WodF:%wof.channel: {
  .set %wof.victim $nick(#,$rand(1,$nick(#,0)))
  if (%wof.spamprotect == on) || (%wof.victim == %wof.mynick) { halt }
  /msg $chan 10 $+ $nick has spun the Wheel of dis-fortune!
  .timer2 1 1 /msg $chan Spinning...
  .timer3 1 3 /msg $chan The Wheel of dis-fortune has decided10 %wof.victim is the next victim!
  .timer4 1 4 /kick $chan %wof.victim $read(wodfkicktext.txt)
  .timer5 1 5 /unset %wof.victim
  .timer6 1 6 .set -u10 %wof.spamprotect on
  .timer7 1 6 /msg $chan 10 second cooldown set to prevent the script from being flooded.
}

alias setchan {
  /set %wof.channel $1
  /echo Wheel of dis-fortune set to $1 $+ .
}

alias setnick {
  /set %wof.mynick $1
  /echo Wheel of dis-fortune safe nick set to $1 $+ .
}

Comments

Sign in to comment.
Nachos   -  Dec 24, 2006

Thank you Lindrian :)

 Respond  
Lindrian   -  Dec 24, 2006

Aha! Nice one Nachos.

 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.