Voting

Category

real language

Bookmarking

Del.icio.us Digg Diigo DZone Earthlink Google Kick.ie
Windows Live LookLater Ma.gnolia Reddit Rojo StumbleUpon Technorati

Language mIRC

(standard version)

Date:04/20/05
Author:Ryan Kusnery
URL:n/a
Comments:2
Info:n/a
Score: (3.00 in 2 votes)
99 Bottles of Beer in mIRC script:
From Ryan Kusnery http://members.tripod.com/rkusnery/index.html

/beer99 {
  /set %bottles 99
  /set %beercolor 4
  :morebeer
  /echo %beercolor %bottles bottles of beer on the wall.
  /echo %beercolor %bottles bottles of beer...
  /echo %beercolor Take one down, pass it around,
  /dec %bottles
  if (%bottles == 1) goto onebeer
  /echo %beercolor %bottles bottles of beer on the wall.
  /echo %beercolor $chr(160)
  goto morebeer
  :onebeer
  /echo %beercolor One bottle of beer on the wall.
  /echo %beercolor $chr(160)
  /echo %beercolor One bottle of beer on the wall.
  /echo %beercolor One bottle of beer...
  /echo %beercolor Take it down, pass it around,
  /echo %beercolor No more bottles of beer on the wall.
  unset %bottles
  unset %beercolor
}

Download Source | Write Comment

Alternative Versions

VersionAuthorDateCommentsRate
shorter + faster versioncoolpix05/13/055
Correct plurals and uses more functions.IceShaman08/11/050

Comments

>>  RestAsured said on 07/19/05 18:30:35

RestAsured hm nice script...is there any way to change it so it says it in the activate channel like...2 secs apart from each line/bottle of beer?

>>  Jose uceda said on 10/06/05 21:53:38

Jose uceda The echo command has a lot of parametres, one of them is -a. It dispays the text in the active window. If you combine it with the /timer command, you can assign an interval of time in seconds to delay the echo command. Its easy ;)

Download Source | Write Comment

Add Comment

Please provide a value for the fields Name, Comment and Security Code.
This is a gravatar-friendly website.
E-mail addresses will never be shown.
Enter your e-mail address to use your gravatar.

Please don't post large portions of code here! Use the form to submit new examples or updates instead!

Name:

eMail:

URL:

Security Code:
  
Comment: