Language mIRC
(shorter + faster version)
Date: | 05/13/05 |
Author: | coolpix |
URL: | n/a |
Comments: | 5 |
Info: | http://www.coolpix.org |
Score: | ![]() |
alias beer { var %x 99 while (%x > 0) { echo %x Bottles of beer on the wall, %x bottles of beer echo Take one down and pass it around, dec %x echo %x bottles of beer on the wall. echo $chr(160) } echo No more bottles of beer on the wall. echo No more bottles of beer... }
Download Source | Write Comment
Alternative Versions
Version | Author | Date | Comments | Rate |
---|---|---|---|---|
Correct plurals and uses more functions. | IceShaman | 08/11/05 | 0 | ![]() ![]() |
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!
Comments
echo %x $iif(%x == 1,bottle,bottles) of beer on the wall.
otherwise gr00vie o/
var %bottled = 99
var %bottle = %bottled
while (%bottled isnum) {
if (!%bottled) %bottled = no more
echo -a %bottled bottle $+ $iif(%bottled != 1,s) of beer on the wall, %bottled bottle $+ $iif(%bottled != 1,s) of beer.
echo -a Take one down and pass it around, %bottled bottle $+ $iif(%bottled != 1,s) of beer on the wall.
dec %bottled
}
echo -a Go to the store and buy some more, %bottle bottles of beer on the wall.
}
:D