Jethro, I understand what you're on about and as I was updating a few things I realised that if I use $wildsite, the !stats command would be annoying. You'd have to do !stats !@host.here for it to work. Any idea how I could use $wildsite and have the !stats command work with nicks still?
Thanks in advanced.
Good script.
here:
on *:text:!ustats*:#: {
if (%lines- [ $+ [ $2 ] ] != $null) {
msg $chan $nick $+ : $2 Has Writen %lines- [ $+ [ $2 ] ] lines.
}
else {
msg $chan $2 Has Writen 0 Lines
}
}
Could be:
on *:text:!ustats*:#: {
msg $chan $nick $+ : $2 Has Writen $iif(!%lines- [ $+ [ $2 ] ],0,%lines- [ $+ [ $2
] ]) line(s).
}
That would return 0 if the variable is $null :)
Well, you should try and make this a bit more better by putting brackets.
Heres what I'd do to the script:
on *:LOAD:*:{
echo Please type /bn followed by your bot's nick. Thanks!
}
alias bn {
/set %botnick $1
echo Thanks, botnick's set to $1
}
on *:text:!cool *:#: {
if ($2 ison $chan) {
if ($me isop $chan) || ($me ishop $chan) {
var %coolnick $2 $+ `
/nick %coolnick
/mode $chan +b $address($2,2)
.timer 1 3 /kick $2 $chan Oh no you baned your self and kicked your self?!
return %coolnick
/nick %botnick
}
}
}
That would suit my bot :)