How many words can you type ?

By Paul_1337noob on Sep 17, 2008

This is a small game to test how many words you can type in one minute
made it for fun and i havent seen one yet.
Commands
!words = this will Prompt you about the start of the game
!Score = this will display your best score so far

Basicly when you are told to start typing.
you type as many words as you can within 60 seconds.

It will only count words that are 4 letters or more in length, to stop people doing:
j j j j jj j j j j j jj j j j j jj j j j j j j j j jj j j j j j jj j j j j jj
although i know they could still dfsdf dsfdsf dsfdsfsd dsfsdfsdf dsfdsf
but what the hell.

Thanks to SanitariuM for that regex
and Thanks to PsYcHo[X] for the other way you gave me.

Tt all seems to be clean so far ,
but if there is any problems just let me know.

Any advice would be MUCH appreciated.

Image

;@@@@@@@@@@@@@@@@@@@@@@
;@___Paul1337noob____@@

on *:TEXT:!score*:#: { if (%spam) { halt }
  else {
    set -u10 %spam 1 
    msg $chan $nick your best score so far is... $readini(wordscore.ini,$nick,score) words per minute!!!
  }
}

on *:TEXT:!words*:#: {
  if (!%gameon) {
    set %wordnick $nick
    if (!$readini(wordscore.ini,%wordnick,score)) { makeini }
    set %gamechan $chan
    set %gameon 1
    notice $nick Type as many words as you can in 60 seconds.
    notice $nick These words must be atleaset 4 letters long to count.
    notice $nick You MUST press enter before your 60 seconds are up.
    .timer0 1 3 notice $nick You have 10 seconds to prepare.
    .timer1 1 8 notice $nick 5 seconds to go.
    .timer2 1 13 startgame 
  }
  else { notice $nick there is already a test in progress! }
}

alias makeini { writeini -n wordscore.ini %wordnick score 0 }

alias startgame {
  if ( %gameon == 1 ) {
    set %on 1
    notice %wordnick Type away biatch.
    .timer 1 55 notice %wordnick 5 seconds remaining press enter before your time runs out!
    .timer 1 60 timerend
  }
  else { halt }
}

; Thanks alot guys/gals from us.undernet.org #mircscripting
; /me needs to learn regex XD
on *:TEXT:*:#: {
  if (%on) && ( $nick == %wordnick ) { inc %words $regex($1-,/\b\w\w\w\w+\b/g) } 
  else { halt }
}

on *:KICK:#bots: {
  if (%on) && ( $nick == %wordnick ) { notice %wordnick lol pwnt for flooding?
    timerhalt
    endgame 
  } 
  else { halt }
}

alias timerend {
  if  ( %words > $readini(wordscore.ini,%wordnick,score) ) { 
    .timerlol0 1 1 notice %wordnick Well done! %wordnick you managed to type %words words in 60 seconds!
    .timerlol1 1 2 notice %wordnick Thats more then your previous score of $readini(wordscore.ini,%wordnick,score)
    .timerlol2 1 3 notice %wordnick Why dont you have another go and try beat it.
    writeini -n wordscore.ini %wordnick score %words
    .timer 1 5 endgame
  }
  elseif ( %words <= $readini(wordscore.ini,%wordnick,score) ) { 
    .timerlol0 1 1 notice %wordnick You managed to type %words words in 60 seconds!
    .timerlol1 1 2 notice %wordnick Thats less then your previous score of $readini(wordscore.ini,%wordnick,score)
    .timerlol2 1 3 notice %wordnick Why dont you have another go and try beat it.
    .timer 1 5 endgame
  }
}

alias endgame {
  unset %wordnick
  unset %words
  unset %on
  .timerlol3 1 5 unset %gameon  | msg %gamechan You can now test your typing speed, type !words. | unset %gamechan
}

Comments

Sign in to comment.
Cold_Fussion   -  Nov 27, 2010

no problem....

 Respond  
Paul_1337noob   -  Apr 23, 2010

nice extra, dunno why i didnt think of that, thanks!

 Respond  
Cold_Fussion   -  Nov 10, 2009

ok wait i found it :D
here is my thing i made for a game i made...

not the whole one... but ya... just maes sure no one types words like hhhh hhhh hhhh hhhh

on :TEXT::?: {
close -m $nick
if %version2.state == $null { halt }
if $nick iswm $read(players.txt, w, $nick) {
write times\ $+ $nick $+ .txt $1
if $len($1) == $left(%letters.dic,1) {
if $1 !iswm $read(players\ $+ $nick $+ .txt, w, $1) {
if $1 iswm $read(%letters.dic, w, $1) {
write players\ $+ $nick $+ .txt $1
halt
}
}
if $1 iswm $read(players\ $+ $nick $+ .txt, w, $1) {
msg $nick 10CLONING WORDS WONT HELP YOU
}
}
}
}

 Respond  
Cold_Fussion   -  Nov 10, 2009

oh well never mind
cant find it... ill just make the addon for your game...

if u dnt mind, ill code so long, and only paste once u say i may

 Respond  
Cold_Fussion   -  Nov 10, 2009

if i may post an addon i made for a game i made in 17 hours...

could give u a few pointers...

will post it now... just have to find my code ^_^ sorry

 Respond  
Shinybot   -  Nov 09, 2009

Nice Script

 Respond  
SnoooP   -  Nov 09, 2009

This is really good... Good job, I don't know how I found this on here but I did lol... It's great and certainly gets the channel going...

7/10 purely because I like it

 Respond  
Zmodem   -  Nov 09, 2009

Heh, I still use this addon :-)

 Respond  
Paul_1337noob   -  Sep 16, 2009

been a while but timers fixed

 Respond  
pingpong0   -  Oct 09, 2008

.timer0 1 3 notice $nick You have 10 seconds to prepare.
. timer1 1 8 notice $nick 5 seconds to go.
. timer2 1 13 startgame

Dots have spaces :

.timer0 1 3 notice $nick You have 10 seconds to prepare.
.timer1 1 8 notice $nick 5 seconds to go.
.timer2 1 13 startgame

 Respond  
Zmodem   -  Sep 26, 2008

haha, that is kinda funny. All of us bullshitting, nobody rated it or liked it, heh. I'll help. I give a 7.

 Respond  
Paul_1337noob   -  Sep 25, 2008

if its not too much to ask :P can i get some ratings pl0x?

 Respond  
Zmodem   -  Sep 25, 2008

heh I can't eat em' anymore, too goddamn much stuff.

 Respond  
Eugenio   -  Sep 25, 2008

rofl, what neptune has for a snack
;x

 Respond  
Jamiie   -  Sep 25, 2008

I don't have the stomach for one of them :x

 Respond  
Zmodem   -  Sep 24, 2008

I've eaten a 12x14 before. Pretty decent :-) It's a once-a-monther ;-)

 Respond  
Jamiie   -  Sep 24, 2008

That's a heart attack waiting to happen..

 Respond  
Zmodem   -  Sep 24, 2008

That's cause it's bad for you. The more oil they stuff into the cheese, the more like rubber it gets. Still, good eatin' ;-)

 Respond  
Jamiie   -  Sep 23, 2008

The cheese looks like rubber. o.O

 Respond  
Zmodem   -  Sep 23, 2008

Looks like good eatin'. Seriously, it's not fake, but in Cali. they can't sell them anymore. It used to be they'd make any size you wanted as long as you paid for it. That's a 100x100 I believe (100 meat 100 cheese). But, anyways, best burgers around. :-)

 Respond  
Jonesy44   -  Sep 23, 2008

Looks grosse tbh.

 Respond  
Jamiie   -  Sep 23, 2008

Looks fake..

 Respond  
Zmodem   -  Sep 22, 2008

It's great!

 Respond  
Paul_1337noob   -  Sep 22, 2008

that doesnt even look half nice,
looks like some 1 hasnt taken a 5h17 for 2 weeks

 Respond  
Jonesy44   -  Sep 22, 2008

Eww..

 Respond  
Zmodem   -  Sep 22, 2008

Quad stacker can't even come close to IN N' OUT:

Image

 Respond  
Jamiie   -  Sep 21, 2008

Lolz.. Burger kings quad stacker owns <33333

 Respond  
Zmodem   -  Sep 19, 2008

IN N' OUT is teh sex0r...

Image

 Respond  
Paul_1337noob   -  Sep 19, 2008

dammit, we dont got no burger king now, they sold to some nubs and now it burger knight and there shizzle
/me wants burger king back

 Respond  
Zmodem   -  Sep 17, 2008

LoL, Burger King! :-Þ IN N' Out baby!

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.