-.-Maths v1.0-.-

By SL on Jun 30, 2004

Well maybe its not the best yet but I will upgrade it in the next vertion...

Type !m.set a and a umber and another number
eg.

!m.set 0 50
and the script will do the rest

IMPORTANT!!!!!!!!!

Add a maths.txt file to u'r mircdirectory
in this text file u have to have 4 lines...here they are

/

+
*

;Coded : SL
;server : irc.4everlost.co.za
;room : #slc
;webpage : http://slchat.50megs.com/Home.htm
on 1:text:!m.set*:#: {
  if ($nick isop $chan) {
    if ($2 == $numb) { msg $chan 7,0Please $nick you have to use as follows 10!s.match [a value that the numbers should random between eg. 4<200> the 1st umber will be randommed between 200 and the next value u enter 7and 10value <the next value. 4eg. 800 now the umbers to be worked out will be between 200 and 800 }
    if ($3 == $numb) { msg $chan 7,0Please $nick you have to use as follows 10!s.match [a value that the numbers should random between eg. 4<200> the 1st umber will be randommed between 200 and the next value u enter 7and 10value <the next value. 4eg. 800 now the umbers to be worked out will be between 200 and 800 }
    else {
      set %sl.m1 $2
      set %sl.m3 $3
      set %sl.m2 $read(maths.txt)
      set %sl.m4 $rand(%sl.m1,%sl.m3)
      set %sl.m8 $rand(%sl.m1,%sl.m3)
      set %sl.m5 $calc(%sl.m4 %sl.m2 %sl.m8)
      set %sl.m6 $chan
      set %sl.m7 on
      msg $chan 6The Mathematics game was activated think you got what it takes7 type the following10 !m.ans and the answer of the question
      msg $chan 7The question is %sl.m4 %sl.m2 %sl.m8
    }
  }
}
on 1:text:!m.ans*:#: {
  if ($chan == %sl.m6) {
    if (%sl.m7 != on) { msg $chan 7,0Sorry $nick the game is off ask an op to activate it }
    if (%sl.m7 == on) {
      if ($2 != %sl.m5) { msg $chan 10,0Sorry $nick u seen to be a dumbass...that was not correct }
      if ($2 == %sl.m5) {
        msg $chan 7Congratulations it was indeed %sl.m5
        set %sl.m7 off
      }
    }
  }
}

Comments

Sign in to comment.
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.