Top

Trivia


mIRC Code
+ 13 likes
Please Register to submit score.
Bookmark and Share
Average Score  9.1 (of 15 scores)
Date Added  Jul 19, 2007
Last Updated  Jul 09, 2008
Tags  answer  hint  mountaindew  new  question  snippet  start  stop  ten  top  top10  topten  trivia  wrong 

Description

~*~*~Mountaindew's Trivia~*~*~
~*~*~ReadMe~*~*~


*Open mIRC
*Go to remotes, alt+r, and paste the script
*Enter the owner and channel when it asks you
*Dialog will pop up on load
*Go to questions tab and add questions
*To open the dialog in the future, right click anywhere � Trivia OR type /trivia


�Trivia Commands�

*!trivia ~ Starts Trivia
*!strivia ~ Stops Trivia (all, op, or voice)
*!report <ques> ~ Reports Question
*!score ~ Returns your rank and score
*!score <nick> ~ Returns someone's rank and score
*!trivhelp ~ Returns Trivia commands
*!questions ~ Returns number of trivia questions
*!give <nick> <points> ~ Gives someone points (owner)
*!top10 ~ Returns top 10 scores


�Trivia Dialog�

*Settings

*Stop after N questions
*Privledge for !strivia command
*Start/Stop Trivia
*Set Owner
*Set Channel
*Add missed question response

*Reports

*View Reported Questions
*Fix Reported Questions
*Remove Reported Question
*Clear All Reported Questions
*View whats wrong w/ reported question

*Questions

*View all questions
*Add a question
*Remove a question
*Clear All Questions
*Edit question, hint1, hint2, and answer of a question
*Add a txt file full of questions in question|answer format or question|hint1|hint2|answer format

*Scores

*View all scores
*Add Score
*Remove Score
*Edit Someone's Score
*Clear all scores


When someone gets the answer, it will say the time, rank, score,
answer, streak, and person behind you/in front of you's rank and score

Ex:

<Terrance> You got it mountaindew! The answer was sais! You got it in 2.609 seconds! Your streak is 3 question!
<Terrance> You are ranked 2nd out of 3 with 501 points! You are behind thrall with 560 points!

OR

<Terrance> Wahoo thrall! The answer was seventy-two! You got it in 17.359 seconds! Your streak is 2 questions!
<Terrance> You are ranked 1st out of 3 with 561 points! mountaindew is trailing behind you with 501 points!

Also, the on text's interact with the dialog. So if you type !give mountaindew 20, and the points tab is up with mountaindew's score, it will edit the dialog! Same goes with the !trivia and !strivia, it will enable/disable the start/stop trivia buttons. :)

Here's some screens of the dialog:



Thanks for using my trivia script!

Let me know of any problems/comments/suggestions


�~� MountainDew �~�

Grab the Code

menu * {
  Trivia:trivia
}
on *:load:{
  write missed.txt Sorry guys, but you got it wrong!
  write missed.txt Aww cmon guys!
  write missed.txt You guys suck!
  write missed.txt I can't believe you got it wrong!
  write missed.txt You guys are miserable at this!
  hadd -m trivia strivia ison
  :start
  var %x = $input(Who would you like to set as your owner?,qe,Bot Owner)
  if (%x != $null) hadd -m trivia owner %x
  else goto start
  :chan
  var %y = $input(What channel would you like trivia to be for?,qe,Trivia Channel)
  if ($left(%y,1) == $chr(35)) hadd -m trivia chan %y
  else goto chan
}
on *:unload:{
  if ($isfile(reports.ini)) .remove -b reports.ini
  if ($isfile(questions.ini)) .remove -b questions.ini
  if ($isfile(scores.ini)) .remove -b scores.ini
  if ($isfile(missed.txt)) .remove -b missed.txt
  if ($hget(scores)) hfree $v1
  if ($hget(reports)) hfree $v1
  if ($hget(questions)) hfree $v1
  unset %streak*
  unset %wrong
  if ($hget(trivia)) hfree $v1
  .timertriv* off
}
on *:kick:#:{
  if ($knick == $me && $chan == $hget(trivia,chan)) {
    hadd -m trivia status off
    hdel trivia answer
    hdel trivia time
    .timertriv* off
    unset %streak*
    unset %wrong
  }
}
on *:start:{
  if (!$hget(scores)) hmake scores
  if (!$hget(reports)) hmake reports
  if (!$hget(questions)) hmake questions
  hload -i reports reports.ini
  hload -i questions questions.ini
  hload -i scores scores.ini
  if (!$hget(trivia)) hmake trivia
  hload -i trivia trivia.ini
  if (!$hget(trivia,owner)) {
    :start
    var %x = $input(Who would you like to set as your owner?,qe,Bot Owner)
    if (%x != $null) hadd -m trivia owner %x
    else goto start
  }
}
on *:join:#:{
  if ($chan == $hget(trivia,chan) && $nick == $me) {
    if ($dialog(trivia)) {
      did -e trivia 9
      did -b trivia 10
    }
  }
}
on *:part:#:{
  if ($nick == $me && $chan == $hget(trivia,chan)) {
    if ($dialog(trivia)) {
      did -e trivia 9
      did -b trivia 10,9
    }
    hadd -m trivia status off
    hdel trivia answer
    hdel trivia time
    .timertriv* off
    unset %streak*
    unset %wrong
  }
}
on *:exit:{
  hsave -i trivia trivia.ini
  hsave -i scores scores.ini
  hsave -i reports reports.ini
  hsave -i questions questions.ini
}
on *:connect: if ($dialog(trivia)) did -e trivia 9
on *:disconnect:{
  hadd -m trivia status off
  hdel trivia answer
  hdel trivia time
  .timertriv* off
  unset %streak*
  unset %wrong
  if ($dialog(trivia)) did -b trivia 10,9
}
on *:text:*:#:{
  if ($chan == $hget(trivia,chan)) {
    if ($regex($1,/^[!@.](?:trivia|start|triv(?:on|start))$/Si)) {
      if ($hget(trivia,status) != on) {
        hadd -m trivia status on
        .msg $chan $+(03Trivia has been started by04 $nick,03!)
        .timertrivnew 1 2 new
        if ($dialog(trivia)) {
          did -b trivia 9
          did -e trivia 10
        }
      }
      else .msg $chan 03Trivia is already04 on03 $+ !
    }
    if ($regex($1,/^[!@.](?:strivia|stop|triv(?:off|stop))$/Si)) {
      if ($hget(trivia,status) == on) {
        if ($nick $hgeT(trivia,strivia) $chan) {
          hadd -m trivia status off
          hdel trivia answer
          hdel trivia time
          .timertriv* off
          unset %streak*
          .msg $chan 03Trivia has been stopped by04 $nick $+ 03!
          if ($dialog(trivia)) {
            did -b trivia 10
            did -e trivia 9
          }
        }
        else .msg $chan you dont have access to that command
      }
      else .msg $chan 03Trivia is already04 off3 $+ !
    }
    if ($strip($1-) == $hget(trivia,answer)) {
      unset %wrong
      var %time = $calc($calc($ticks - $hget(trivia,time)) / 1000)
      var %a = %streak [ $+ [ $nick ] ]
      unset %streak*
      set %streak [ $+ [ $nick ] ] $calc(%a + 1)
      hdel trivia answer
      .timertriv* off
      hinc -m scores $nick
      .msg $chan $+(06,$gettok(Way to go|That's the way|Wahoo|You got it,$r(1,4),124),$chr(32),04,$nick,06!) The answer was04 $strip($1-) $+ 06! You got it in04 %time 06seconds! Your streak is4 %streak [ $+ [ $nick ] ] 6questions!
      .msg $chan 06You are ranked4 $rank($nick) 06out of04 $hget(scores,0).item 06with04 $score($nick) 06points! $iif($hget(scores,0).item > 1,$iif(1st* !iswm $rank($nick),06You are behind04 $behind($nick) 06with04 $score($behind($nick)) 06points!,04 $+ $first 06is trailing behind you with04 $score($first) 06points!),You are the first one to score!)
      if ($dialog(trivia) && $did(trivia,14).seltext == $nick) did -ra trivia 15 $hget(scores,$nick) Points
      .timertrivrightnew 1 3 new
    }
    if ($regex($1,/^[!@.](?:top(ten|score(s)?|10)?|scores)$/Si)) top10
    if ($1 == !score) {
      if ($2) {
        if (*has no rank yet !iswm $rank($2)) {
          .msg $chan 04 $+ $2 03is ranked4 $rank($2) 03out of04 $hget(scores,0).item 03with4 $score($2) 03points!
        }
        else .msg $chan 4 $+ $2 3isn't currently ranked.
      }
      else {
        if (*has no rank yet !iswm $rank($nick)) {
          .msg $chan 04You03 are ranked04 $rank($nick) 03out of04 $hget(scores,0).item 03with04 $score($nick) 03points!
        }
        else .msg $chan 4You3 aren't currently ranked.
      }
    }
    if ($1 == !report) {
      if ($2 <= $hget(questions,0).item && $3) {
        var %x = $hget(questions,$2)
        var %y = 1
        var %z = $hget(reports,1).item
        while $hgeT(reports,%y).item {
          if ($v1 > %z) var %z = $v1
          inc %y
        }
        hadd -m reports $calc(%z + 1) $gettok(%x,1,1) $chr(1) $3-
        .msg $chan 03Thanks04 $nick $+ 03 $+ $chr(44), 04 $hgeT(trivia,owner) 03will read your report shortly.
        if ($dialog(trivia)) {
          did -r trivia 51
          var %x = 1
          while $hget(reports,%x).item {
            did -a trivia 51 $gettok($hget(reports,$v1),1,1)
            inc %x
          }
          did -z trivia 51
        }
      }
      else .msg $chan 12Syntax03: !report <04ques #03> <04problem03>
    }
    if ($1 == !questions) .msg $chan 03There are currently04 $hget(questions,0).item 03questions.
    if ($1 == !give) {
      if ($nick == $hget(trivia,owner)) {
        if ($3 isnum) {
          if (!$hget(scores,$2) && $dialog(trivia)) { did -a trivia 14 $2 | did -z trivia 14 }
          hadd -m scores $2 $3
          .msg $chan 04 $+ $2 03now has04 $score($2) 03points.
          if ($dialog(trivia) && $did(trivia,14).seltext == $2) did -ra trivia 15 $3 Points
        }
        else .msg $chan 12Syntax: 03!give <4nick3> <4points3>
      }
      else .msg $chan 03I don't believe you're04 $hget(trivia,owner) $+ 03.
    }
    if ($regex($1,/^[!@.](?:triv(ia)?(?:help)|help)$/Si)) {
      .notice $nick ~*~Trivia Commands~*~
      .notice $nick !trivia ~ Starts trivia
      .notice $nick !strivia ~ Stops trivia $iif($hget(trivia,strivia) != ison,if you are) $iif($hget(trivia,strivia) == isop,op'd) $iif($hget(trivia,strivia) == isvoice,voiced)
      .notice $nick !score ~ Returns your rank and score
      .notice $nick !score <nick> ~ Returns <nick>'s rank and score
      .notice $nick !report <ques #> <problem> ~ report a question
      .notice $nick !trivhelp ~ Returns trivia help (this)
      .notice $nick !questions ~ Returns tumber of trivia questions
      .notice $nick !top10 ~ Returns top 10 scores
      if ($nick == $hget(trivia,owner)) .notice $nick !give <nick> <points> ~ Give someone points
    }
  }
}
alias -l new {
  var %chan = $hget(trivia,chan)
  var %total = $hget(questions,0).item
  var %number = $hget(questions,$r(1,%total)).item
  noop $regex($hget(questions,%number),/^(.+)(.+)(.+)(.+)$/i)
  hdel trivia answer
  hadd -m trivia answer $regml(4)
  .msg %chan $+(11~04*11~03Question04 %number,06/04,$hget(questions,0).item,11~04*11~)
  .msg %chan 12 $+ $regml(1)
  hadd -m trivia time $ticks
  .timertrivhint1 1 2 .msg %chan 03Hint: $regml(2)
  .timertrivhint2 1 15 .msg %chan 03Hint: $regml(3)
  .timertrivwrong 1 30 wrong
}
alias wrong {
  inc %wrong
  if (%wrong >= $hget(trivia,wrong)) {
    hadd -m trivia status off
    hdel trivia answer
    hdel trivia time
    .timertriv* off
    unset %streak*
    .msg $hget(trivia,chan) 04 %wrong 10questions have gone by unanswered! Trivia has been stopped by04 $me $+ 10!
    unset %wrong
    if ($dialog(trivia)) {
      did -b trivia 10
      did -e trivia 9
    }
  }
  else {
    .msg $hget(trivia,chan) 10 $+ $read(missed.txt) Get ready for the next question...
    ;if you want it to msg the answer, use the line below instead
    ;.msg $hget(trivia,chan) 10The answer was04 $hget(trivia,answer) $+ 10! Get ready for the next question...
    unset %streak*
    .timertrivnewfromwrong 1 2 new
  }
}
alias -l top10 {
  var %d = 1, %w = @top10
  window -hn %w
  clear %w
  while $hget(scores,%d).item {
    aline %w $v1 $hget(scores,$v1)
    inc %d
  }
  filter -cteuww 2 32 %w %w
  var %k = 1, %k1
  while %k <= 10  {
    if ( $line(%w,%k) ) {
      tokenize 32 $v1
      if (%k == 1) var %x = $addtok(%x,04 $+ $1 ~ $hget(scores,$1),44)
      if (%k == 2) var %x = $addtok(%x,12 $+ $1 ~ $hget(scores,$1),44)
      if (%k == 3) var %x = $addtok(%x,03 $+ $1 ~ $hget(scores,$1),44)
      elseif (%k isnum 4-10) var %x = $addtok(%x,06 $+ $1 ~ $hget(scores,$1),44)
    }
    inc %k
  }
  .msg $hget(trivia,chan) $iif($line(%w,1),$replace(%x,$chr(44),$chr(44) $chr(32))%x,3There are no high scores.)
}
alias -l rank {
  var %d = 1, %w = @top10, %n = $$1
  window -hn %w
  clear %w
  while $hget(scores,%d).item {
    aline %w $v1 $hget(scores,$v1)
    inc %d
  }
  filter -cteuww 2 32 %w %w
  return $iif($fline(%w,%n *,1),$ord($v1),$1 has no rank yet)
}
alias -l score {
  var %d = 1, %w = @top10, %n = $$1
  window -hn %w
  clear %w
  while $hget(scores,%d).item {
    aline %w $v1 $hget(scores,$v1)
    inc %d
  }
  filter -cteuww 2 32 %w %w
  return $iif($fline(%w,%n *,1),$gettok($line(%w,$v1),2,32),$1 has no score yet)
}
alias -l behind {
  if ($isid) {
    var %d = 1, %w = @top5, %n = $$1
    window -hn %w
    clear %w
    while $hget(scores,%d).item {
      aline %w $v1 $hget(scores,$v1)
      inc %d
    }
    filter -cteuww 2 32 %w %w
    return $iif($gettok($line(%w,$calc($fline(%w,%n *,1) - 1)),1,32) != 3,$v1,first)
  }
}
alias -l first {
  if ($isid) {
    var %d = 1, %w = @top5
    window -hn %w
    clear %w
    while $hget(scores,%d).item {
      aline %w $v1 $hget(scores,$v1)
      inc %d
    }
    filter -cteuww 2 32 %w %w
    return $iif($line(%w,1),$gettok($line(%w,2),1,32),error)
  }
}
dialog trivia {
  title "Trivia"
  size -1 -1 136 203
  option dbu
  tab "Settings", 1, 2 -1 132 201
  box "!Strivia Command", 5, 7 52 58 60, tab 1
  radio "Op", 6, 16 62 22 10, tab 1
  radio "Voice", 7, 16 77 25 10, tab 1
  radio "All Users", 8, 16 92 34 10, tab 1
  button "Start Trivia", 9, 26 30 37 12, disable tab 1
  button "Stop Trivia", 10, 65 30 37 12, disable tab 1
  box "Trivia Status", 12, 23 20 83 26, tab 1
  text "Owner:", 43, 10 125 19 8, tab 1
  edit "", 44, 32 124 74 10, tab 1 read autohs
  button "Edit", 45, 109 125 15 8, tab 1
  text "Channel:", 46, 10 139 23 8, tab 1
  edit "", 47, 32 138 74 10, tab 1 read autohs
  button "Edit", 48, 109 139 15 8, tab 1
  box "", 49, 7 117 121 35, tab 1
  box "Stop After N Wrong", 54, 70 52 58 60, tab 1
  radio "5 Questions", 55, 76 60 50 10, tab 1
  radio "10 Questions", 56, 76 71 50 10, tab 1
  radio "15 Questions", 57, 76 81 50 10, tab 1
  radio "20 Questions", 58, 76 91 50 10, tab 1
  radio "Unlimited", 59, 76 101 50 10, tab 1
  edit "", 60, 10 165 98 10, tab 1
  box "Add Missed Question Response", 62, 7 157 121 21, tab 1
  button "Add", 61, 109 165 15 8, disable tab 1
  tab "Reports", 2
  edit "", 50, 7 121 123 10, tab 2 read autohs
  list 51, 6 23 123 84, tab 2 sort size hsbar
  box "Reported Questions", 52, 4 15 127 94, tab 2
  box "Functions", 66, 16 144 98 20, tab 2
  button "Clear", 67, 50 152 30 10, disable tab 2
  button "Remove", 68, 20 152 30 10, disable tab 2
  button "Fix", 22, 80 152 30 10, disable tab 2
  box "Problem", 53, 5 113 127 20, tab 2
  tab "Questions", 3
  list 23, 6 23 123 84, tab 3 sort size hsbar
  button "Add *.txt", 24, 7 169 30 10, tab 3
  button "Add", 25, 37 169 30 10, tab 3
  button "Clear", 26, 97 169 30 10, disable tab 3
  button "Remove", 27, 67 169 30 10, disable tab 3
  box "Functions", 28, 5 161 124 20, tab 3
  box "Questions", 29, 4 15 127 94, tab 3
  edit "", 30, 30 136 82 10, tab 3 read autohs
  text "Hint 1:", 33, 6 126 18 8, tab 3
  edit "", 32, 30 147 82 10, tab 3 read autohs
  edit "", 31, 30 125 82 10, tab 3 read autohs
  text "Hint 2:", 35, 6 138 18 8, tab 3
  text "Answer:", 34, 6 148 22 8, tab 3
  box "", 36, 4 109 127 50, tab 3
  button "Edit", 37, 113 137 15 8, disable tab 3
  button "Edit", 39, 113 148 15 8, disable tab 3
  button "Edit", 38, 113 126 15 8, disable tab 3
  text "Question:", 40, 6 115 25 8, tab 3
  edit "", 41, 30 114 82 10, tab 3 read autohs
  button "Edit", 42, 113 115 15 8, disable tab 3
  tab "Scores", 4
  box "Scores", 13, 6 17 53 155, tab 4
  list 14, 9 25 47 144, tab 4 sort size hsbar
  edit "", 15, 66 136 59 10, tab 4 read autohs
  box "Score", 16, 64 128 64 21, tab 4
  button "Edit", 17, 75 78 37 12, disable tab 4
  button "Add", 18, 75 38 37 12, tab 4
  button "Remove", 19, 75 58 37 12, disable tab 4
  button "Clear", 20, 75 98 37 12, disable tab 4
  box "Functions", 21, 72 27 44 88, tab 4
  button "OK", 11, 48 185 37 12, ok cancel
}
alias trivia {
  if ($dialog(trivia)) dialog -x trivia trivia
  dialog -m trivia trivia
}
on *:dialog:trivia:*:*:{
  var %chan = $hgeT(trivia,chan)
  if ($devent == init) {
    if ($hget(trivia,wrong) == 5) did -c trivia 55
    if ($hget(trivia,wrong) == 10) did -c trivia 56
    if ($hget(trivia,wrong) == 15) did -c trivia 57
    if ($hget(trivia,wrong) == 20) did -c trivia 58
    if ($hget(trivia,wrong) !isnum) did -c trivia 59
    if ($hget(reports,1).item) did -e trivia 67
    did -a trivia 44 $hget(trivia,owner)
    if ($hget(reports)) {
      var %asdf = 1
      while $hget(reports,%asdf).item {
        did -a trivia 51 $gettok($hget(reports,$v1),1,1)
        inc %asdf
      }
      did -z trivia 51
    }
    did -a trivia 47 $hget(trivia,chan)
    if ($hget(questions,1).item) did -e trivia 26
    var %s = 1
    while $hgeT(questions,%s).item {
      did -a trivia 23 $gettok($hget(questions,$v1),1,1)
      inc %s
    }
    did -z trivia 23
    if ($hget(trivia,status) == on) did -e trivia 10
    else did -e trivia 9
    var %x = 1
    while $hget(scores,%x).item {
      did -a trivia 14 $v1
      inc %x
    }
    did -z trivia 14
    if ($hgeT(scores)) did -e trivia 20
    if (!$server) did -b trivia 9,10
    if ($hget(trivia,strivia) == isvoice) did -c trivia 7
    if ($hgeT(trivia,strivia) == isop) did -c trivia 6
    if ($hget(trivia,strivia) == ison || !$v1) { 
      did -c trivia 8 
    }
  }
  if ($devent == sclick) {
    if ($did == 9) {
      if ($hget(trivia,status) != on) {
        hadd -m trivia status on
        did -b trivia 9
        did -e trivia 10
        .msg %chan $+(03Trivia has been started by04 $me,03!)
        .timertrivnew 1 2 new
      }
    }
    if ($did == 10) {
      if ($hget(trivia,status) == on) {
        hadd -m trivia status off
        hdel trivia answer
        hdel trivia time
        did -e trivia 9
        did -b trivia 10
        .timertriv* off
        unset %streak*
        .msg %chan 03Trivia has been stopped by04 $me $+ 03!
      }
    }
    if ($did == 14 && $diD(trivia,14).seltext != $null) {
      did -ra trivia 15 $hget(scores,$did(trivia,14).seltext) Points
      did -e trivia 19,17
    }
    if ($did isnum 6-8) {
      if ($did == 6) hadd -m trivia strivia isop
      if ($did == 7) hadd -m trivia strivia isvoice
      if ($did == 8) hadd -m trivia strivia ison
      if ($hget(trivia,wrong) == 5) did -c trivia 55
      if ($hget(trivia,wrong) == 10) did -c trivia 56
      if ($hget(trivia,wrong) == 15) did -c trivia 57
      if ($hget(trivia,wrong) == 20) did -c trivia 58
      if ($hget(trivia,wrong) !isnum) did -c trivia 59
    }
    if ($did == 20) {
      var %x = $input(Are you sure you would like to erase all scores?,cy,Clear All Scores)
      if (%x == $true) {
        hfree scores
        did -r trivia 14,15
        did -b trivia 20,17,19
        .msg %chan 4All03 scores cleared.
      }
    }
    if ($did == 19) {
      var %x = $input(Are you sure you would like to erase $did(trivia,14).seltext $+ 's score?,cy,Clear $did(trivia,14).seltext $+ 's Score)
      if (%x == $true) {
        .msg %chan 04 $+ $did(trivia,14).seltext $+ 's 3score has been 04cleared03.
        hdel scores $did(trivia,14).seltext
        did -r trivia 15,14
        did -b trivia 17,19,20
        var %y = 1
        while $hgeT(scores,%y).item {
          did -a trivia 14 $v1
          inc %y
        }
        did -z trivia 14
        if ($hget(scores,1).item) did -e trivia 20
      }
    }
    if ($did == 18) {
      var %x = $input(Who would you like to add to the score list?,qe,Adding Score)
      if (%x != $null) {
        if ($numtok(%x,32) == 1) {
          var %y = $input(What would you like %x $+ 's score to be?,qe,%x $+ 's Score)
          if (%y isnum && %y) {
            hadd -m scores %x %y
            .msg %chan 04 $+ %x 03now has 04 $+ %y 03points!
            did -r trivia 15,14
            did -b trivia 17,19
            did -e trivia 20
            var %a = 1
            while $hget(scores,%a).item {
              did -a trivia 14 $v1
              inc %a
            }
            did -z trivia 14
          }
          else var %test = $input(The score must be a number!,ho,Error!)
        }
        else var %sos = $input(The name must be one word!,ho,Error!)
      }
      else var %asdf = $input(You must enter a name!,ho,Error!)
    }
    if ($did == 17) {
      var %x = $input(What would you like $did(trivia,14).seltext $+ 's new score to be?,qe,$did(trivia,14).seltext $+ 's Score,$hget(scores,$did(trivia,14).seltext))
      if (%x isnum) {
        hadd -m scores $did(trivia,14).seltext %x
        .msg %chan 4 $+ $did(trivia,14).seltext 03now has04 %x 03points!
        did -ra trivia 15 %x Points
      }
      else var %asdf = $input(The score must be a number!,ho,Error!)
    }
    if ($did == 24) dialog $iif($dialog(txt),-v,-m) txt txt
    if ($did == 25) {
      var %ques = $input(What question would you like to add?,qe,Question)
      if (%ques != $null) {
        var %hint1 = $input(What would you like the first hint to be?,qe,Hint 1)
        if (%hint1 != $null) {
          var %hint2 = $input(What would you like the second hint to be?,qe,Hint 2)
          if (%hint2 != $null) {
            var %ans = $input(What would you like the answer to be?,qe,Answer)
            if (%ans != $null) {
              did -r trivia 23,30,31,32,41
              var %y = 1
              var %z = $hget(questions,1).item
              while $hget(questions,%y).item {
                if ($v1 > %z) var %z = $v1
                inc %y
              }
              hadd -m questions $calc(%z + 1) $+(%ques,$chr(1),%hint1,$chr(1),%hint2,$chr(1),%ans)
              did -e trivia 26
              var %b = 1
              while $hget(questions,%b).item {
                did -a trivia 23 $gettok($hget(questions,$v1),1,1)
                inc %b
              }
              did -z trivia 23
              did -b trivia 27,37,38,39,42
            }
          }
        }
      }
    }
    if ($did == 26) {
      var %x = $input(Are you sure you want to erase all questions?,cy,Remove All Questions)
      if (%x == $true) {
        did -r trivia 23,30,31,32,41
        hfree questions
        did -b trivia 26,27,37,38,39,42
      }
    }
    if ($did == 23 && $did(trivia,23).seltext != $null) {
      did -e trivia 27,37,38,39,42
      var %x = $hget(questions,$hfind(questions,$did(trivia,23).seltext $+ *,1,w).data)
      noop $regex($hget(questions,$hfind(questions,$did(trivia,23).seltext $+ *,1,w).data),/^(.+)(.+)(.+)(.+)$/i)
      did -ra trivia 31 $regml(2)
      did -ra trivia 30 $regml(3)
      did -ra trivia 32 $regml(4)
      did -ra trivia 41 $regml(1)
    }
    if ($did == 27) {
      var %x = $input(Are you sure you want to delete this question?,cy,Delete Question)
      if (%x == $true) {
        hdel questions %a $hfind(questions,$did(trivia,23).seltext $+ *,1,w).data
        did -r trivia 23,30,31,32,41
        var %y = 1
        while $hget(questions,%y).item {
          did -a trivia 23 $gettok($hget(questions,$v1),1,1)
          inc %y
        }
        did -b trivia 27,37,38,39,42
        did -z trivia 23
      }
    }
    if ($did == 38) {
      var %x = $input(What would you like hint 1 to be?,qe,Hint 1,$did(trivia,31).text)
      if (%x != $null) {
        var %y = $hfind(questions,$did(trivia,23).seltext $+ *,1,w).data
        var %a = $hget(questions,%y)
        var %z = $replace(%a,$gettok(%a,2,1),%x)
        hadd -m questions %y %z
        did -ra trivia 31 %x
      }
    }
    if ($did == 37) {
      var %as = $input(What would you like Hint 2 to be?,qe,Hint 2,$did(trivia,30).text)
      if (%as != $null) {
        var %y = $hfind(questions,$did(trivia,23).seltext $+ *,1,w).data
        var %a = $hget(questions,%y)
        var %z = $replace(%a,$gettok(%a,3,1),%as)
        hadd -m questions %y %z
        did -ra trivia 30 %as
      }
    }
    if ($did == 39) {
      var %sa = $input(What would you like the answer to be?,qe,Answer,$did(trivia,32).text)
      if (%sa != $null) {
        var %y = $hfind(questions,$did(trivia,23).seltext $+ *,1,w).data
        var %a = $hget(questions,%y)
        var %z = $replace(%a,$gettok(%a,4,1),%sa)
        hadd -m questions %y %z
        did -ra trivia 32 %sa
      }
    }
    if ($did == 42) {
      var %sas = $input(What would you like to rename the question as?,qe,Question,$did(trivia,41).text)
      if (%sas != $null) {
        var %y = $hfind(questions,$did(trivia,23).seltext $+ *,1,w).data
        var %a = $hget(questions,%y)
        var %z = $replace(%a,$gettok(%a,1,1),%sas)
        hadd -m questions %y %z
        did -ra trivia 41 %sas
        did -r trivia 23
        var %lmn = 1
        while $hget(questions,%lmn).item {
          did -a trivia 23 $gettok($hget(questions,$v1),1,1)
          inc %lmn
        }
        did -c trivia 23 $didwm(trivia,23,%sas $+ *)
        did -z trivia 23
      }
    }
    if ($did == 45) {
      var %x = $input(Who would you like to set as the owner?,qe,Owner,$hget(trivia,owner))
      if (%x != $null) {
        hadd -m trivia owner %x
        did -ra trivia 44 %x
      }
    }
    if ($did == 48) {
      var %x = $input(What would you like to set as the trivia channel?,qe,Trivia Channel,$hget(trivia,chan))
      if (%x != $null) {
        if ($left(%x,1) == $chr(35)) {
          hadd -m trivia chan %x
          did -ra trivia 47 %x
        }
        else var %y = $input(The channel must begin with $chr(35),ho,Error!)
      }
    }
    if ($did == 51 && $did(trivia,51).seltext != $null) {
      did -ra trivia 50 $gettok($hget(reports,$hfind(reports,$did(trivia,51).seltext $+ *,1,w).data),2,1)
      did -e trivia 68,22
    }
    if ($did == 22) {
      did -c trivia 3
      did -c trivia 23 $didwm(trivia,23,$did(trivia,51).seltext $+ *)
      var %x = $hget(questions,$hfind(questions,$did(trivia,23).seltext $+ *,1,w).data)
      did -ra trivia 31 $gettok(%x,2,1)
      did -ra trivia 30 $gettok(%x,3,1)
      did -ra trivia 32 $gettok(%x,4,1)
      did -ra trivia 41 $gettok(%x,1,1)
      did -e trivia 27,37,38,39,42
    }
    if ($did == 67) {
      var %x = $input(Are you sure you would like to delete all reports?,cy,Erase All Reports)
      if (%x == $true) {
        did -r trivia 51,50
        hfree reports
      }
    }
    if ($did == 68) {
      var %x = $input(Are you sure you would like to remove this report?,cy,Remove Report)
      if (%x == $true) {
        did -b trivia 22,67,68
        hdel reports $hfind(reports,$did(trivia,51).seltext $+ *,1,w).data
        var %x = 1
        did -r trivia 51,50
        while $hget(reports,%x).item {
          did -a trivia 51 $gettok($hget(reports,$v1),1,1)
          inc %x
        }
        did -z trivia 51
        if ($hget(reports,1).data) did -e trivia 67
      }
    }
    if ($did isnum 55-58) {
      hadd -m trivia wrong $gettok($did(trivia,$did),1,32)
      if ($hget(trivia,strivia) == ison) did -c trivia 8
      if ($hget(trivia,strivia) == isvoice) did -c trivia 7
      if ($hgeT(trivia,strivia) == isop) did -c trivia 6
    }
    if ($did == 59) {
      hadd -m trivia wrong none
      if ($hget(trivia,strivia) == ison) did -c trivia 8
      if ($hget(trivia,strivia) == isvoice) did -c trivia 7
      if ($hgeT(trivia,strivia) == isop) did -c trivia 6
    }
    if ($did == 61) {
      write missed.txt $did(trivia,60).text
      did -r trivia 60
      did -b trivia 61
      var %x = $input(Missed Question Response Added!,io,Response Added)
    }
  }
  if ($devent == edit && $did == 60) {
    if ($did(trivia,60).text != $null) did -e trivia 61
    else did -b trivia 61
  }
}
alias -l hash {
  var %del = $$input(What delimeter seperates the question from the answer?,qe,Delimeter)
  var %x = 1
  unset %ques %ans
  while $read($qt($$1-),%x) {
    var %ques = $gettok($v1,1,%del)
    var %ans = $gettok($v1,2,%del)
    var %y = 1
    unset %hint1 %hint2
    while $gettok(%ans,%y,32) {
      var %hint1 = $addtok(%hint1,$chr(32) $+ $replace($v1,a,_,b,_,c,_,d,_,e,_,f,_,g,_,h,_,i,_,j,_,k,_,l,_,m,_,n,_,o,_,p,_,q,_,r,_,s,_,t,_,u,_,v,_,w,_,x,_,y,_,z,_,1,_,2,_,3,_,4,_,5,_,6,_,7,_,8,_,9,_,0,_),32)
      var %hint2 = $addtok(%hint2,$chr(32) $+ $left($v1,1) $+ $replace($mid($v1,2),a,_,b,_,c,_,d,_,e,_,f,_,g,_,h,_,i,_,j,_,k,_,l,_,m,_,n,_,o,_,p,_,q,_,r,_,s,_,t,_,u,_,v,_,w,_,x,_,y,_,z,_,1,_,2,_,3,_,4,_,5,_,6,_,7,_,8,_,9,_,0,_),32)
      inc %y
    }
    var %z = 1
    while $hget(questions,%z).item {
      inc %z
    }
    hadd -m questions $calc(%z + 1) $+(%ques,$chr(1),%hint1,$chr(1),%hint2,$chr(1),%ans)
    inc %x
  }
  did -r trivia 23
  var %b = 1
  while $hget(questions,%b).item {
    did -a trivia 23 $gettok($hget(questions,$v1),1,1)
    inc %b
  }
  did -z trivia 23
  did -e trivia 26
  did -b trivia 27,38,37,39,42
}
 
dialog -l txt {
  title "Add *.txt"
  size -1 -1 101 58
  option dbu
  button "...", 1, 84 6 11 10
  edit "", 2, 7 6 74 10, autohs
  radio "Question|Answer", 3, 7 30 53 10
  radio "Question|Hint1|Hint2|Answer", 4, 7 20 84 10
  button "OK", 5, 20 44 28 10, disable ok
  button "Cancel", 6, 53 44 28 10, cancel
}
 
on *:dialog:txt:*:*:{
  if ($devent == sclick) {
    if ($did == 1) {
      :a
      var %x = $$sfile($mircdir $+ *.txt,Select a .txt file,Select)
      if ($right(%x,4) != .txt) {
        var %y = $input(Please select a .txt file!,ho,Error!)
        goto a
      }
      else did -ra txt 2 %x
      if (($did(txt,3).state == 1 || $did(txt,4).state == 1) && $right($did(txt,2),4) == .txt) {
        did -e txt 5
      }
      else did -b txt 5
    }
    if ($did == 3 || $did == 4) {
      if (($did(txt,3).state == 1 || $did(txt,4).state == 1) && $right($did(txt,2),4) == .txt) {
        did -e txt 5
      }
      else did -b txt 5
    }
    if ($did == 5) {
      if ($isfile($did(txt,2))) {
        if ($did(txt,3).state == 1) {
          hash $did(txt,2)
        }
        elseif ($did(txt,4).state == 1) {
          addtxt $did(txt,2)
        }
      }
      else var %x = $input($did(txt,2) isn't a file!,ho,Error!)
    }
  }
  if ($devent == edit) {
    if (($did(txt,3).state == 1 || $did(txt,4).state == 1) && $right($did(txt,2),4) == .txt) {
      did -e txt 5
    }
    else did -b txt 5
  }
}
alias -l addtxt {
  var %as = $$input(What is the delimeter that seperates the hints $+ $chr(44) questions $+ $chr(44) and answers?,qe,Delimeter)
  if (%as isnum) {
    var %x = $qt($$1-)
    did -r trivia 23,30,31,32,41
    var %y = 1
    var %z = $hget(questions,1).item
    while $hget(questions,%y).item {
      if ($v1 > %z) var %z = $v1
      inc %y
    }
    var %a = 1
    while $read(%x,%a) {
      hadd -m questions $calc(%z + 1) $replace($v1,$chr(%as),$chr(1))
      inc %z
      inc %a
    }
    var %b = 1
    while $hget(questions,%b).item {
      did -a trivia 23 $gettok($hget(questions,$v1),1,1)
      inc %b
    }
    did -z trivia 23
    did -e trivia 26
    did -b trivia 27,38,37,39,42
  }
  else var %sumthin = $input(The delimeter must be a number!,ho,Error!)
} 

Comments

  (152)  RSS
GuardianDemon
Comments: 54
 
mIRC Snippet:  Trivia
Posted on Jul 19, 2007 10:11 pm
Very Very Nice Script 7/10
Umm Like I Made This One One Time Similar To Urs But I Made A !give <nick> <points> Becouse I Thought It Would Be An Original Or Not Done Very Much Thing Turns Out I Was Right I Like The Thought Points Needed For Op Idea Keep Up The Good Work And Add Me As A Friend Please.
mountaindew
Comments: 1,816
 
mIRC Snippet:  Trivia
Posted on Jul 20, 2007 8:58 am
Glad you like it!
F R E E Z E
Comments: 16
 
mIRC Snippet:  Trivia
Posted on Jul 21, 2007 3:16 am
Gj Mountaindew
mountaindew
Comments: 1,816
 
mIRC Snippet:  Trivia
Posted on Jul 23, 2007 7:24 pm
thanks
mountaindew
Comments: 1,816
 
mIRC Snippet:  Trivia
Posted on Aug 11, 2007 12:31 pm
i updated it
matmaniac
Comments: 2
 
mIRC Snippet:  Trivia
Posted on Aug 16, 2007 1:51 pm
Hello, new to this but I figured this would be the spot to ask about a certain type of trivia or poll script im looking for.

What I basically need to do is create a 'Fighter' poll...

'Who will win this fight, Mike Tyson or Evander Holyfield?'
!1 for Tyson !2 for Holyfield

Then I would like to collect votes from the time the poll starts until the time the fight begins.

Stop voting. Then submit the winner of the match when the fight is over. With the winners being shown who guessed correctly.

Is this to complicated? Or is there a scrip that already does this? Any help would be appreciated!
xDaeMoN
Comments: 697
 
mIRC Snippet:  Trivia
Posted on Aug 16, 2007 1:54 pm
@ matmaniac, poll scripts have been done before. Do a search on the forums or in the snippets section (the search function is above) OR use google. ;)

If you have a request, post your topic in the mIRC Snippet Requests Forum ( http://www.hawkee.com/phpBB2/viewforum.php?f=9 ).
mountaindew
Comments: 1,816
 
mIRC Snippet:  Trivia
Posted on Aug 16, 2007 4:01 pm
matmaniac, why are you asking this in comments on a snippet? like xdaemon said, go to the forum, that's what it's for. :P
matmaniac
Comments: 2
 
mIRC Snippet:  Trivia
Posted on Aug 16, 2007 5:26 pm
Sorry, I just haven't been able to find a poll script that can do what im looking for. I searched the forum and couldn't find one that does exactly what I listed above...
mountaindew
Comments: 1,816
 
mIRC Snippet:  Trivia
Posted on Aug 16, 2007 6:24 pm
then post in the forum
Akishoot
Comments: 139
 
mIRC Snippet:  Trivia
Posted on Aug 31, 2007 9:54 pm
Nice script mountaindew. I liked it ;) Much more simple than another one I found o.O
mountaindew
Comments: 1,816
 
mIRC Snippet:  Trivia
Posted on Aug 31, 2007 10:25 pm
i updated it
sirhc62
Comments: 1
 
mIRC Snippet:  Trivia
Posted on Aug 31, 2007 11:50 pm
being new at this after looking at so many trivia scripts this gets a 9/10

thanks for the extra work for the answer reply. very easy to use and understand.
mountaindew
Comments: 1,816
 
mIRC Snippet:  Trivia
Posted on Sep 1, 2007 12:17 am
Thank you very much, im glad you liked it!
mountaindew
Comments: 1,816
 
mIRC Snippet:  Trivia
Posted on Sep 5, 2007 8:53 pm
someone plz rate it :P
Joshuaxiong1
Comments: 126
 
mIRC Snippet:  Trivia
Posted on Oct 6, 2007 9:14 pm
I wish it can be voice and halfop but not just op.
mountaindew
Comments: 1,816
 
mIRC Snippet:  Trivia
Posted on Oct 6, 2007 11:01 pm
yea, i guess thats a good idea. im on my psp now, so ill update it tomorrow probably. i was thinkin today, this was my first big script, and the coding absolutely sux, and it needs a complete makeover, so ill like improve everything within the next few days.
Akishoot
Comments: 139
 
mIRC Snippet:  Trivia
Posted on Oct 6, 2007 11:06 pm
A spiffy 'lil dialog would be nice with this for adding and removing questions ;)
mountaindew
Comments: 1,816
 
mIRC Snippet:  Trivia
Posted on Oct 17, 2007 3:15 pm
i am finally gonna start recoding this, im like half way done, everythings gonna be in an .ini and its gonna be more feature and probably a dialog :)
mountaindew
Comments: 1,816
 
mIRC Snippet:  Trivia
Posted on Oct 19, 2007 5:47 pm
i recoded the whole thing, its in hash table form now

pretty soon ill have a dialog where u can add questions, remove questions, add wrong responses, possibly even time between hints, privlidge for !strivia, stop after N questions, change scores, view/add/clear reports, view/add/clear scores, set multiple owners

i have a lot of work ahead of me :)
Bull
Comments: 15
 
mIRC Snippet:  Trivia
Posted on Oct 19, 2007 10:53 pm
Think its good.. :]
mountaindew
Comments: 1,816
 
mIRC Snippet:  Trivia
Posted on Oct 26, 2007 4:46 pm
i asked hawkee to remove this, and hopefully itll be in the addon section soon :)

i finally finished the dialog :P
Abbas
Comments: 15
 
mIRC Snippet:  Trivia
Posted on Nov 1, 2007 1:32 pm
hello how to add question ?
mountaindew
Comments: 1,816
 
mIRC Snippet:  Trivia
Posted on Nov 1, 2007 2:49 pm
well i want hawkee to delete this and put the real thing in addons...
mountaindew
Comments: 1,816
 
mIRC Snippet:  Trivia
Posted on Nov 5, 2007 8:59 am
i just put the whole thing here, enjoy...
mountaindew
Comments: 1,816
 
mIRC Snippet:  Trivia
Posted on Nov 5, 2007 9:04 am
Abbas, now u can just type /trivia and go to questions, and either convert a txt file full of questions into the hash table, or click the add button to add ur own question, hints, and answer.
ermansanidhya
Comments: 42
 
mIRC Snippet:  Trivia
Posted on Nov 8, 2007 11:05 am
I give you TEN score, but could you explain more again about convert a txt file full of questions into the hash table ?. Im still confused did you mean scrambel.txt or any else. And what shoul i type in txt file (question, hints, and answer), please mountaindrew help me :))) jiakakakakakakakak
Anti
Comments: 317
 
mIRC Snippet:  Trivia
Posted on Nov 8, 2007 12:58 pm
mountian dew maybe you should put like a insturction thing for people who dont know how to like work the damn thing :P
Anti
Comments: 317
 
mIRC Snippet:  Trivia
Posted on Nov 8, 2007 12:58 pm
mountian dew maybe you should put like a insturction thing for people who dont know how to like work the damn thing :P
mountaindew
Comments: 1,816
 
mIRC Snippet:  Trivia
Posted on Nov 8, 2007 1:54 pm
erma, i made a feature, that if u already have a txt file full of questions, it converts it all into hash table so u dont have to add each one with the add button

so if u already have questions or want to add mass questions from online or sumthin, the file must be set up like

question|hint1|hint2|answer
OR
question.hint`.hint2.answer

it duznt matter what delimeter, but must be question, then hint one, then hint two, then answer. so u click convert, then type in the txt file. ex: questions.txt or something. then you type the delimeter's ascii code, (symbol that seperates question, hint, hint, and aswer) if u did the first, it would be 124. if u dont know the ascii code for the delimeter, type //echo -a $asc(|) or w/e the delimeter is

and if u wanna add just one question at a time, click add, and fill in the input boxes

i hope this helps :)
mountaindew
Comments: 1,816
 
mIRC Snippet:  Trivia
Posted on Nov 8, 2007 1:56 pm
and scramble.txt isnt in my code, thats just somethin someone made a while back, and it was based on the old trivia i had
BlackDemon^
Comments: 4
 
mIRC Snippet:  Trivia
Posted on Nov 23, 2007 1:39 pm
you should make it so u can jsut add a txt file of questions and it wil automaticly read form the file and do the hints itsefl instead of ppl having to add questions their own hints and own answers is way too much work for ppl who dont' know how to do it.... jsut a friendly help. try checking out the trivia snippet on here that has thatin there... its a good lookin snippet but thats the only problem...
mountaindew
Comments: 1,816
 
mIRC Snippet:  Trivia
Posted on Nov 24, 2007 9:04 am
yea i was thinkin about that, thanks for the suggestion, i think someday ill try doin that
Quote:

you should make it so u can jsut add a txt file of questions

they would need question and answer, cuz the hints come from the answers :P
BlackDemon^
Comments: 4
 
mIRC Snippet:  Trivia
Posted on Nov 24, 2007 9:42 pm
well if you think abotu it... i downloaded a txt file with question*answer format.... so if i wanted to use ur snippet liek i wanted to... id have to re-write 10,000 questions hint 1 hint 2 and answers jsut to use ur script.... and u can find those text files with questions and answers everywhere... thats y i said to take a look cuz it generates hints from the answers automaticly.. just yet another suggjestion....
IcE^__
Comments: 26
 
mIRC Snippet:  Trivia
Posted on Dec 4, 2007 2:57 pm
&#927;h Very Nice Your Script mountaindew :>

mountaindew
Comments: 1,816
 
mIRC Snippet:  Trivia
Posted on Dec 4, 2007 3:30 pm
ty
mountaindew
Comments: 1,816
 
mIRC Snippet:  Trivia
Posted on Dec 4, 2007 3:42 pm
BlackDemon^, i just spent five minutes and made a simple alias to make the format you needed, i didnt think it would be that simple :P

so i just have to integrate it into the dialog. when u click convert, its gonna ask u whether its in ques|hint|hint|answer or ques|ans form.

so it should be done soon, thanks for u suggestion
PatZ
Comments: 4
 
mIRC Snippet:  Trivia
Posted on Dec 4, 2007 3:45 pm
You need more work on the dialog, the design looks terrible and there is plenty off room left for more options. You should work on the bottons and the boxes, cuz there's a bit more space to the right then to the left and its nice to see a few more options.
i got to tell you im not a big fan of your coding style, using capitals when not needed is well.. just annoying....
mountaindew
Comments: 1,816
 
mIRC Snippet:  Trivia
Posted on Dec 4, 2007 4:40 pm
well sorry u dont like it, but what r u talking about with the capitals?
mountaindew
Comments: 1,816
 
mIRC Snippet:  Trivia
Posted on Dec 4, 2007 4:50 pm
blackdemon^, i actually screwed up, i forgot to make the first hint, but thatll be easy, but i have a lot of work to do so ill probably have it done within a few days
Flexi
Comments: 4
 
mIRC Snippet:  Trivia
Posted on Dec 10, 2007 12:17 am
Hi, nice trivia script..

But how do i view all the question in a TXT file?
mountaindew
Comments: 1,816
 
mIRC Snippet:  Trivia
Posted on Dec 10, 2007 2:12 pm
well this stores questions in hash table form :/

but i guess you could do like
Code:

alias viewtxt {
  var %x = 1
  while $hget(questions,%x)
    write view_in_txt.txt $v1
    inc %x
  }
  run view_in_txt.txt
  remove view_in_txt.txt
}

Syntax: /viewtxt
It will list all the questions like this:

QuestionHint1Hint2Answer
This is a questionthis is a hintanother hintthe answer

Hope that answers your question, and i'm glad you like it :)
BlackDemon^
Comments: 4
 
mIRC Snippet:  Trivia
Posted on Dec 24, 2007 5:54 pm
your welcome for the suggjestions.... let me know when u have it finished... so i can try it out... cuz i really jsut don't feel like making one for myself.. heheh
mountaindew
Comments: 1,816
 
mIRC Snippet:  Trivia
Posted on Dec 28, 2007 5:58 pm
BlackDemon^, I just made an alias, but i have not integrated it into the dialog yet, and it's at the bottom of the coding ^^

Syntax: /hash [file.txt]
Also, it'll ask for the delimeter

so if u do that, it'll add ur question|answer questions to the hash table as question|hint1|hint2|answer questions.

also, that doesnt replace non-letter characters with a _ ('.,~-!<>? etc...) just letters are replaced so that u can see punctuations

hope this helps you :)
C4RL1T0
Comments: 4
 
mIRC Snippet:  Trivia
Posted on Dec 29, 2007 9:59 am
I dont understand how you add the questions...

for example.
What is the highest skill level you are able to reach?| 9-|-9|99

then i go right click on the mirc channel and click trivia, move to the tab that says questions and click funtions i find the file but whats the next part i dont understand
C4RL1T0
Comments: 4
 
mIRC Snippet:  Trivia
Posted on Dec 29, 2007 10:04 am
"question|hint1|hint2|answer
OR
question.hint`.hint2.answer

it duznt matter what delimeter, but must be question, then hint one, then hint two, then answer. so u click convert, then type in the txt file. ex: questions.txt or something. then you type the delimeter's ascii code, (symbol that seperates question, hint, hint, and aswer) if u did the first, it would be 124. if u dont know the ascii code for the delimeter, type //echo -a $asc(|) or w/e the delimeter is

and if u wanna add just one question at a time, click add, and fill in the input boxes

i hope this helps :)"

NEVERMIND READ MORE IT WORKS :D
mountaindew
Comments: 1,816
 
mIRC Snippet:  Trivia
Posted on Dec 29, 2007 10:49 am
so do you get it now or are u still havin trouble?

if u wanted to add just that question, go to questions tab, add, and fill it out
C4RL1T0
Comments: 4
 
mIRC Snippet:  Trivia
Posted on Jan 5, 2008 9:53 am
it works for me now :D

i didn't know what code it was asking for to add the notepad, works like a charm <33333
Korvin
Comments: 422
 
mIRC Snippet:  Trivia
Posted on Jan 22, 2008 1:17 am
i think this is a nice script, though im going to stick with kitt's =p i was thinking about making a trivia script, but i guess ill do it later =D
mountaindew
Comments: 1,816
 
mIRC Snippet:  Trivia
Posted on Feb 6, 2008 7:22 pm
UPDATED

*forgot to add !top10 to !trivhelp in the script and in the introduction
*added on unload
Ivanalicius
Comments: 16
 
mIRC Snippet:  Trivia
Posted on Feb 7, 2008 1:20 pm
Nice trivia script mountaindew. I like it!
mountaindew
Comments: 1,816
 
mIRC Snippet:  Trivia
Posted on Feb 7, 2008 2:10 pm
Thanks
Kenny
Comments: 26
 
mIRC Snippet:  Trivia
Posted on Feb 8, 2008 12:45 am
nice script i love the remarks when u dont get the questions right XD
mountaindew
Comments: 1,816
 
mIRC Snippet:  Trivia
Posted on Feb 8, 2008 1:59 pm
Thanks Kenny. By the way, if you go to the trivia dialog (/trivia or through the menu), you can add more responses (on the first tab under "add missed question response")
mountaindew
Comments: 1,816
 
mIRC Snippet:  Trivia
Posted on Feb 11, 2008 4:14 pm
UPDATED


» Updated the on unload

» Renamed "Convert" to "Add *.txt" (i don't know why i named it convert in the first place )

» Added an "Add *.txt" dialog
»» Add txt files full of questions in either question|answer format or question|hint1|hint1|answer format
»» Click "..." and choose a txt file, then select the proper radio for the format the questions are in. Then input the delimeter that seperates everything when prompted to

Enjoy
mountaindew
Comments: 1,816
 
mIRC Snippet:  Trivia
Posted on Feb 20, 2008 4:42 pm
Edited the $sfile() so that it only displays *.txt files, just realized I was able to do that.
SnoooP
Comments: 488
 
mIRC Snippet:  Trivia
Posted on Feb 24, 2008 8:06 pm
wow it's really good. good job!
mountaindew
Comments: 1,816
 
mIRC Snippet:  Trivia
Posted on Feb 25, 2008 2:15 pm
Thanks, SnoooP
SnoooP
Comments: 488
 
mIRC Snippet:  Trivia
Posted on Mar 7, 2008 11:09 am
your welcome ;)
undertaker28
Comments: 27
 
mIRC Snippet:  Trivia
Posted on Mar 11, 2008 12:33 pm
any idea were i could get some questions to load into it tnx
mountaindew
Comments: 1,816
 
mIRC Snippet:  Trivia
Posted on Mar 11, 2008 1:51 pm
All I have is South Park questions if you want them.
tzar469
Comments: 26
 
mIRC Snippet:  Trivia
Posted on Mar 12, 2008 12:29 am
Will !rank 1 show the person in rank 1? If not, can you add it? I think it's a useful feature to have.
mountaindew
Comments: 1,816
 
mIRC Snippet:  Trivia
Posted on Mar 12, 2008 1:52 pm
Right now, all there is is !top10

But I'll be glad too add the !rank command
JonB_
Comments: 7
 
mIRC Snippet:  Trivia
Posted on Mar 12, 2008 9:48 pm
Does it aleady come with questions
mountaindew
Comments: 1,816
 
mIRC Snippet:  Trivia
Posted on Mar 16, 2008 3:09 pm
No, it doesn't.
mountaindew
Comments: 1,816
 
mIRC Snippet:  Trivia
Posted on Mar 31, 2008 8:43 pm
Updated: The !questions returned 0, fixed it.
mountaindew
Comments: 1,816
 
mIRC Snippet:  Trivia
Posted on May 1, 2008 3:29 pm
Updated:
• Added some regex
• Fixed a some bugs
• Simplified some of the coding
• Some people requested that it should message the answer if you get it wrong. If you want that, you'll see a commented line in "alias wrong {" that has the line to use.
rsb
Comments: 13
 
mIRC Snippet:  Trivia
Posted on May 8, 2008 7:34 pm
When you add a .txt file...
What's the format?
<question><hint1><hint2><answer>?
mountaindew
Comments: 1,816
 
mIRC Snippet:  Trivia
Posted on May 8, 2008 7:46 pm
Well if you click "Add *.txt", it'll ask you whether it's in Question|Hint1|Hint2|Answer format or Question|Answer format

Note: They don't need to be seperated by "|"

It asks your for the delimeter of the seperator, so if it was What's my name?*___________*M__________*MountainDew , the delimeter would be $asc(*) » I don't know it off the top of my head ;)
eric_Crow
Comments: 2
 
mIRC Snippet:  Trivia
Posted on May 8, 2008 11:34 pm
do i add.. alias -l new { an below to my alias?
eric_Crow
Comments: 2
 
mIRC Snippet:  Trivia
Posted on May 8, 2008 11:43 pm
well i did anyways and when i type /hash it says
* Invalid parameters: $did (line 69, aliases2.ini)
mountaindew
Comments: 1,816
 
mIRC Snippet:  Trivia
Posted on May 9, 2008 5:57 am
no no no

Everything goes in remotes, you don't even need to use the aliases yourself, the dialog does everything.
Doodle
Comments: 18
 
mIRC Snippet:  Trivia
Posted on Jun 26, 2008 5:29 am
hmm.. just to say incase i didnt notice it in the script but. add a command to see the commands.
mountaindew
Comments: 1,816
 
mIRC Snippet:  Trivia
Posted on Jun 26, 2008 10:08 am
Code:

    if ($regex($1,/^[!@.](?:triv(ia)?(?:help)|help)$/Si)) {
      .notice $nick ~*~Trivia Commands~*~
      .notice $nick !trivia ~ Starts trivia
      .notice $nick !strivia ~ Stops trivia $iif($hget(trivia,strivia) != ison,if you are) $iif($hget(trivia,strivia) == isop,op'd) $iif($hget(trivia,strivia) == isvoice,voiced)
      .notice $nick !score ~ Returns your rank and score
      .notice $nick !score <nick> ~ Returns <nick>'s rank and score
      .notice $nick !report <ques #> <problem> ~ report a question
      .notice $nick !trivhelp ~ Returns trivia help (this)
      .notice $nick !questions ~ Returns tumber of trivia questions
      .notice $nick !top10 ~ Returns top 10 scores
      if ($nick == $hget(trivia,owner)) .notice $nick !give <nick> <points> ~ Give someone points
    }

There's !help !trivhelp !triviahelp
mountaindew
Comments: 1,816
 
mIRC Snippet:  Trivia
Posted on Jul 9, 2008 11:48 am
Updated: When you would add a .txt with question|answer, it was just replacing letters with _ and not numbers also
shay16910
Comments: 1
 
mIRC Snippet:  Trivia
Posted on Jul 13, 2008 3:45 pm
ok
im a newbie and its driving me mad
for a week now ive been searching for a trivia bot and dunno had 2 read up on eggs and shells and everything

now here's d questions
1. whats a delimeter? what do i write in it wen it prompts me after ive uploaded a text file with all questions

2. d bot doesnt start...none of dem do...and i dno weher im i going wrong

when i type !trivia nothing happens evn tho ive followed ur directions n stuff
its only when i type /trivia that dialog opens but nothing else happens

plz temme..i wanna hav a trivia bot for my room!!!
mountaindew
Comments: 1,816
 
mIRC Snippet:  Trivia
Posted on Jul 15, 2008 10:20 am
For the delimeter, it's the asc number of the character seperating the questions from the answers and possibly from the hints.

So with: What is my name?|___________|M__________|MountainDew

The character that seperates it is "|", so you would do "//echo -a $asc(|)" and it will return 124. So in this case, you would type 124 in the input box when it asks you.

And about it not starting, make sure you set a channel for the trivia, you can do it on the first page of the dialog. Also make sure it's in its own remotes file (file > new).
jamming808
Comments: 2
 
mIRC Snippet:  Trivia
Posted on Jul 25, 2008 2:31 am
Mountaindew i did what you said which was

*Open mIRC
*Go to remotes, alt+r, and paste the script
*Enter the owner and channel when it asks you
*Dialog will pop up on load
*Go to questions tab and add questions
*To open the dialog in the future, right click anywhere � Trivia OR type /trivia

but there was nothing asking me for the owner or channel no dialog or anything and when i just tried to enter !trivia it didnt work.. so what did i do wrong?
Typo
Comments: 224
 
mIRC Snippet:  Trivia
Posted on Jul 25, 2008 3:32 am
Make sure you are pasting into a new remote file. In other words, when you hold down alt and press R to bring up the script editor already opened to the remotes tab, if there is anything already written you should start a new remote file for the trivia script.
To do that, double check that you are indeed on the remotes tab, now click File then New. It will start a new .mrc usually called script1.mrc or similiar. Now you can paste the script in and hit ok to save and close the script editor. When you hit OK to save the file and close the editor it should ask you the questions about the owner name and channel. If it doesnt you did something wrong again and that usually means either you didnt start a new file or you werent in the remotes tab in the scripts editor.

If you take your time following the instructions you should be ok.

Good luck.
SynTheSinner
Comments: 2
 
mIRC Snippet:  Trivia
Posted on Aug 9, 2008 3:09 pm
I can't see the trivia on my window. I would also like to play along with my friends. How could I do that and still host a game? Thank you! By the way, my friends all say it's real clean and fun to use! I think the setup is easy and clean! ^-^ Great job.
mountaindew
Comments: 1,816
 
mIRC Snippet:  Trivia
Posted on Aug 9, 2008 4:37 pm
Uh you would need to have 2 different mIRC's open in order for yourself to play.
SynTheSinner
Comments: 2
 
mIRC Snippet:  Trivia
Posted on Aug 9, 2008 10:40 pm
Thank you! Sorry, I thought of that and then felt stupid for asking you. O:
It's just been a long day.
deathreaper
Comments: 2
 
mIRC Snippet:  Trivia
Posted on Aug 18, 2008 8:52 pm
thx great script
deathreaper
Comments: 2
 
mIRC Snippet:  Trivia
Posted on Aug 28, 2008 5:43 am
when i write !strivia it dsnt stop the trivia
Apoc
Comments: 1
 
mIRC Snippet:  Trivia
Posted on Aug 28, 2008 10:04 am
Hey could someone provide me with a .txt file fot this so I don't have to make my own?
mountaindew
Comments: 1,816
 
mIRC Snippet:  Trivia
Posted on Aug 28, 2008 10:12 am
deathreaper, make sure the person typing !strivia isn't on the same IRC as the bot. Also make sure that you set the correct channel and that !strivia is set to everyone.
undertaker28
Comments: 27
 
mIRC Snippet:  Trivia
Posted on Sep 8, 2008 8:16 am
i love the script looks very usful...however im strugling to find any questions for it..plz point me in the right direction

ty
Xpl0reR
Comments: 227
 
mIRC Snippet:  Trivia
Posted on Sep 8, 2008 2:10 pm
Great one Pepsi ;)

i just changed the .msg to msg cauz i like to "play" with the users on the channel ;)
a careful warchild
Comments: 240
 
mIRC Snippet:  Trivia
Posted on Sep 8, 2008 5:05 pm
again mw you amaze me with your scripting :) very well done.
mountaindew
Comments: 1,816
 
mIRC Snippet:  Trivia
Posted on Sep 8, 2008 6:05 pm
:)

undertaker, I donno where you can find questions
irchainscriptz
Comments: 126
 
mIRC Snippet:  Trivia
Posted on Sep 10, 2008 9:57 pm
dam mountaindew that more like an addon LOl as i will make it an addon and add it to a zip file for ppl that like to download trivia games. And Undertaker theres many script site that have those questions.....!! http://www.public.rumbaar.net/ they have a huge amount of questions hope this will help you
Kenpari
Comments: 6
 
mIRC Snippet:  Trivia
Posted on Sep 20, 2008 10:31 am
There's a little problem here...

!strivia won't work.

I get this:

* /if: '' unknown operator (line 113, remote.ini)
mountaindew
Comments: 1,816
 
mIRC Snippet:  Trivia
Posted on Sep 20, 2008 10:37 am
Hmm it should've added "ison" to the hash table on load.

Just go to the dialog again and select a radio for !strivia.
Kenpari
Comments: 6
 
mIRC Snippet:  Trivia
Posted on Sep 20, 2008 10:59 am
Works now, thanks.
Kenpari
Comments: 6
 
mIRC Snippet:  Trivia
Posted on Sep 21, 2008 4:35 pm
Right, now I'm having trouble with adding .txt files.

I'm setting it up like question|hint1|hint2|answer, like it says, but everything is just going straight in the question part. I've checked the radio box corresponding to the format I put the .txt file in.
mountaindew
Comments: 1,816
 
mIRC Snippet:  Trivia
Posted on Sep 22, 2008 2:34 pm
Umm what do you mean it goes straight in the questions part?

1) /trivia
2) Questions tab
3) Add *.txt
4) Find the file, hit the Question|hint1|hint2|answer radio
5) Type the delimeter --> $asc(character seperating the questions/hints/answer)
6) It should add the questions to the listbox and you should be all set
Kenpari
Comments: 6
 
mIRC Snippet:  Trivia
Posted on Sep 22, 2008 4:51 pm
Er... I don't get what you type for the delimiter.
mountaindew
Comments: 1,816
 
mIRC Snippet:  Trivia
Posted on Sep 22, 2008 5:20 pm
Well it's the ascii number of the character seperating the things.

What is my name?|___________|M__________|MountainDew --> $asc(|) = 124
What's your name?._______.K______.Kenpari --> $asc(.) = 46

So for example, just type in a window, //echo -a $asc(.), and it'll give you the number.
Kenpari
Comments: 6
 
mIRC Snippet:  Trivia
Posted on Sep 22, 2008 7:50 pm
Got it.
Atm0sFeaR
Comments: 8
 
mIRC Snippet:  Trivia
Posted on Oct 10, 2008 5:38 am
I set the channels in trivia and gone all ? but why? :S
mountaindew
Comments: 1,816
 
mIRC Snippet:  Trivia
Posted on Oct 10, 2008 8:42 am
Quote:

I set the channels in trivia and gone all ? but why? :S

I don't get what you're saying.
Atm0sFeaR
Comments: 8
 
mIRC Snippet:  Trivia
Posted on Oct 15, 2008 5:54 pm
I set my channel in Trivia ,but does not work! I looked settings but the my channel lost !
mountaindew
Comments: 1,816
 
mIRC Snippet:  Trivia
Posted on Oct 15, 2008 6:04 pm
The bot asking the question has to be on its own mIRC btw. So the ppl answering the questions have to be on a seperate IRC client.
Gogeta_SSJ4
Comments: 2
 
mIRC Snippet:  Trivia
Posted on Dec 22, 2008 5:34 am
I loaded my questions and used the code but after I click OK the questions do not appear... what could I have done wrong?
Purcell
Comments: 37
 
mIRC Snippet:  Trivia
Posted on Dec 24, 2008 7:27 pm
What's the delimeter of this ?


Is het aan de evenaar kouder of warmer? 4( 6 letters ) |w--m--|Warm--|warmer
mountaindew
Comments: 1,816
 
mIRC Snippet:  Trivia
Posted on Dec 24, 2008 9:03 pm
Gogetta, how are the questions set up?

Purcell, $asc(|) = 124
Purcell
Comments: 37
 
mIRC Snippet:  Trivia
Posted on Dec 25, 2008 4:54 am
mountaindew,

Van wie is deze quote Friendship is like money, easier made than kept¶Samuel Butler

what's the Delimeter of this ?
mountaindew
Comments: 1,816
 
mIRC Snippet:  Trivia
Posted on Dec 26, 2008 3:26 pm
I donno, do //echo -a $asc(¶)
Purcell
Comments: 37
 
mIRC Snippet:  Trivia
Posted on Dec 26, 2008 5:02 pm
Thanks
Gogeta_SSJ4
Comments: 2
 
mIRC Snippet:  Trivia
Posted on Dec 30, 2008 8:34 am
here is 1 question

What nation has had a monarchy the longest?|J----|J---n|Japan

I know the I put the delimeter correctly as 124 but nothing happens :S

Grady
Comments: 3
 
mIRC Snippet:  Trivia
Posted on Jan 7, 2009 9:06 am
Is there a way to increase the amount of questions that can be held in Trivia? Right now it appears to only be 39 questions.
mountaindew
Comments: 1,816
 
mIRC Snippet:  Trivia
Posted on Jan 7, 2009 9:24 am
There's no limit on the number of questions :/
Grady
Comments: 3
 
mIRC Snippet:  Trivia
Posted on Jan 7, 2009 9:52 am
In the dialog box where the questions are added, it only allows 39 and it reflects as such in the IRC client by only allowing 39 questions to be asked and it's the same 39. I thought at first it would cycle a different 39 each time, but it's the same over and over. For example, in the client, it says "Question 25/39".
Grady
Comments: 3
 
mIRC Snippet:  Trivia
Posted on Jan 7, 2009 2:05 pm
I just tried loading 4000 questions into the bot and it froze up lol. So, I think that may be the limit.
Purcell
Comments: 37
 
mIRC Snippet:  Trivia
Posted on Jan 7, 2009 3:26 pm
the same by me..
duckz
Comments: 18
 
mIRC Snippet:  Trivia
Posted on Jan 15, 2009 10:23 pm
Great trivia bot! I would like to back up the questions - where are the added questions stored?

I spent hours loading in questions hints answers one at a time - shut program down came back in and they were all gone. :(
duckz
Comments: 18
 
mIRC Snippet:  Trivia
Posted on Jan 16, 2009 10:18 am
Now I took some time to put info in a txt file and try to import it and it says delimeter must be a number - WTF?

Changed vote from like to unlike!
irchainscriptz
Comments: 126
 
mIRC Snippet:  Trivia
Posted on Jan 16, 2009 11:25 am
Quote:
i made a feature, that if u already have a txt file full of questions, it converts it all into hash table so u dont have to add each one with the add button

so if u already have questions or want to add mass questions from online or sumthin, the file must be set up like

question|hint1|hint2|answer
OR
question.hint`.hint2.answer

it duznt matter what delimeter, but must be question, then hint one, then hint two, then answer. so u click convert, then type in the txt file. ex: questions.txt or something. then you type the delimeter's ascii code, (symbol that seperates question, hint, hint, and aswer) if u did the first, it would be 124. if u dont know the ascii code for the delimeter, type //echo -a $asc(|) or w/e the delimeter is

and if u wanna add just one question at a time, click add, and fill in the input boxes

i hope this helps :)
duckz
Comments: 18
 
mIRC Snippet:  Trivia
Posted on Jan 16, 2009 11:47 am
Thanks irchainscriptz - that helped me - was just inserting the deliminator not the number equivalent - THANKS!

Going to insert all questions answers etc again if they hold I will change vote back to like. :)
Calyp5o
Comments: 10
 
mIRC Snippet:  Trivia
Posted on Jan 16, 2009 11:51 am
I like it. :]
Bluepower10
Comments: 93
 
mIRC Snippet:  Trivia
Posted on Jan 16, 2009 7:35 pm
This script owns!!!! Users hate it when it crashes from flooding, lol. Very well done.
irchainscriptz
Comments: 126
 
mIRC Snippet:  Trivia
Posted on Jan 16, 2009 9:13 pm
you very welcome :)
Felix2003
Comments: 6
 
mIRC Snippet:  Trivia
Posted on Jan 16, 2009 11:42 pm
love it but i only have 1 problem i have a text file with over 3000 quetions when i try and load it
it crashes making me add them in small doses which is really annoying also the questions are in question*answer format once added the first hint is lines then the next is the first letter is there anyway to not make it crash by adding all in one and to make it so it selects random letters for both hints?
Bluepower10
Comments: 93
 
mIRC Snippet:  Trivia
Posted on Jan 17, 2009 5:36 pm
When I edit a question, hint, hint 2, or answer, it changes everything to the thing I just edited. But besides that, I haven't noticed anything else.
duckz
Comments: 18
 
mIRC Snippet:  Trivia
Posted on Jan 17, 2009 8:06 pm
I noticed if a user inputs the correct answer after it says "sorry no one got that one - get ready for next question" that it will still count it as right. Anyway to fix that?
Bluepower10
Comments: 93
 
mIRC Snippet:  Trivia
Posted on Jan 17, 2009 9:49 pm
@duckz: Maybe the time ran out as the user typed their answer. Does it happen all the time or just that once?
irchainscriptz
Comments: 126
 
mIRC Snippet:  Trivia
Posted on Jan 18, 2009 12:03 am
so what ur saying is if the person gets it right it states no one got it and continues to next question? has this happen once or is it constant?
duckz
Comments: 18
 
mIRC Snippet:  Trivia
Posted on Jan 19, 2009 10:40 pm
Example:

After second hint the question ends >

No one got that one. Get ready for the next question.

Then someone types correct answer and it counts it as right even though correct answer came in after the above line.

If you look at the coding it has a timer like > .timertrivnewfromwrong 1 2 new

That made the next question come out almost immediately - I wanted to give users actually time to "get ready" so I increased that 2 to 15. The script should not allow late answers, but users can type in correct answer 5 seconds after previous question ended and still get it right.

=============

Also would like to set this so that only OPS can start trivia. Its built in option as to who can stop it, but not start - can that be done?
mountaindew
Comments: 1,816
 
mIRC Snippet:  Trivia
Posted on Jan 21, 2009 3:25 pm
Alright I'll check out the questions issues and I'll see if I can make the dialog for entering questions from a file a little simpler when I get a chance.
duckz
Comments: 18
 
mIRC Snippet:  Trivia
Posted on Jan 23, 2009 12:40 pm
Great! Could you also give an option to only let mods start trivia?

Thanks!
duckz
Comments: 18
 
mIRC Snippet:  Trivia
Posted on Jan 24, 2009 8:36 pm
Another suggestion > could you make it so that its not case sensitive? So if the answer was "Trivia Magic" and someone typed "trivia magic" that it would still be correct?
Bluepower10
Comments: 93
 
mIRC Snippet:  Trivia
Posted on Jan 25, 2009 11:39 am
@duckz: I think it is already set that way. Because some users type like that and it still says it is correct.
duckz
Comments: 18
 
mIRC Snippet:  Trivia
Posted on Jan 27, 2009 9:46 pm
Ive noticed it can be very picky. Also noticed it repeats the same questions way too frequently - be nice if it had a better randomizer.
pope
Comments: 14
 
mIRC Snippet:  Trivia
Posted on Jan 29, 2009 10:14 am
do you have premade questions? that would be nice :)
Dj_801
Comments: 65
 
mIRC Snippet:  Trivia
Posted on Feb 4, 2009 10:28 pm
does anyone have trivia.txt files for this script and can upload them to a site and give me a link i am to lazy to make more then one
lonewolfe2015
Comments: 10
 
mIRC Snippet:  Trivia
Posted on Feb 16, 2009 9:21 pm
Any chance we could get it to do more hints? only 2 hints is pretty short
sc0tsman
Comments: 4
 
mIRC Snippet:  Trivia
Posted on Feb 17, 2009 4:12 am
mountaindew this is a seriously tremendous script however [yeh I know always a however] I cannot get questions to show properly *example below* I have tried //echo -a $asc(|) and it returns "48" but questions come out like "11~04*11~03Question04 2106/043911~04*11~" this :(

Any ideas as this WILL be a massive hit.


A bird in the hand is worth ______*two in the bush
A catholic minister is known as a*priest


Many thanks for all you time with this tremendous snippet
sc0tsman
Comments: 4
 
mIRC Snippet:  Trivia
Posted on Feb 17, 2009 4:26 am
EDIT. and if at all possible a *strip colour codes" addon ;0
mountaindew
Comments: 1,816
 
mIRC Snippet:  Trivia
Posted on Feb 17, 2009 9:14 am
It already strips color codes:
Code:

if ($strip($1-) == $hget(trivia,answer)) {

But for the questions, it'd be whatever $asc(*) is.
rainism
Comments: 3
 
mIRC Snippet:  Trivia
Posted on Feb 17, 2009 9:17 am
how can i run question random??? ie. questtion1 then question100 something like this. thz
rainism
Comments: 3
 
mIRC Snippet:  Trivia
Posted on Feb 17, 2009 11:29 am
and one more question.
ie. what is my name ?
hint: ******m
hint: r*****m

but it dosent tell the asnwer :(
can u help me ??? and can i add one more hint ??
rainism
Comments: 3
 
mIRC Snippet:  Trivia
Posted on Feb 17, 2009 12:38 pm
i got many problem :(
when i off mIRC...all my questions that i made for trivia have gone too....can u tell me how to save all question that i make ???
sc0tsman
Comments: 4
 
mIRC Snippet:  Trivia
Posted on Feb 17, 2009 6:05 pm
quote* mountaindew: But for the questions, it'd be whatever $asc(*) is.

I have tried $asc(*) and the results are as follows "11~04*11~03Question04 2106/043911~04*11~"
sc0tsman
Comments: 4
 
mIRC Snippet:  Trivia
Posted on Feb 17, 2009 6:27 pm
Damn this looks like a damn fine script to however my lack of knowledge renders it outwith me :(

I have tried every option but questions all come out scrambled no matter how many different txt files I try
lonewolfe2015
Comments: 10
 
mIRC Snippet:  Trivia
Posted on Feb 21, 2009 10:45 am
It works fine for me, but I can't use it if it doesn't have more hints involved.

Its got an interactive pop-up I've seen a few people not realize... maybe thats your problem guys?
dashdingo
Comments: 2
 
mIRC Snippet:  Trivia
Posted on Feb 27, 2009 4:37 pm
mountaindew :
Thanks for the awesome trivia script.

I am working with sc0tsman to get this working for a site that uses a crippled flash irc client that does not print color output proper. I have gone through and removed the control codes for color and made a couple of edits to fix some of the concatenations of color+variables. I also had to change all the .notice to .msg $chan or .msg $nick as they are not supported either.

One thing I am running into is if questions are in q|h1|h2|a format I can load 7500 questions in no problem, however if I use a q|a format, the hint generator for the hash loader locks up mirc trying to process all the questions.

Is there a way to fix this?

In the mean time I have split the questions into files if 500 questions each, but the process time when adding each new file becomes longer and longer until it finally locks up mirc after loading 4-5 files.

Thanks for the script, we greatly appreciate the help.
-dashdingo
dashdingo
Comments: 2
 
mIRC Snippet:  Trivia
Posted on Feb 27, 2009 4:44 pm
rainism :

If you look at around line 237, you will see the following:

else {
.msg $hget(trivia,chan) $+ $read(missed.txt) Get ready for the next question...
;if you want it to msg the answer, use the line below instead
;.msg $hget(trivia,chan) The answer was $hget(trivia,answer) $+ ! Get ready for the next question...
unset %streak*
.timertrivnewfromwrong 1 2 new
}

comment the first .msg with a ;

and remove the ; from the second .msg line and you will get the answers.

-dashdingo
Hellogoodbye
Comments: 3
 
mIRC Snippet:  Trivia
Posted on Mar 29, 2009 6:58 am
ok, we've chosen to use the Question|answer format, and the answer comes out like instatnly

any help?
Jubbyjubbster
Comments: 14
 
mIRC Snippet:  Trivia
Posted on Apr 4, 2009 9:51 am
it great! it would be good if you could set multiple channels
greenlanter420
Comments: 77
 
mIRC Snippet:  Trivia
Posted on Apr 6, 2009 12:40 pm
has anyone tried loading the kaos question list into this to me it just freezes mirc totally
Aerialman
Comments: 11
 
mIRC Snippet:  Trivia
Posted on Feb 22, 2010 5:21 pm
@Jubbyjubbster

I'm pretty sure that when you set the channel, you can enter it with commas (i.e. #game, #master, #ice) and so on. I haven't tried it yet, but good question.

And for mountaindew, great job! Would be nice to have some sample questions, but that's not vital.
Snip3KitTy
Comments: 15
 
mIRC Snippet:  Trivia
Posted on Mar 1, 2010 6:55 pm
wouldnt ask me for owner and room

Commenting Options

Register or Login to Hawkee.com or use your Facebook or Twitter account by clicking the corresponding button below.

  

Bottom