egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

trivia cheater stop

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
testebr
Halfop


Joined: 01 Dec 2005
Posts: 86

PostPosted: Thu Dec 27, 2007 12:05 pm    Post subject: trivia cheater stop Reply with quote

Hi,

In my trivia channel user still using cheater with auto reply. Example:

on *:text:*Wha*is*xxx?*:#:{ msg # sexy }

How to I can prevent it? Any form to encode my question text?
Back to top
View user's profile Send private message
metroid
Owner


Joined: 16 Jun 2004
Posts: 771

PostPosted: Thu Dec 27, 2007 1:01 pm    Post subject: Reply with quote

If you "encode" the question then how will the other people read it?

Simply kick the guy using a script.
Back to top
View user's profile Send private message
testebr
Halfop


Joined: 01 Dec 2005
Posts: 86

PostPosted: Thu Dec 27, 2007 2:38 pm    Post subject: Reply with quote

no one solution when user select the text to copy but return mixed/strange text?
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Fri Dec 28, 2007 8:45 am    Post subject: Reply with quote

I remember a Trivia script which used to add ctrl-codes and other hidden characters to the questions so cheat scripts don't match them. If adding ctrl-codes is the solution then I can write you a piece of code to do it, if you need some other extra characters then you'll have get me a list of them because I don't know which characters these are.
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
testebr
Halfop


Joined: 01 Dec 2005
Posts: 86

PostPosted: Fri Dec 28, 2007 5:52 pm    Post subject: Reply with quote

hmm, good explain. But, I don't know what is 'ctrl-codes'.

Can you provide me one example?

ps: I'm using this trivia script by souperman.

Thank you!
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Fri Dec 28, 2007 8:37 pm    Post subject: Reply with quote

What I meant by ctrl-codes is color (ctrl+k), bold (ctrl+b), underline (ctrl+u)...etc
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
testebr
Halfop


Joined: 01 Dec 2005
Posts: 86

PostPosted: Fri Dec 28, 2007 9:53 pm    Post subject: Reply with quote

dont work because mirc ignore colors, bold, reverse and underline :/

you can tet with my code, just add to remote.
Back to top
View user's profile Send private message
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Fri Dec 28, 2007 10:08 pm    Post subject: Reply with quote

testebr wrote:
dont work because mirc ignore colors, bold, reverse and underline :/

Since when?
_________________
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Back to top
View user's profile Send private message Visit poster's website
testebr
Halfop


Joined: 01 Dec 2005
Posts: 86

PostPosted: Sat Dec 29, 2007 12:36 pm    Post subject: Reply with quote

in function "on text". See my first por.
Back to top
View user's profile Send private message
speechles
Revered One


Joined: 26 Aug 2006
Posts: 1398
Location: emerald triangle, california (coastal redwoods)

PostPosted: Sat Dec 29, 2007 2:03 pm    Post subject: Reply with quote

testebr wrote:
in function "on text". See my first por.

I think what he meant, is color inside the words, not just at their start/ending boundaries.
Code:
on *:text:*Wha*is*xxx?*:#:{ msg # sexy }


1. What(ctrl+o) is xxx*sexy
2. W(ctrl+o)hat is xxx*sexy

In case 1, the code will msg sexy. The wildcards obscure the control code. Cheater prospers.
In case 2, the code will fail. The wildcards haven't obscured the control code. Cheater is foiled. The control code keeps cheating at bay.

You will need to edit your question files to add these control codes or have the script dynamically insert them into words. If your using color then you may not want to use (ctrl+o) which is plaintext, use ctrl+k your color code instead.

It shouldn't be that hard to edit the script to randomly insert them into the questions before they are asked. It would be as simple as splitting the question into a list using space as the splitter " ", then use a foreach to inject a ctrl+whatever (the control code used should be the same as the question text is currently using so the effect is invisible and seamless) into every word using a random lindex position based on that word's string length, then join this list back into a string for the rest of the script to go with. Sir_Fz has already offered to realize this for you, you would be wise to take him up on his offer.
Back to top
View user's profile Send private message
testebr
Halfop


Joined: 01 Dec 2005
Posts: 86

PostPosted: Sat Dec 29, 2007 6:18 pm    Post subject: Reply with quote

Really this idea work fine, but today one friend create this example:

Code:
if (text_here isin $strip($1-)) { /msg $chan say_message }


And kill the solution of Sir_Fz.
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Sat Dec 29, 2007 7:41 pm    Post subject: Reply with quote

Then do some research and try to find some characters that won't be seen (Try searching the forum first as this has been discussed before).
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
speechles
Revered One


Joined: 26 Aug 2006
Posts: 1398
Location: emerald triangle, california (coastal redwoods)

PostPosted: Sat Dec 29, 2007 7:49 pm    Post subject: Reply with quote

As well, if people are inclined to cheat, they will find a way to cheat everytime. Rather than adapt to defeat them learn to spot cheaters (your examples show no delay, instant answer in this case = inhuman response == cheater) and ban them from further participation in your trivia, either via the trivia ignore, or via eggdrop internal ignore, or ban them from your channel. Eventually they will get smarter and use randomized timers in the human-response time frame to disguise their scripts (this of course makes it near impossible to spot, but others now have opportunity to also answer making it at least more fair).

When you finally find 'invisible' characters to use, those can be easily mapped out into nulls by cheaters just as easily as you saw $strip() does control characters. The mirc code to do so is really this simple, $strip($remove($1-,%invis_char_1,%invis_char_2,%etc)). You now have both control characters and invisible characters effectively stripped. In the long run your better off removing cheaters from participating entirely than trying to adapt to control them.

Or to be entirely fair to all. When a cheater is spotted, to be nice allow them to remain in the trivia, but as a consequence they have their score set back to 0 (which most trivia scripts allow admins to change scores). This allows cheaters to begin as new joins/nicks and compete further, but constantly is a reminder to all that if detected they will be considered cheaters and 'fined' all their accumulated points. If you have prizes or things of this nature in your trivia contests, this is a valid option as well. Elect a few @op/mods in your channel as trivia guards and this can be your enforcement.
Back to top
View user's profile Send private message
rapattack
Voice


Joined: 18 Aug 2011
Posts: 6

PostPosted: Thu Aug 18, 2011 9:29 am    Post subject: Reply with quote

I'd like to have a code snippet that inserts controlcodes... Smile
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber