Top

RiskRoll


mIRC Code
+ 0 likes
Please Register to submit score.
Bookmark and Share
Average Score  0.0 (of 0 scores)
Date Added  Nov 05, 2009
Last Updated  Nov 06, 2009
Tags  chance  game 

Description

This is a simple script that is a basic chance game. Type !Risk to trigger it and follow the instructions from there on out.

This is my first script so try to go easy.

Grab the Code

>>>RiskRoll By Snipes<<<
 
on *:TEXT:!Risk:#:{
  set %chanced $nick
  set %chancenum $rand(1,3)
  msg $chan 0,1 %chanced has taken a Risk! Type 8!RiskRoll0 to go! You have 10 seconds.
  .timerrisk 1 1 .notice %chanced 1 
  .timerrisk 1 2 
  .timerrisk 1 3 
  .timerrisk 1 4  
  .timerrisk 1 5 .notice %chanced 5 
  .timerrisk 1 6 
  .timerrisk 1 7 
  .timerrisk 1 8 
  .timerrisk 1 9 
  .timerrisk 1 10 .notice %chanced 10
  .timerrisk 1 16 msg $chan 0,1Stop waiting around on me man D:
  .timerrisk 1 16 unset %chanced 
}
on *:TEXT:!RiskRoll:#:{
;1
  if ($nick = %chanced) {
;2
    if (%chancenum == 1) {
;3
      msg $chan 0,1You've passed. Way to go!
      unset %chanced
      timerrisk* off
      halt
    }
;3
}
;2
    if ($nick = %chanced) {
;2
      if (%chancenum == 2) {
;3
        msg $chan 0,1You fried to a crisp D:
        unset %chanced
        timerrisk* off
        halt
      }
;2
}
;3
 
      if ($nick = %chanced) {
;2
        if (%chancenum == 3) {
;3
          msg $chan 0,1You exploded. That's gotta hurt!
          unset %chanced
          timerrisk* off
          halt
        }
;3
}
;2
}
;1
 

Comments

  (3)  RSS
blitzz
Comments: 136
 
mIRC Snippet:  RiskRoll
Posted on Nov 5, 2009 8:12 pm
You miss alot of end brackets there..
Ghost-writer
Comments: 353
 
mIRC Snippet:  RiskRoll
Posted on Nov 6, 2009 5:27 am
Before the really long stuff, for the first few lines you dont have to spam the noob, and you can name your timers so you dont unset all.
Next time use the var command instead of set, so you dont have to unset it after, Var %chanced $nick - No need to unset after.
Code:

on *:TEXT:!RiskRoll:#:{
  if ($nick = %chanced) {
    if (%chancenum == 1) {
      msg $chan 0,1You've passed. Way to go!
      unset %chanced
      timer* off
      halt
    }
    if ($nick = %chanced) {
      if (%chancenum == 2) {
        msg $chan 0,1You fried to a crisp D:
        unset %chanced
        timer* off
        halt
      }
      if ($nick = %chanced) {
        if (%chancenum == 3) {
          msg $chan 0,1You exploded. That's gotta hurt!
          unset %chanced
          timer* off
          halt
        }

You probobly put the { in at the end and missed a closing bracket for each of them. Count it off :)!
Code:

on *:TEXT:!RiskRoll:#:{
;1
  if ($nick = %chanced) {
;2
    if (%chancenum == 1) {
;3
      msg $chan 0,1You've passed. Way to go!
      unset %chanced
      timer* off
      halt
    }
;3
}
;2
    if ($nick = %chanced) {
;2
      if (%chancenum == 2) {
;3
        msg $chan 0,1You fried to a crisp D:
        unset %chanced
        timer* off
        halt
      }
;2
}
;3

      if ($nick = %chanced) {
;2
        if (%chancenum == 3) {
;3
          msg $chan 0,1You exploded. That's gotta hurt!
          unset %chanced
          timer* off
          halt
        }
;3
}
;2
}
;1

Try thtat instead.

WorldDMT
Comments: 173
 
mIRC Snippet:  RiskRoll
Posted on Nov 6, 2009 7:26 am
timer* off !!! that's too bad u'll stop all timers also the timer of other adons

use timerrisk

.timerrisk 1 1 .notice %chanced 1
.timerrisk 1 2 .notice %chanced 2

and timerrisk off

Commenting Options

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

  

Bottom