mIRC Home    About    Download    Register    News    Help

Print Thread
Page 1 of 2 1 2
#39358 03/08/03 09:15 AM
A
aZnLupin
aZnLupin
A
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 ?

#39359 03/08/03 10:40 AM
Joined: Apr 2003
Posts: 300
A
Fjord artisan
Offline
Fjord artisan
A
Joined: Apr 2003
Posts: 300
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

#39360 03/08/03 03:48 PM
P
pheonix
pheonix
P
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)
}
}

#39361 03/08/03 04:41 PM
Joined: Dec 2002
Posts: 2,958
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Dec 2002
Posts: 2,958
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?

#39362 03/08/03 06:37 PM
Joined: Dec 2002
Posts: 117
R
Vogon poet
Offline
Vogon poet
R
Joined: Dec 2002
Posts: 117
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]-))

#39363 04/08/03 03:58 AM
A
aZnLupin
aZnLupin
A
but number of question > 5000. how can i search the question in the file then send to channel my answer ?

#39364 04/08/03 07:43 AM
O
Om3n
Om3n
O
I'd tell you if i didn't dislike cheaters so much.

#39365 04/08/03 02:10 PM
P
pheonix
pheonix
P
if you format the file like this:
<question> - <answer>
it will be simple, paste how your file is formatted.

#39366 04/08/03 02:48 PM
Joined: Dec 2002
Posts: 2,958
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Dec 2002
Posts: 2,958
How would that help? Based on information already provided it wouldn't halp in any way that I can see.

#39367 04/08/03 02:56 PM
P
pheonix
pheonix
P
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

Last edited by pheonix; 04/08/03 03:14 PM.
#39368 04/08/03 03:00 PM
C
Clubfoot
Clubfoot
C
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

#39369 04/08/03 03:06 PM
P
pheonix
pheonix
P
lmao @ im a filthy cheater wink

#39370 04/08/03 03:34 PM
Joined: Dec 2002
Posts: 2,958
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Dec 2002
Posts: 2,958
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.

#39371 04/08/03 03:45 PM
P
pheonix
pheonix
P
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..

#39372 04/08/03 03:50 PM
Joined: Dec 2002
Posts: 3,015
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,015
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.

#39373 04/08/03 03:52 PM
Joined: Dec 2002
Posts: 2,958
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Dec 2002
Posts: 2,958
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.


#39374 04/08/03 03:57 PM
P
pheonix
pheonix
P
1: coz he asked for auto-answer not anti anti cheat
2: i dont care.
3: doesnt sound so stupid now :tongue:

Last edited by pheonix; 04/08/03 04:20 PM.
#39375 04/08/03 04:01 PM
Joined: Dec 2002
Posts: 3,015
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,015
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.

#39376 04/08/03 04:03 PM
Joined: Dec 2002
Posts: 2,958
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Dec 2002
Posts: 2,958
Of course he didn't want anti-cheat - Auto answering is CHEATING which is why.

#39377 04/08/03 04:18 PM
P
pheonix
pheonix
P
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.

Page 1 of 2 1 2

Link Copied to Clipboard