Advertisement
illpastethat

Trivia Winner - Temporary working model

Apr 5th, 2011
500
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 1.24 KB | None | 0 0
  1. On *:text:*:#: {
  2.   if ($nick == Trivia) {
  3.     if ($remove($1,.) isnum) {
  4.       if ($readini(C:\Users\Adam\AppData\Roaming\mIRC\Trivia.ini,$remove($2-,$chr(32)),answer)) {
  5.         aline 4 @Trivia Auto Answer Used In $chan $+ ... Said: $readini(C:\Users\Adam\AppData\Roaming\mIRC\Trivia.ini,np,$remove($2-,$chr(32)),answer)
  6.         $iif($r(1,2) == 2,timer 1 $r(0,3) msg $chan $replace($lower($readini(C:\Users\Adam\AppData\Roaming\mIRC\Trivia.ini,np,$remove($2-,$chr(32)),answer)),a,s,u,y,m,n,q,w,c,v),noop)
  7.         .timer 1 $r(4,9) msg $chan $lower($readini(C:\Users\Adam\AppData\Roaming\mIRC\Trivia.ini,np,$remove($2-,$chr(32)),answer))
  8.       }
  9.       set $+(%,question,.,$chan) $2-
  10.       writeini -n C:\Users\Adam\AppData\Roaming\mIRC\Trivia.ini $remove($($+(%,question,.,$chan),2),$chr(32)) Question on
  11.     }
  12.     elseif ($1 == Hint:) {
  13.       halt
  14.     }
  15.     elseif ($1 == Time's) {
  16.       writeini -n C:\Users\Adam\AppData\Roaming\mIRC\Trivia.ini $remove($($+(%,question,.,$chan),2),$chr(32)) Answer $remove($1-,Time's up! The answer was:)
  17.     }
  18.     elseif ($1 == Winner:) {
  19.       tokenize 59 $1-
  20.       writeini -n C:\Users\Adam\AppData\Roaming\mIRC\Trivia.ini $remove($($+(%,question,.,$chan),2),$chr(32)) Answer $remove($2,Answer: )
  21.     }
  22.   }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement