Advertisement
illpastethat

Trivia Winner - v3 For Majin

Aug 19th, 2011
344
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 2.66 KB | None | 0 0
  1. ;Trivia Winner (Rizon Trivia Bot Cheat) v3.0
  2. ;Made by nick1
  3. ;Last edit August 20 2011
  4.  
  5. alias trivia {
  6.   /inc %chancount
  7.   /set %trivchan $+(#trivia,$r(1,1000000))
  8.   /join %trivchan
  9.   /timer 1 1 /cs register %trivchan Trivia trivia
  10.   /timer 1 3 /msg funserv request trivia %trivchan
  11.   /timer 1 5 /invite AliasUnkown %trivchan
  12.   /timer 1 7 /mode %trivchan +spo nick1
  13.   /timer 1 9 /msg %trivchan .trivia
  14.   /timer 1 12 /part %trivchan
  15.   $iif(%chancount < 18,timer 1 15 trivia,noop)
  16. }
  17.  
  18. on *:exit: {
  19.   /hsave Trivia Trivia.hsh
  20.   /hfree Trivia
  21. }
  22. on *:start: {
  23.   /timersavetrivia 0 1800 /hsave Trivia Trivia.hsh
  24.   /hmake Trivia 100
  25.   /hload -s trivia trivia.hsh
  26. }
  27. On *:text:*:#: {
  28.   if ($nick == Trivia) {
  29.     if ($remove($1,.) isnum) {
  30.       set -u85 $+(%,question,.,$chan) $2-
  31.       if ($hget(Trivia,$remove($($+(%,question,.,$chan),2),$chr(32))) != $null) {
  32.         $iif(!$window(@Trivia),window -ev @trivia,noop)
  33.         echo @Trivia $iif($hget(Trivia,$remove($($+(%,question,.,$chan),2),$chr(32))),12,4) $+ $timestamp $+(12,[,4,$chan,12,])12 Question:10 $($+(%,question,.,$chan),2) 12Answer:4 $iif($hget(Trivia,$remove($($+(%,question,.,$chan),2),$chr(32))),$v1,Unanswered)
  34.         if ($me == $me) {
  35. ;This is where the script actually messages the channel
  36. ;if you want it off change the above line to ($me != $me)
  37. ;if you want to change response time its the below line
  38. ;currently at random time from 3,000 to 8,000 milliseconds
  39.           timer -m 1 $r(3000,8000) msg $chan $lower($hget(Trivia,$remove($($+(%,question,.,$chan),2),$chr(32))))
  40.         }
  41.       }
  42.     }
  43.     elseif ($1 == Hint:) {
  44.       halt
  45.     }
  46.     elseif (($1 == Time's) && ($($+(%,question,.,$chan),2)) && ($hget(Trivia,$remove($($+(%,question,.,$chan),2),$chr(32))) == $null)) {
  47.       echo @Trivia $iif($hget(Trivia,$remove($($+(%,question,.,$chan),2),$chr(32))),12,4) $+ $timestamp $+(12,[,4,$chan,12,])12 Question:10 $($+(%,question,.,$chan),2) 12Answer:4 $iif($hget(Trivia,$remove($($+(%,question,.,$chan),2),$chr(32))),$v1,Unanswered)
  48.       hadd -m Trivia $remove($($+(%,question,.,$chan),2),$chr(32)) $remove($1-,Time's up! The answer was:)
  49.     }
  50.     elseif (($1 == Winner:) && ($($+(%,question,.,$chan),2)) && ($hget(Trivia,$remove($($+(%,question,.,$chan),2),$chr(32))) == $null)) {
  51.       tokenize 59 $1-
  52.       echo @Trivia $iif($hget(Trivia,$remove($($+(%,question,.,$chan),2),$chr(32))),12,4) $+ $timestamp $+(12,[,4,$chan,12,])12 Question:10 $($+(%,question,.,$chan),2) 12Answer:4 $iif($hget(Trivia,$remove($($+(%,question,.,$chan),2),$chr(32))),$v1,Unanswered)
  53.       hadd -m Trivia $remove($($+(%,question,.,$chan),2),$chr(32)) $remove($2,Answer: )
  54.     }
  55.   }
  56. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement