This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Nerfbendr Triviabot

Support & discussion of released scripts, and announcements of new releases.
Post Reply
s
sarius
Voice
Posts: 20
Joined: Fri Aug 05, 2005 10:30 am

Nerfbendr Triviabot

Post by sarius »

Hiya

Been reading a couple of posts and this seems to be a great community!

I'm having trouble with Nerfbendr's Triviabot and I was hoping someone could give me some advice. I'm using Triviabot v6 and mIRC v6.03. All seemed fine until I upgraded to mIRC v6.16 (upgraded because of some exploits found in the older version). Then all the colors started looking funny. The letters 'fijlt' and '!' started showing up in between the words. I know this is part of the antipiracy script that Nerf added but it appeared fine in the older mIRC version.

I'd post a sample of the antipiracy code here but I'm not too sure what's the policy on that, cos as you all know, he's selling the triviabot.

Anyways, if there's been any updates or patches regarding this, I'd really appreciate some help on where to get it.

Thanks and cheers :)
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

this isn't mIRC forum
s
sarius
Voice
Posts: 20
Joined: Fri Aug 05, 2005 10:30 am

Post by sarius »

Actually I was wondering if the the script can be fixed. not the irc client. But if this is not an appropriate place to ask, then my apologies.
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

how would that script depend on mIRC? isn't it Tcl script for eggdrop?
s
sarius
Voice
Posts: 20
Joined: Fri Aug 05, 2005 10:30 am

Post by sarius »

Perhaps this will make it clearer. This isn't the exact code but a .txt file which he linked to in his .tcl script file.

## Use Anti-Trivia-Theft Code (0=Disabled, 1=Enabled)
1

## If You Have Problems With Answerscripts or Question Rippers Even With Normal Anti-Theft Running, Change the variable below to a '0' for basic, or '6' for advanced protection...*HOWEVER*...there have been reports of some people's mIRC programs having conflicts with the advanced protection code and may see the new color codes in use... mainly due to the creators of the mirc programs they're using never thought of color codes above 15... But I left this ability in the triviabot for use in 'worst-case' scenarios... 8)
6

I'm one of those unfortunate souls who has that conflict. Is it alright if I post just that part of his Anti-Theft code here so that you guys can take a look?
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

heh, "anti-theft" code, that sounds interesting... post it :)

btw why don't you simply switch off that protection... you have problems with people running answer scripts?
s
sarius
Voice
Posts: 20
Joined: Fri Aug 05, 2005 10:30 am

Post by sarius »

Yea, I have cases of that and also people logging away.

FYI:
nontriviapiracy - Use Anti-Trivia-Theft Code (0=Disabled, 1=Enabled)
nontriviapiracyvariable - Change the variable below to a '0' for basic, or '6' for advanced protection
QText - Question Text Color (default 9)
QBackground - Question Background Color(default 2)

Pics showing the difference
when nontriviapiracyvariable is 0
http://img.photobucket.com/albums/v466/ ... 9/set0.jpg
when nontriviapiracyvariable is 6
http://img.photobucket.com/albums/v466/ ... 9/set6.jpg

Code: Select all

## Insert Question Anti-Piracy Code Here!!!
 set question "$QText,$QBackground $question"
 if {$nontriviapiracy == 1} {
 set letters "fijlt"
 set antipiracy ""
## Random Restoration Of Original Text And Background Color Code Creation Routine
 set counter 0
 set flipper 0
 set flipflag 0
 set endofqflag 0
 while {[lindex $question $counter] != "" } {
  set numberflag 0
  set numberchecker [lindex $question [expr $counter +1]]
  if {[lindex $question [expr $counter +1]] == ""} {set endofqflag 1}
  set testforanumber 0
  while {$testforanumber <= 9} {
   if {[string range $numberchecker 0 0] == $testforanumber} {
    set numberflag 1
   }
   incr testforanumber
  }
  if {$endofqflag == 1} {
   append antipiracy [lindex $question $counter]
   set numberflag 10
   set flipper 10
  }
  if {$flipper == 0} {
   set antipiracyletter [string index $letters [rand [string length $letters]]]
   append antipiracy [lindex $question $counter]
## Random Embedded Character Color Code Creation Routine
set embedcode ""
if {$nontriviapiracyvariable > 0} {
append embedcode [expr ($QBackground + (16*[rand $nontriviapiracyvariable]))]
} {
append embedcode $QBackground
}
append antipiracy $embedcode
##
   if {$numberflag == 0} {
    append antipiracy $antipiracyletter
## Random Restoration Of Original Text And Background Color Code Creation Routine
set restorecode ""
if {$nontriviapiracyvariable > 0} {
append restorecode [expr ($QText + (16*[rand $nontriviapiracyvariable]))]
} {
append restorecode $QText
}
append antipiracy $restorecode
##
   }
   if {$numberflag == 1} {
## Random Restoration Of Original Text And Background Color Code Creation Routine
set restorecode ""
if {$nontriviapiracyvariable > 0} {
append restorecode [expr ($QText + (16*[rand $nontriviapiracyvariable]))]
} {
append restorecode $QText
}
append antipiracy "$restorecode "
##
   }
   set flipper 1
   set flipflag 1
  } {
   if {$flipflag == 0} {
   if {$flipper == 1} {
    set antipiracyletter " "
    append antipiracy [lindex $question $counter]
## Random Embedded Character Color Code Creation Routine
set embedcode ""
if {$nontriviapiracyvariable > 0} {
append embedcode [expr ($QBackground + (16*[rand $nontriviapiracyvariable]))]
} {
append embedcode $QBackground
}
append antipiracy $embedcode
##
   }
   if {$numberflag == 0} {
## Random Restoration Of Original Text And Background Color Code Creation Routine
set restorecode ""
if {$nontriviapiracyvariable > 0} {
append restorecode [expr ($QText + (16*[rand $nontriviapiracyvariable]))]
} {
append restorecode $QText
}
append antipiracy $restorecode
##

append antipiracy $antipiracyletter
## Random Restoration Of Original Text And Background Color Code Creation Routine
set restorecode ""
if {$nontriviapiracyvariable > 0} {
append restorecode [expr ($QText + (16*[rand $nontriviapiracyvariable]))]
} {
append restorecode $QText
}
append antipiracy $restorecode
##
   }
   if {$numberflag == 1} {
## Random Restoration Of Original Text And Background Color Code Creation Routine
set restorecode ""
if {$nontriviapiracyvariable > 0} {
append restorecode [expr ($QText + (16*[rand $nontriviapiracyvariable]))]
} {
append restorecode $QText
}
append antipiracy "$restorecode "
##
   }
   set flipper 0
  }
  }
  set flipflag 0
  incr counter
 }
 set qlength [string length $antipiracy]
 set question $antipiracy
}
# regsub -nocase -all "" $question "" question
Last edited by sarius on Sat Aug 06, 2005 2:44 pm, edited 1 time in total.
User avatar
YooHoo
Owner
Posts: 939
Joined: Thu Feb 13, 2003 10:07 pm
Location: Redwood Coast

Post by YooHoo »

sarius, ffs please READ all the documentation that Nerfbendr graciously includes with every download, especially the Triviabot Manual and Triviabot_Config.txt... i highly suggest printing it all out and then dedicating every word to your memory...
do as demond said, set the 'anti-piracy' variable to 0 to rid yourself of those annoying filler letters, and then alter the colors as you see fit :wink:
btw, next time you post a bunch of code, please use the

Code: Select all

this is a line of code
option, makes it much easier on our tired eyes :lol:
s
sarius
Voice
Posts: 20
Joined: Fri Aug 05, 2005 10:30 am

Post by sarius »

Sorry Yoohoo. I know that setting it to 0 works. But I was just wondering if I can edit it so that setting it to 6 works TOO.

Sorry abt the bad script pasting. Will use that code thgy next time.

Cheers!

:D
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

ah, I now see what the idea is... it embeds random characters at random positions in questions in such manner that humans still can get the meaning and automated answer scripts cannot (match)... neat

as of a remedy for your problem, either disable that anti-theft feature, or see if you can configure its colors to suit your taste/mIRC (I didn't inspect the code too closely, maybe if you reformat it using

Code: Select all

 tag, someone will do that)
s
sarius
Voice
Posts: 20
Joined: Fri Aug 05, 2005 10:30 am

Post by sarius »

yep thanks.

I'm trying so see if I can change the color of the random letters to that of the background. But I must confess that I know little to nothing abt TCL (only started setting up my first eggdrop yesterday thanks to the guide on this site). I can only suss out stuff that looks like C which I have limited knowledge of too.

Cheers all and thanks for taking the time to read.
Post Reply