|||||||||| <--- 10 bars, check the hp of said pokemon and simply variable the crap out of it and percentage it, do a wee bit of math and bam, you got yourself a healthbar.
For an example, I used this for an anime wars bot I was making;
on *:text:`Setup:*:{
if ($address($nick,2) isin %admin) {
if ($System(Admin) == $null) { wsys Admin $address($nick,2) | msg $active $nick has been named as Bot Admin. | halt }
if ($system(Directory) != Created) {
mkdir AnimeWars
msg $chan Directory has been created.
wsys Directory Created
}
if ($Setchan == $null) {
wsys Channel $chan
msg $chan Channel has been Registered.
}
if ($readini(System.ini,$network,Setup) == Complete) { msg $chan BotSetup has already been completed. | halt }
else { msg $chan BotSetup is complete. | Writeini System.ini $network Setup Yes | halt }
}
else { halt }
}
Also, what you could do is an admin command like !setup in order to make the channel you are currently setting up as the channel that all this is to be posted. Also, /pokeadmin name would be a bad idea for those cases that you disconnect and someone jumps onto your nick, even if it is registered there is usually a waiting period before auto-nick change. So might be easier to do /pokeadmin $address($me,2) or something.
as for the setup;
on *:text:!setup:#:{
if ($address($nick,2) == %admin) {
if (!%setup) {
set %setup $chan
mkdir Pokemon/ (you can optionally put a channel here if you would like, such as mkdir Pokemon/ $+ $remove($chan,#) and then just have it check for that specific channel if you want other channels or something, can be done with servers as well)
}
else { halt }
}
else { halt }
}
Something like that, be creative. Of course that means you'd have to edit out the respective parts but it'll make it a tad bit easier.
It's just become an instinct to always put a halt per if unless I needed it to -not- have a halt. I've only recently gotten back into mSL, the last thing I ever did was two years ago, and trying to re-study everything.
Uh, no you don't. I'm on mIRC 7.14 and it works absolutely fine the way it is. And I'll look into the tnick mnick. You do -not- have to use a ! infront of away. So why don't you go try it and see that it works :)
First of all, I hope you realize that it won't just be looking specifically for the number at the beginning of the quote; if there is a number in the actual quote itself, then it will get confuzzled and also try and locate the other quotes as well.
I don't even have to test it to know that it works effeciently. I designed my own whois raw script system as well, and I just have a few more things than that. But it's the same basic thing. IT's good that SOMEONE posted a raw whois snippet on here that uses just about all the raws required for a whois. I remember looking for one when I was younger, and there was just basic stuff. Good job.
Rebellious is intense. Anyways, Arrogance and ignorance has nothing to do with /\'s I have to use /\'s in my script around msg\'s because of my theme script and so on input It has to check if it\'s / first and then an object. So are you calling my genius arrogant?