Grzechooo

Kod :3

Jul 10th, 2012
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 2.90 KB | None | 0 0
  1. on *:TEXT:!start:#: {
  2.   if (%gameoff == OFF) { halt }
  3.   if (%game) { halt }
  4.   if ($me isop $chan) {
  5.     inc %played [ $+ [ $address($nick,1) ] ]
  6.     set %nick $nick
  7.     set %channel $chan
  8.     set %number $rand(1,100)
  9.     set %game on
  10.     set %playss 7
  11.     timerhigh 1 360 lose
  12.     msg $chan Game On  %nick  $+ ,  $chr(36) $+ Guess <number> (  1  -  100  ) , To get the number, Youve got 5 Tries! Youve Got 60 Seocnds To Get The Number!
  13.   }
  14. }
  15.  
  16. on 1:TEXT:$($!guess*):#:{
  17.   if (%gameoff == OFF) { halt }
  18.   if ($nick == %nick) {
  19.     if ($me isop $chan) {
  20.       inc %plays
  21.       if ($2 == %number) {
  22.         inc %well.played [ $+ [ $address($nick,1) ] ]
  23.         msg $chan Well Played  $nick  $+ . , You Got It Right !  
  24.         msg $chan Played: ( %played [ $+ [ $address($nick,1) ] ] ) Failed: ( %failed [ $+ [ $address($nick,1) ] ] ) Got Right: ( %well.played [ $+ [ $address($nick,1) ] ] )
  25.         unset %game
  26.         unset %plays
  27.         unset %number
  28.         timerhigh off
  29.         unset %nick  
  30.         halt
  31.       }
  32.       if ($2 == $null) {
  33.         msg $chan $chr(36) $+ guess <number>
  34.         halt
  35.       }
  36.       if (%plays == %playss) {
  37.         inc %failed [ $+ [ $address($nick,1) ] ]
  38.         kick $chan $nick Unlucky $nick $+ . The number Was ( %number )
  39.         msg $chan Played: ( %played [ $+ [ $address($nick,1) ] ] ) Failed: ( %failed [ $+ [ $address($nick,1) ] ] ) Got Right: ( %well.played [ $+ [ $address($nick,1) ] ] )
  40.         unset %plays
  41.         unset %game
  42.         unset %plays
  43.         unset %number
  44.         unset %nick
  45.         timerhigh off
  46.         halt  
  47.       }
  48.       if ($2 > %number) {
  49.         msg $chan The Number Is Lower $nick  
  50.         halt
  51.       }
  52.       if ($2 < %number) {
  53.         msg $chan The Number Is Higher $nick  
  54.         halt
  55.       }
  56.     }
  57.   }
  58. }
  59. on 1:TEXT:$($!stop):#:{  
  60.   if (%gameoff == OFF) { halt }
  61. if ($nick == %nick) { unset %nick | unset %game | unset %number | unset %number | unset %nick | timerhigh off |  msg $chan Game Stopped. } }
  62. on 1:TEXT:$(!stats):#:{
  63.   if (%guess) { halt }
  64.   else { set -u5 %guess 1 | msg $chan  $nick $+ . Played: ( %played [ $+ [ $address($nick,1) ] ] ) Failed: ( %failed [ $+ [ $address($nick,1) ] ] ) Got Right: ( %well.played [ $+ [ $address($nick,1) ] ] )
  65.   }
  66. }
  67.  
  68. alias lose {
  69.   inc %failed [ $+ [ $address(%nick,1) ] ]
  70.   kick %channel %nick Unlucky $nick $+ . The number Was ( %number )
  71.   msg %channel Played: ( %played [ $+ [ $address(%nick,1) ] ] ) Failed: ( %failed [ $+ [ $address(%nick,1) ] ] ) Got Right: ( %well.played [ $+ [ $address(%nick,1) ] ] ) | unset %plays | unset %game |  unset %plays | unset %number | unset %nick |  halt  
  72. }
  73. on 1:TEXT:$($!game*):#:{
  74.   if ($address($nick,1) iswm *!*sw1ft@wackybot.users.quakenet.org) {
  75.     if ($2 == off) {
  76.     set %gameoff off | msg # Game Off |  halt }
  77.     if ($2 == on) {
  78.     unset %gameoff | msg #  Game On | halt }
  79.   }
  80. }
Advertisement
Add Comment
Please, Sign In to add comment