Top

While Loop demonstration

Please Register to submit score.
Average Score  7.6
Scores Submitted  9
Date Added  Sep 19, 2003
Last Updated  Nov 28, 2005
Tags  alias  while 

Introduction

Add this to your remote scripts screen, close the window and type /harr to get a pleasant surprise!

Grab the Code

Comments

  (6)  RSS
StanZ
Comments: 19
 
mIRC Snippet:  While Loop demonstration
Posted on Nov 25, 2003 9:22 am
AAAAAAAAAAAAAARRRRRRRRRRRRGGGGGGGGGGGGGGG!!!
Ville
Comments: 25
 
mIRC Snippet:  While Loop demonstration
Posted on Apr 19, 2005 2:56 am
A nice snippet.
TokenMaster
Comments: 17
 
mIRC Snippet:  While Loop demonstration
Posted on Sep 12, 2005 10:20 am
AAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAA
* Break: command halted
Yoinx
Comments: 424
 
mIRC Snippet:  While Loop demonstration
Posted on Sep 12, 2005 2:47 pm
what did you do to it tokenmaster? The alias works fine.
RussellReal
Comments: 41
 
mIRC Snippet:  While Loop demonstration
Posted on Jan 12, 2007 11:34 am
if you make %i = 0 you can loop it and increase the variable before the commands which gives you more flexibility.


alias harr {
var %i = 0
while (%i <= 10) {
inc %i
echo -a $+($ord(%i),!)
}
}
will do like
1!
2!
3!
4!
etc which is good for looping through a hash table or even a text file, I use it in my stat script (runescape) to loop through the items which can be used to get to the next level which turns out like this:

Green Dragons: 888 Red Dragons: 666
etc etc

anyway its rly a matter of preferrence :) to each his own ;)
RussellReal
Comments: 41
 
mIRC Snippet:  While Loop demonstration
Posted on Jan 12, 2007 11:35 am
sorry about the double post.. :x
but it will return:

will do like
1st!
2nd!
3rd!
4th!

Please Register or Login to start posting comments.
Bottom