mIRC Home    About    Download    Register    News    Help

Print Thread
#188198 19/10/07 03:03 AM
Joined: Oct 2007
Posts: 1
F
Mostly harmless
OP Offline
Mostly harmless
F
Joined: Oct 2007
Posts: 1
Hello everyone!

this is my 1st post here, i need some help, i m looking for a script answering the trivia whenever the game started. is it possible? thank you all

newbiewannalearn

Joined: Apr 2007
Posts: 228
M
Fjord artisan
Offline
Fjord artisan
M
Joined: Apr 2007
Posts: 228
A copy of your trivia script would help us a lot.

Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Cheating scripts are pretty lame.


Invision Support
#Invision on irc.irchighway.net
Joined: Feb 2003
Posts: 3,432
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
Cheat on trivia would get you banned, atlest i ban cheaters on my channel.. or i remove there voice.. "channel is +m", why play a game if you need to cheat? then it's not you playing, it's a program or script, realy useless..


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
Joined: Oct 2005
Posts: 1,741
G
Hoopy frood
Offline
Hoopy frood
G
Joined: Oct 2005
Posts: 1,741
I would be more to the point to hack into the trivia bot and raise your own score.

Why not just get smarter and answer the questions yourself?

-genius_at_work

Joined: Apr 2006
Posts: 464
O
Fjord artisan
Offline
Fjord artisan
O
Joined: Apr 2006
Posts: 464
The idea itself is worth an answer though in my opinion.

You would need to:
1. Read the question
2. Check for a known answer, and if not present, collect the answer and store/link it to the question.

I guess writing the questions to a text file, and linking them with the line number could work.

Joined: Jan 2004
Posts: 1,359
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Jan 2004
Posts: 1,359
Here's one I made a while ago. It's designed to work with Tat's Trivia Bot but with tweaking should work with others.

It searches the answer file for the question and then echos the answer. When a question is asked and the answer is not known then the question and answer are stored in a seperate file of captured questions.

Code:
on *:TEXT:*:#: { 
  var %Str $strip($1) 
  if ($left(%Str,1) isnum) && ($right(%Str,1) == .) { 
    var %Question = $remove($strip($2-) , ?) 
    var %ReadDat = $remove($read(C:\Program Files\mIRC\Remotes\Trivia\questions.txt, w, %Question $+ *), %Question, *, ?)
    $iif(%ReadDat != $null, echo $chan Answer: %ReadDat, echo $chan Answer not found)
  }
}

on *:TEXT:*:#: { 
  var %Str $strip($1) 
  if ($left(%Str,1) isnum) && ($right(%Str,1) == .) { 
    var %Question = $remove($strip($2-) , ?)
    var %Answer = $remove($read(C:\Program Files\mIRC\Remotes\Trivia\questions.txt, w, %Question $+ *), %Question, *, ?)
    if (%Answer == $null) { var %Answer = $remove($read(C:\Program Files\mIRC\Remotes\Trivia\captured.txt, w, %Question $+ *), %Question, *, ?) }
    if (%Answer != $null) { echo $chan Answer: %Answer }
    else { set %Question %Question | set %TriviaBot $nick }
  }
  elseif ($nick == %TriviaBot) && (%Str == Winner:) {
    var %Captured = $+(%Question,*,$left($right($gettok($1-,3,58),-1),-4))
    write "C:\Program Files\mIRC\Remotes\Trivia\captured.txt" $$iif(%Captured != *,%Captured)
    unset %Question %TriviaBot
  }
}


Link Copied to Clipboard