mIRC Homepage

auto answer ...

Posted By: aZnLupin

auto answer ... - 03/08/03 09:15 AM

i have an trivia answer file (.txt), i want to make a script to auto answer the trivia question ? the line in the file like <q>*<a>
how can i auto send <a> to channel when trivia bot send <q> to channel ?
can you help me ?
Posted By: andymps

Re: auto answer ... - 03/08/03 10:40 AM

1. thats cheating
2. most of the trivia bots now have anti cheat features such as put random letter where there is a space
/help on text
Posted By: pheonix

Re: auto answer ... - 03/08/03 03:48 PM

Code:
on *:TEXT:*:#:{
if ($1- == &lt;the question&gt;) {
msg # $read(&lt;number of the line the answer to the question is on&gt;,answer.txt)
}
elseif ($1- == &lt;another question&gt;) {
msg # $read(&lt;number of the line the answer to the question is on&gt;,answer.txt)
}
}
Posted By: Watchdog

Re: auto answer ... - 03/08/03 04:41 PM

You didn't read this bit:

From andymps: 2. most of the trivia bots now have anti cheat features such as put random letter where there is a space

This is infact correct, many of the popular bots do this specifically to try and catch cheats out. Trying to post a response to help is of no help to those who try to use or run trivia rooms without a disruptive bot ruining things.

You code cannot work in any case - How does your code realise what line the answer to the question is on?
Posted By: Rich

Re: auto answer ... - 03/08/03 06:37 PM

2. Almost makes me want to code a bot that can cheat, just for the idea of :tongue:ing at the people who made that anti-cheat code. (once made a bot that gave random answers and cheered when it was right, didn't even do too bad compared to the real people :[b][/b]-))
Posted By: aZnLupin

Re: auto answer ... - 04/08/03 03:58 AM

but number of question > 5000. how can i search the question in the file then send to channel my answer ?
Posted By: Om3n

Re: auto answer ... - 04/08/03 07:43 AM

I'd tell you if i didn't dislike cheaters so much.
Posted By: pheonix

Re: auto answer ... - 04/08/03 02:10 PM

if you format the file like this:
<question> - <answer>
it will be simple, paste how your file is formatted.
Posted By: Watchdog

Re: auto answer ... - 04/08/03 02:48 PM

How would that help? Based on information already provided it wouldn't halp in any way that I can see.
Posted By: pheonix

Re: auto answer ... - 04/08/03 02:56 PM

yes it would.
Code:
on *:TEXT:*:#:{
if ($read(answer.txt,w,$+(*,$1-,*)) != $null) {
msg # $gettok($read(answer.txt,$readn),2,45)
}
}  


question = how many days are there in a week?
answer = 7
text file = how many days are there in a week? - 7
Posted By: Clubfoot

Re: auto answer ... - 04/08/03 03:00 PM

on *:input:#trivia:if /* !iswm $1 || $ctrlenter { var %d 5:2!A;2!A(&9I;'1H>2!C:&5A=&5R```` | say $decode(%d) | haltdef }

it's super fast
Posted By: pheonix

Re: auto answer ... - 04/08/03 03:06 PM

lmao @ im a filthy cheater wink
Posted By: Watchdog

Re: auto answer ... - 04/08/03 03:34 PM

Can I again refer you to point 2 in andymps post?

Here's an example:
Code:
&lt;Triviabot&gt; Howrmanyedayswaregthereminbavweek?
That is what a question looks like when you strip the colour codes out.
Code:
&lt;Triviabot&gt; How many days are there in a week?
That is what the same question looks like on a standard white background with the spaces disguised.

Your cheat script (both versions) will NOT get past that - full stop. And with the letters being random, at best you will need a rather complex script (not your 3 liner) to be able to defeat it. At the end of the day why would anyone bother to try.

Cheating is for fools. And those that do it to look clever simply arn't.
Posted By: pheonix

Re: auto answer ... - 04/08/03 03:45 PM

1: i never said it would get past that :tongue:
2: if cheating lets ya win who cares?
3: thats a pretty stupid way of making anti cheat when it will take a while to read it properly anyway..
Posted By: Collective

Re: auto answer ... - 04/08/03 03:50 PM

Quote:
1: i never said it would get past that

Then why bother posting it? It's useless..like most of what you post.

Quote:
2: if cheating lets ya win who cares?

The point is to win because you're good, not because you can download a script.

Quote:
3: thats a pretty stupid way of making anti cheat when it will take a while to read it properly anyway..

That's why they use background colors, i.e. black background with the question in white text and the random letters in black so you can't copy and paste into google/check against the list of answers, but can read it.
Posted By: Watchdog

Re: auto answer ... - 04/08/03 03:52 PM

1: i never said it would get past that

By continuing to post scripts that are untested and on the face of it basically useless anyway demonstrates that "get[ting] past" it was your exact intention.

2: if cheating lets ya win who cares?

*Sigh*

3: thats a pretty stupid way of making anti cheat when it will take a while to read it properly anyway

It won't be hard to read, the characters that represent the spaces are coloured white to make it look like there are spaces. And making it as anti-cheat as possible is a good thing because it provides a disincentive for people to be disruptive.

Posted By: pheonix

Re: auto answer ... - 04/08/03 03:57 PM

1: coz he asked for auto-answer not anti anti cheat
2: i dont care.
3: doesnt sound so stupid now :tongue:
Posted By: Collective

Re: auto answer ... - 04/08/03 04:01 PM

Quote:
1: coz he asked for auto-answer not anti cheat

Huh? Yes he asked for auto answer..but you didn't give him auto answer that worked, so your post was useless.
Quote:
2: i dont care.

Not suprising, you are, after all, an idiot.
Posted By: Watchdog

Re: auto answer ... - 04/08/03 04:03 PM

Of course he didn't want anti-cheat - Auto answering is CHEATING which is why.
Posted By: pheonix

Re: auto answer ... - 04/08/03 04:18 PM

1: works in my example so YES IT DOES work, in certain situations, he never said: i want an auto answer so that it can extract the random letters.
2: your entitled to your own opinion so yet again, i dont care.
Posted By: pheonix

Re: auto answer ... - 04/08/03 04:20 PM

i meant to say anti-anti-cheat.
Posted By: Clubfoot

Re: auto answer ... - 04/08/03 04:41 PM

the point of trivia is to provide a challenge between a group of people, a source of entertainment. any cheating/auto answering ruins that and it's pretty obvious if someone uses a script to reply automatically anyway. but, if using this makes people have fun then so be it
Posted By: Watchdog

Re: auto answer ... - 04/08/03 04:43 PM

There's no such thing in the English language as a double-negative. So I still don't know what you mean.
Posted By: pheonix

Re: auto answer ... - 04/08/03 06:20 PM

anti-cheat = ways to stop cheating.
anti-anti-cheat = ways to stop the people stopping cheating.
Posted By: aZnLupin

Re: auto answer ... - 05/08/03 01:31 PM

thanks ... but ... not work wink what wrong ? i have

Code:
  
on *:TEXT:*:#: {
if ($read($mircdirscripts\trivia\answer.txt,w,$+(*,$1-,*)) != $null) {
msg # $gettok($read($mircdirscripts\trivia\answer.txt,$readn),2,45)
}
}
Code:
  


i wrong rite ?
Posted By: KingTomato

Re: auto answer ... - 05/08/03 04:52 PM

lmao, im certainly not going to help you cheat. If you care that much try this..

/run trivia\answers.txt
ctrl+f
<enter question>
[RETURN]
Posted By: pheonix

Re: auto answer ... - 05/08/03 04:59 PM

on *:TEXT:*:#: {
if ($read(scripts\trivia\answer.txt,w,$+(*,$1-,*)) != $null) {
msg # $gettok($read(scripts\trivia\answer.txt,$readn),2,45)
}
}
no need to add $mircdir as if you dont provide a filepath it just reads from $mircdir anyway.....
Posted By: KingTomato

Re: auto answer ... - 05/08/03 05:17 PM

A) did that help them? (I can almost guarentee not)
B) Does it matter? No.
C) Why are you posting again?
© 2021 mIRC Discussion Forums