Language mSL/mIRC
(mIRC Scripting Language)
| Date: | 11/22/08 |
| Author: | Sparkie |
| URL: | n/a |
| Comments: | 0 |
| Info: | http://www.mirc.co.uk |
| Score: |
alias bottle {
:Start
var %x 99
while (%x > 0) {
echo -a %x bottles of beer on the Wall, %x Bottles of beer
dec %x
echo -a You take one down, pass it around, %x Bottles of beer
}
echo -a No more bottles of beer on the wall, no more bottles of beer.
echo -a Go to the store and buy some more, 99 bottles of beer on the wall. | Goto Start
}
This one is never ending, once you have no bottles left, it goes back to the start.
alias bottle {
var %x 99
while (%x > 0) {
echo -a %x bottles of beer on the Wall, %x Bottles of beer
dec %x
echo -a You take one down, pass it around, %x Bottles of beer
}
echo -a No more bottles of beer on the wall, no more bottles of beer.
echo -a Go to the store and buy some more, 99 bottles of beer on the wall.
}
This one stops when there are no bottles left
Download Source | Write Comment
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