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.

Looking for a specific logging script....

Old posts that have not been replied to for several years.
Locked
K
Kimmi
Halfop
Posts: 58
Joined: Thu Jul 24, 2003 4:17 pm
Location: Norway
Contact:

Looking for a specific logging script....

Post by Kimmi »

Hello

Im looking for a script that logs only some sertan things in a channel.
Like:

<|Quiz|> 4906: >> Who had main caracter in the movie Erin Brokovich?
<|Quiz|> Hint: ***** *******
<|Quiz|> Nobody got it right.. The answer was julia roberts

I want the bot to logg and save a file like this:
julia roberts?|Who had main caracter in the movie Erin Brokovich??

Anyone out there that has a script like that? Or can show me how to make one.
Kimmi@EFnet
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

That's a trivia script. Try the one that can be found here.
Once the game is over, the king and the pawn go back in the same box.
User avatar
strikelight
Owner
Posts: 708
Joined: Mon Oct 07, 2002 10:39 am
Contact:

Post by strikelight »

I think he is looking for a script to create a file of answers to the trivia bot questions, caesar. (ie. a cheat script).
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Oh, more like a stealing questions script. heh :D
Once the game is over, the king and the pawn go back in the same box.
K
Kimmi
Halfop
Posts: 58
Joined: Thu Jul 24, 2003 4:17 pm
Location: Norway
Contact:

Post by Kimmi »

yes stealing questions, or in this case revenge :P
I run #quiz.no and I got 4000questions. A dude in #quizno went around in Efent, and some other networks and stole all our questings, It sux seening the questions I wrote asked in his channel as his own questions. he got like 20000questions and I know he did not write the exatct same questions as we did. So I want to copy his.
I`ll never get him to stop serving out questions, but we could take he once he stole and share them.

well there U have the story behind my request or cry for help.
Kimmi@EFnet
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

There should be a workaround to stop users from stealing your questions from the channel by adding some colours and some letters in the line so only when the line is coloured you can see the question but when is not you can't see/understand a damn thing. :D I've sow some mIRC trivia scripts doing this, haven't seen a tcl that will do this, yet. Sounds like a nice feature. :) Something like this, when is coloured the line will be seen like:
<|Quiz|> 4906: >> Who had main caracter in the movie Erin Brokovich?
and without them will be something like
<|Quiz|> 4906: >> Wahwozheaedrsgmeawienrewaerawcrtrewrwwinwetrhtewewmoqvghdidedf aEagraeiagnagagrBagrreaoagkoagrvagicagrh?
Hope you got my ideea ;)
Once the game is over, the king and the pawn go back in the same box.
K
Kimmi
Halfop
Posts: 58
Joined: Thu Jul 24, 2003 4:17 pm
Location: Norway
Contact:

Post by Kimmi »

yep I get the ideea, but I dont know anything about how to make one. I dont have a 24/7 connection at home so cant run a mirc-triviaBOT. But I have a shell account and runs a quizbot. So gona need a tcl..
and that sends me right back to where Iam.

but thanx for trying :P
Kimmi@EFnet
User avatar
GodOfSuicide
Master
Posts: 463
Joined: Mon Jun 17, 2002 8:00 pm
Location: Austria

Post by GodOfSuicide »

Code: Select all

set temp [string index "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" [rand 64]]
$temp would contain a random character / number

or, for a whole string

Code: Select all

proc get_rand {length} {
  set chars abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
  set count [string length $chars]
  set rand ""
  for {set i 0} {$i < $length} {incr i} { append rand [string index $chars [rand $count]] }
  return $rand
}
then just go throught every character of your string (the question), append (for example) a "\003010", add between 0 and X (i'd say 3, with the second proc you would do [get_rand [rand 4]]) random chars like the one in temp and add a "\003012" to it.

then everything with color 10 would be random and not relevant to the question, and everything in 12 belongs to the question.

i was thinking of some ways how to do it but i havent found a nice and clean way yet.
K
Kimmi
Halfop
Posts: 58
Joined: Thu Jul 24, 2003 4:17 pm
Location: Norway
Contact:

Post by Kimmi »

wow!

I just copy past this in my trivia.tcl and then I works my questions get "enrypted" ?? but what line du I copy it to..??
I dont know anything of tcl-scriptins... but copy past I can do... judt need to know where to past...

thanx... GodOFSuicide...
Kimmi@EFnet
User avatar
GodOfSuicide
Master
Posts: 463
Joined: Mon Jun 17, 2002 8:00 pm
Location: Austria

Post by GodOfSuicide »

this is just the main concept how you would have to do the "encryption", and the proc is just for generating random strings / chars
K
Kimmi
Halfop
Posts: 58
Joined: Thu Jul 24, 2003 4:17 pm
Location: Norway
Contact:

Post by Kimmi »

well thax... but didnt understand that last post...
but anyway... Im still looking for that logging script I asked about in the start of this topic, so if anyone has one and wana share please let me know...
Kimmi@EFnet
Locked