Charmander

fuck you

Feb 22nd, 2015
313
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 1.87 KB | None | 0 0
  1. ;Trivia Script by Charmander
  2. ;The file with the questions is located here: http://www.mediafire.com/?ml77dx46ar39jqw
  3. ;Save the file in your script directory. To find where it is, type //echo -a $scriptdir
  4. ;Do not rename the file or the script will not work properly.
  5. ;Commands:
  6. ;!trivia [start the game]
  7. ;!halt [end the game]
  8. ;!score [check your score]
  9. ;Enjoy!
  10. on *:text:!trivia:#makeupmakeupmakeup: {
  11.   if (%trivia != on) {
  12.     set %trivia on
  13.     set %thing $read(FAIL.txt)
  14.     set %question $gettok(%thing,1,126)
  15.     set %answer $gettok(%thing,2,126)
  16.     inc %number
  17.     msg # Queston %number $+ : %question
  18.     .timer1 1 10 fail
  19.   }
  20.   else {
  21.     kick # $nick Trivia is already on!
  22.   }
  23. }
  24. alias fail {
  25.   if (%trivia == on) {
  26.     unset %answer
  27.     unset %question
  28.     unset %thing
  29.     msg #makeupmakeupmakeup You failed to answer the question in time! The answer was %answer $+ .Next question in 5 seconds!
  30.     timer 1 5 question
  31.   }
  32. }
  33. alias question {
  34.   if (%trivia == on) {
  35.     set %thing $read(FAIL.txt)
  36.     set %question $gettok(%thing,1,126)
  37.     set %answer $gettok(%thing,2,126)
  38.     inc %number
  39.     msg #makeupmakeupmakeup Queston %number $+ : %question
  40.     .timer1 1 15 fail
  41.   }
  42. }
  43. on *:text:*:#makeupmakeupmakeup: {
  44.   if ($1- == %answer) {
  45.     .timer1 off
  46.     inc %score [ $+ [ $nick ] ]
  47.     msg # $nick said the correct answer! The answer was %answer $+ . Next question in 5 seconds.
  48.     unset %answer
  49.     unset %thing
  50.     unset %question
  51.     timer 1 5 question
  52.   }
  53.   elseif ($1 == !halt) {
  54.     if (%trivia == on) {
  55.       .timer1 off
  56.       unset %trivia
  57.       unset %answer
  58.       unset %thing
  59.       unset %question
  60.       unset %number
  61.       msg # Trivia was stopped by $nick $+ !
  62.     }
  63.     else {
  64.       kick # $nick Trivia is already off!
  65.     }
  66.   }
  67.   elseif ($1 == !score) {
  68.     notice $nick You have %score [ $+ [ $nick ] ] points!
  69.   }
  70. }
Advertisement
Add Comment
Please, Sign In to add comment