mIRC Home    About    Download    Register    News    Help

Print Thread
Page 1 of 2 1 2
auto answer ... #39358 03/08/03 09:15 AM
Joined: Dec 2002
Posts: 76
A
aZnLupin Offline OP
Babel fish
OP Offline
Babel fish
A
Joined: Dec 2002
Posts: 76
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 ?

Re: auto answer ... #39359 03/08/03 10:40 AM
Joined: Apr 2003
Posts: 300
A
andymps Offline
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


Liek OMG Yuo Stoleded my MageHurtzzzz!!!11
Re: auto answer ... #39360 03/08/03 03:48 PM
Joined: May 2003
Posts: 2,265
P
pheonix Offline
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
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)
}
}


new username: tidy_trax
Re: auto answer ... #39361 03/08/03 04:41 PM
Joined: Dec 2002
Posts: 2,985
Watchdog Offline
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 2,985
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?

Re: auto answer ... #39362 03/08/03 06:37 PM
Joined: Dec 2002
Posts: 117
R
Rich Offline
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]-))


$input(Me like stars, You too?)
Re: auto answer ... #39363 04/08/03 03:58 AM
Joined: Dec 2002
Posts: 76
A
aZnLupin Offline OP
Babel fish
OP Offline
Babel fish
A
Joined: Dec 2002
Posts: 76
but number of question > 5000. how can i search the question in the file then send to channel my answer ?

Re: auto answer ... #39364 04/08/03 07:43 AM
Joined: Jul 2003
Posts: 655
Om3n Offline
Fjord artisan
Offline
Fjord artisan
Joined: Jul 2003
Posts: 655
I'd tell you if i didn't dislike cheaters so much.


"Allen is having a small problem and needs help adjusting his attitude" - Flutterby
Re: auto answer ... #39365 04/08/03 02:10 PM
Joined: May 2003
Posts: 2,265
P
pheonix Offline
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
if you format the file like this:
<question> - <answer>
it will be simple, paste how your file is formatted.


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

Re: auto answer ... #39367 04/08/03 02:56 PM
Joined: May 2003
Posts: 2,265
P
pheonix Offline
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
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.

new username: tidy_trax
Re: auto answer ... #39368 04/08/03 03:00 PM
Joined: Aug 2003
Posts: 17
C
Clubfoot Offline
Pikka bird
Offline
Pikka bird
C
Joined: Aug 2003
Posts: 17
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

Re: auto answer ... #39369 04/08/03 03:06 PM
Joined: May 2003
Posts: 2,265
P
pheonix Offline
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
lmao @ im a filthy cheater wink


new username: tidy_trax
Re: auto answer ... #39370 04/08/03 03:34 PM
Joined: Dec 2002
Posts: 2,985
Watchdog Offline
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 2,985
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.

Re: auto answer ... #39371 04/08/03 03:45 PM
Joined: May 2003
Posts: 2,265
P
pheonix Offline
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
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..


new username: tidy_trax
Re: auto answer ... #39372 04/08/03 03:50 PM
Joined: Dec 2002
Posts: 3,138
C
Collective Offline
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
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.

Re: auto answer ... #39373 04/08/03 03:52 PM
Joined: Dec 2002
Posts: 2,985
Watchdog Offline
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 2,985
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.


Re: auto answer ... #39374 04/08/03 03:57 PM
Joined: May 2003
Posts: 2,265
P
pheonix Offline
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
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.

new username: tidy_trax
Re: auto answer ... #39375 04/08/03 04:01 PM
Joined: Dec 2002
Posts: 3,138
C
Collective Offline
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
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.

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

Re: auto answer ... #39377 04/08/03 04:18 PM
Joined: May 2003
Posts: 2,265
P
pheonix Offline
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
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.


new username: tidy_trax
Page 1 of 2 1 2