Advertisement
illpastethat

Revised erep .erth for leal9001

Sep 9th, 2011
347
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 1.87 KB | None | 0 0
  1. on *:text:.erth:#: {
  2.   if ($nick isop $chan) {
  3.     ;numbers :)
  4.     var %1 = $rand(1,50)
  5.     :number2  
  6.     var %2 = $rand(1,50)
  7.     if (%1 == %2) goto number2
  8.     :number3
  9.     var %3 = $rand(1,50)
  10.     if ((%1 == %3) || (%2 == %3)) goto number3
  11.     :number4  
  12.     var %4 = $rand(1,50)
  13.     if ((%1 == %4) || (%2 == %4) || (%3 == 4)) goto number4
  14.     :number5  
  15.     var %5 = $rand(1,50)
  16.     if ((%1 == %5) || (%2 == %5) || (%3 == %5) || (%4 == %5)) goto number5
  17.     var %m = msg $chan
  18.     var %t = .timer 1
  19.     var %1 $iif(%1 < 10,0 $+ $v1,$v1)
  20.     var %2 $iif(%2 < 10,0 $+ $v1,$v1)
  21.     var %3 $iif(%3 < 10,0 $+ $v1,$v1)
  22.     var %4 $iif(%4 < 10,0 $+ $v1,$v1)
  23.     var %full = %1 %2 %3 %4 %5
  24.     var %full = $replace(%full,$chr(32),$chr(47)
  25.     var %joker = $gettok(%full, $rand(1, $numtok(%full, 47)), 47)
  26.     %t 1 mode $chan +m
  27.     %t 5 %m Welcome to the eRep-Thousands Raffle
  28.     %t 10 %m The bets were set, now we'll see who won.
  29.     %t 15 %m Please wait while the raffle is occuring. Thank you.
  30.     %t 18 %m ~vrooom~ ball spining
  31.     %t 23 %m And the first number is...
  32.     %t 28 %m 4 $+ %1 $+ !!!
  33.     %t 32 %m Here goes the second one...
  34.     %t 37 %m 4 $+ %2 $+ !!!
  35.     %t 41 %m Ohhh!... Not the third one!...
  36.     %t 46 %m 4 $+ %3 $+ !!!
  37.     %t 50 %m And there goes the fourth...
  38.     %t 55 %m 4 $+ %4 $+ !!!
  39.     %t 59 %m Last but not least...
  40.     %t 64 %m 4 $+ %5 $+ !!!
  41.     %t 68 %m Now those are your numbers. Let's see what the joker is!
  42.     %t 71 %m And the joker is...
  43.     %t 81 %m 4 $+ %joker $+ !!!
  44.     %t 85 %m The raffle has now ended.
  45.     %t 88 %m The chosen numbers are 4 $+ $sorttok(%full, 47, n) and the joker is 4 $+ %joker $+ .
  46.     %t 92 %m All of these numbers have been chosen randomly with no interference from human hands.
  47.     %t 99 mode $chan -m
  48.   }
  49.   else msg $chan You are not part of the eRep-Thousands' staff.
  50. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement