Top

Roulette


mIRC Code
+ 0 likes
Please Register to submit score.
Bookmark and Share
Average Score  4.3 (of 4 scores)
Date Added  Dec 20, 2005
Last Updated  Dec 22, 2005
Tags  roulette 

Introduction

You don't have to set any of the options if you don't want to, the defaults are you don't part if you get shot and you are a male. I saw another roulette game where there's a bot and people can play through that, this is for yourself. You have about a 17% chance of losing.

Edit: Now, the snippet can be used by someone else. !roulette for someone else to use. Please note that by default remote roulette is off, so you have to turn it on for others to be able to use it. Also, if they play remote roulette, it will follow your parting settings, so if they lose and part is on it will kick them (assuming you have ops), and if they lose and part is off, it won't kick them.

Grab the Code

Roulette {
  if (%mof == $null) set %mof male
  if (%nick == $null) set %nick $me
  if (%nick != $null) && (%remoteroulette == on) 
  %nick puts a gun to %mof head.
  timer 1 1 msg $chan There are 6 spaces. One has a bullet in it, the other five are empty.
  %nick pulls the trigger...
  set %resultr $rand(1,6)
  if (%resultr == 1) timer 1 1 msg $chan Click!
  if (%resultr == 2) timer 1 1 msg $chan Click!
  if (%resultr == 3) timer 1 1 msg $chan Click!
  if (%resultr == 4) timer 1 1 msg $chan Click!
  if (%resultr == 5) timer 1 1 msg $chan Click!
  if (%resultr == 6) {
    timer 1 1 msg $chan Bang!
    if (%dead == leave) {
     if (%nick == $me) part
     else kick %nick $chan
     }
    }
   unset %nick
   }
 
menu * {
 Roulette
 .Play
 .Refer to self as male: set %mof his
 .Refer to self as female: set %mof her
 .Part if shot: set %dead leave
 .Don't part if shot: unset %dead 
 .Turn On Remote Roulette: set %remoteroulette on
 .Turn Off Remote Roulette: unset %remoteroulette
}
 
on *:Text:!roulette:#:{
 set %nick $nick
 roulette
}
 
 

Comments

  (2)  RSS
Whatever
Comments: 29
 
mIRC Snippet:  Roulette
Posted on Dec 20, 2005 8:36 pm
Interesting... perhaps you could make it such that other people can play it as well?
supergeo
Comments: 257
 
mIRC Snippet:  Roulette
Posted on Dec 22, 2005 12:04 pm
Done. Since I added that feature, I added an on - off switch for it.

Commenting Options

Register or Login to Hawkee.com or use your Facebook or Twitter account by clicking the corresponding button below.

  
Bottom