|
Joined: Dec 2002
Posts: 76
Babel fish
|
OP
Babel fish
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 ?
|
|
|
|
Joined: Apr 2003
Posts: 300
Fjord artisan
|
Fjord artisan
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
|
|
|
|
Joined: May 2003
Posts: 2,265
Hoopy frood
|
Hoopy frood
Joined: May 2003
Posts: 2,265 |
on *:TEXT:*:#:{
if ($1- == <the question>) {
msg # $read(<number of the line the answer to the question is on>,answer.txt)
}
elseif ($1- == <another question>) {
msg # $read(<number of the line the answer to the question is on>,answer.txt)
}
}
new username: tidy_trax
|
|
|
|
Joined: Dec 2002
Posts: 2,985
Hoopy frood
|
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?
|
|
|
|
Joined: Dec 2002
Posts: 117
Vogon poet
|
Vogon poet
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?)
|
|
|
|
Joined: Dec 2002
Posts: 76
Babel fish
|
OP
Babel fish
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 ?
|
|
|
|
Joined: Jul 2003
Posts: 655
Fjord artisan
|
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
|
|
|
|
Joined: May 2003
Posts: 2,265
Hoopy frood
|
Hoopy frood
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
|
|
|
|
Joined: Dec 2002
Posts: 2,985
Hoopy frood
|
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.
|
|
|
|
Joined: May 2003
Posts: 2,265
Hoopy frood
|
Hoopy frood
Joined: May 2003
Posts: 2,265 |
yes it would.
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
|
|
|
|
Joined: Aug 2003
Posts: 17
Pikka bird
|
Pikka bird
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
|
|
|
|
Joined: May 2003
Posts: 2,265
Hoopy frood
|
Hoopy frood
Joined: May 2003
Posts: 2,265 |
lmao @ im a filthy cheater
new username: tidy_trax
|
|
|
|
Joined: Dec 2002
Posts: 2,985
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 2,985 |
Can I again refer you to point 2 in andymps post? Here's an example: <Triviabot> Howrmanyedayswaregthereminbavweek? That is what a question looks like when you strip the colour codes out. <Triviabot> 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.
|
|
|
|
Joined: May 2003
Posts: 2,265
Hoopy frood
|
Hoopy frood
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
|
|
|
|
Joined: Dec 2002
Posts: 3,138
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,138 |
1: i never said it would get past that Then why bother posting it? It's useless..like most of what you post. 2: if cheating lets ya win who cares? The point is to win because you're good, not because you can download a script. 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.
|
|
|
|
Joined: Dec 2002
Posts: 2,985
Hoopy frood
|
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.
|
|
|
|
Joined: May 2003
Posts: 2,265
Hoopy frood
|
Hoopy frood
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
|
|
|
|
Joined: Dec 2002
Posts: 3,138
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,138 |
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. Not suprising, you are, after all, an idiot.
|
|
|
|
Joined: Dec 2002
Posts: 2,985
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 2,985 |
Of course he didn't want anti-cheat - Auto answering is CHEATING which is why.
|
|
|
|
Joined: May 2003
Posts: 2,265
Hoopy frood
|
Hoopy frood
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
|
|
|
|
|