Top

Trivia


mIRC Code
+ 4 likes
Please Register to submit score.
Average Score  9.0
Scores Submitted  13
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 
  Bookmark and Share

Introduction

~*~*~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

Comments

  (101)  RSS
GuardianDemon
Comments: 52
 
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,645
 
mIRC Snippet:  Trivia
Posted on Jul 20, 2007 8:58 am
Glad you like it!
F R E E Z E
Comments: 15
 
mIRC Snippet:  Trivia
Posted on Jul 21, 2007 3:16 am
Gj Mountaindew
mountaindew
Comments: 1,645
 
mIRC Snippet:  Trivia
Posted on Jul 23, 2007 7:24 pm
thanks
mountaindew
Comments: 1,645
 
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: 696
 
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,645
 
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,645
 
mIRC Snippet:  Trivia
Posted on Aug 16, 2007 6:24 pm
then post in the forum
Akishoot
Comments: 159
 
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,645
 
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,645
 
mIRC Snippet:  Trivia
Posted on Sep 1, 2007 12:17 am
Thank you very much, im glad you liked it!
mountaindew
Comments: 1,645
 
mIRC Snippet:  Trivia
Posted on Sep 5, 2007 8:53 pm
someone plz rate it :P
Joshuaxiong1
Comments: 91
 
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,645
 
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: 159
 
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,645
 
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,645
 
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,645
 
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,645
 
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,645
 
mIRC Snippet:  Trivia
Posted on Nov 5, 2007 8:59 am
i just put the whole thing here, enjoy...
mountaindew
Comments: 1,645
 
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: 43
 
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: 305
 
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: 305
 
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,645
 
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,645
 
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,645
 
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: 25
 
mIRC Snippet:  Trivia
Posted on Dec 4, 2007 2:57 pm
&#927;h Very Nice Your Script mountaindew :>

mountaindew
Comments: 1,645
 
mIRC Snippet:  Trivia
Posted on Dec 4, 2007 3:30 pm
ty
mountaindew
Comments: 1,645
 
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: 5
 
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,645
 
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,645
 
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,645
 
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,645
 
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,645
 
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: 238
 
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,645
 
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: 17
 
mIRC Snippet:  Trivia
Posted on Feb 7, 2008 1:20 pm
Nice trivia script mountaindew. I like it!
mountaindew
Comments: 1,645
 
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,645
 
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,645
 
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,645
 
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: 320
 
mIRC Snippet:  Trivia
Posted on Feb 24, 2008 8:06 pm
wow it's really good. good job!
mountaindew
Comments: 1,645
 
mIRC Snippet:  Trivia
Posted on Feb 25, 2008 2:15 pm
Thanks, SnoooP
SnoooP
Comments: 320
 
mIRC Snippet:  Trivia
Posted on Mar 7, 2008 11:09 am
your welcome ;)
undertaker28
Comments: 10