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 

Nerfbendr Triviabot

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases
View previous topic :: View next topic  
Author Message
sarius
Voice


Joined: 05 Aug 2005
Posts: 20

PostPosted: Fri Aug 05, 2005 11:01 pm    Post subject: Nerfbendr Triviabot Reply with quote

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 Smile
Back to top
View user's profile Send private message
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Fri Aug 05, 2005 11:23 pm    Post subject: Reply with quote

this isn't mIRC forum
Back to top
View user's profile Send private message Visit poster's website
sarius
Voice


Joined: 05 Aug 2005
Posts: 20

PostPosted: Sat Aug 06, 2005 12:21 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Sat Aug 06, 2005 1:22 am    Post subject: Reply with quote

how would that script depend on mIRC? isn't it Tcl script for eggdrop?
Back to top
View user's profile Send private message Visit poster's website
sarius
Voice


Joined: 05 Aug 2005
Posts: 20

PostPosted: Sat Aug 06, 2005 1:54 am    Post subject: Reply with quote

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... Cool
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?
Back to top
View user's profile Send private message
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Sat Aug 06, 2005 2:05 am    Post subject: Reply with quote

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

btw why don't you simply switch off that protection... you have problems with people running answer scripts?
Back to top
View user's profile Send private message Visit poster's website
sarius
Voice


Joined: 05 Aug 2005
Posts: 20

PostPosted: Sat Aug 06, 2005 3:32 am    Post subject: Reply with quote

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/sarius79/set0.jpg
when nontriviapiracyvariable is 6
http://img.photobucket.com/albums/v466/sarius79/set6.jpg

Code:

## 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
Back to top
View user's profile Send private message
YooHoo
Owner


Joined: 13 Feb 2003
Posts: 939
Location: Redwood Coast

PostPosted: Sat Aug 06, 2005 9:56 am    Post subject: Reply with quote

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:
this is a line of code
option, makes it much easier on our tired eyes Laughing
_________________
Mr. Green
Johoho's TCL for beginners
Mr. Green
Back to top
View user's profile Send private message Send e-mail
sarius
Voice


Joined: 05 Aug 2005
Posts: 20

PostPosted: Sat Aug 06, 2005 10:08 am    Post subject: Reply with quote

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!

Very Happy
Back to top
View user's profile Send private message
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Sat Aug 06, 2005 11:54 am    Post subject: Reply with quote

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] tag, someone will do that)
Back to top
View user's profile Send private message Visit poster's website
sarius
Voice


Joined: 05 Aug 2005
Posts: 20

PostPosted: Sat Aug 06, 2005 2:50 pm    Post subject: Reply with quote

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.
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 Support & Releases 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